skip to Main Content

Android Studio – Error: have you declared this activity in your AndroidManifest.xml? when trying to intent a class

Here's my code for clicking the button from my class showInforActivity: btnRegister.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(showInfoActivity.this, InformationFragment.class); startActivity(intent); } }); Whenever I click the button I got error Unable to find…

VIEW QUESTION

Android Studio – Difficulty identifying outgoing and incoming calls (when app is open or closed)

When there are outgoing and incoming calls, toast should appear on the screen but it does not appear. Is the code incorrect? Manifast premissions: <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_CALL_LOG" /> Manifast (receiver): <receiver android:name=".model.CallReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE" />…

VIEW QUESTION
Back To Top
Search