Skip to content Skip to sidebar Skip to footer

Error "unable To Find Explicit Activity Class" When Starting New Activity

I'm trying to start a activity from another activity. Finally, it doesn't work and fails with error of 'Unable to find explicit activity class'. So far, i was trying to find out a

Solution 1:

you have not defined your ActivityTwo inside your Manifest , thats why you are getting this error ,

define your ActivityTwo in your Manifest File.

Sample Code

<applicationandroid:allowBackup="true"android:hardwareAccelerated="true"android:icon="@mipmap/ic_launcher"android:largeHeap="true"android:supportsRtl="true"android:theme="@style/AppTheme.NoActionBar"><!-- Other code for your activities etc--><activityandroid:name=".activity.ActivityTwo"android:screenOrientation="portrait"android:theme="@style/AppTheme.NoActionBar"android:windowSoftInputMode="stateHidden" /></application>

Post a Comment for "Error "unable To Find Explicit Activity Class" When Starting New Activity"