Your feedback is appreciated..Send Feedback Thank You.

ActivityNotFoundException: Unable to find explicit activity class

Issue

01-29 01:12:15.861: E/AndroidRuntime(790): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.livrona.apps.radio/com.livrona.apps.radio.activity.HomeScreen}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.livrona.apps.radio/com.livrona.andriod.commons.view.WebViewScreen}; have you declared this activity in your AndroidManifest.xml?

Answer

This is a common issue, you have to define the activity in the AndroidManifest.xml file before it can be invoked from code.

Example :

        <activity android:name=”.activity.WebViewScreen”
            android:label=”@string/activity_web_view_screen”>
            <intent-filter>
                <action android:name=”android.intent.action.MAIN” />
                <category android:name=”android.intent.category.DEFAULT” />
            </intent-filter>
        </activity>

 

Subscribe to DeveloperFeedDid you like this article? Did it Help you Solve your Problem? You can get the all the latest articles published at DeveloperFeed in your email inbox by entering your email address below. Your address will only be used for mailing you the articles, and each one will include a link so you can unsubscribe at any time.