ActivityNotFoundException: Unable to find explicit activity class

January 31, 2012

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>

 

Leave a reply
What are the most common Mysql Commands used in PHP?Unable to activate your Apple Developer Program membership
Sponsors
Like us on Facebook