• Register
0 votes
72 views

Problem :

I am getting bellow error while trying to run my android code.
java.lang.runtimeexception: unable to start activity componentinfo
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

To fix this issue your Manifest Must Change like bellow Activity name must Specified like ".YourActivityname"

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.th.mybook"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
     android:minSdkVersion="8" android:targetSdkVersion="8" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".MainTabPanel"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".MyBookActivity"  >            
    </activity>
</application>

Further Readings:

9 7 4
38,600 points

Related questions

0 votes
2 answers 248 views
248 views
Problem : I was trying to run a sample code While launching the application in the android 1.5 emulator , I got bellow errors.... Any one have any hint ? java.lang.runtimeexception: unable to instantiate activity componentinfo
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 34 views
34 views
I got these errors.... Any one have some hint..?
asked Dec 7, 2020 TeamScript 13.5k points
0 votes
1 answer 1 view
1 view
Problem: How to solve : java lang runtimeexception unable to start activity HELP! I need help understanding this: java lang runtimeexception unable to start activity Can someone please help solve this, I am new in java(). Anyone have ideas on what I need to do to understand this? Thanks!
asked 8 hours ago Ali 7.2k points
0 votes
1 answer 297 views
297 views
Cannot create controller in thread that did not call Looper.prepare () What does the following exception mean? How can I fix it? Here is the code: Toast toast = Toast.makeText (mContext, "Something", Toast.LENGTH_SHORT); This is the exception: Java.lang.RuntimeException: Cannot ... :121)      on Android.widget.Toast. <init> (Toast.Java:68)      on Android.widget.Toast.makeText (Toast.Java:231)
asked Aug 17, 2020 game 4.6k points
0 votes
1 answer 548 views
548 views
Problem : I am getting bellow in Android Studio java.lang.runtimeexception: an error occurred while executing doinbackground()
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 29 views
29 views
Problem: java.lang.IllegalStateException: Not allowed to start service Intent.
asked Feb 12 Shovo210 5.2k points
0 votes
1 answer 81 views
81 views
Problem : While executing Android code getting below error java.lang.illegalstateexception could not execute method of the activity
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 9 views
0 votes
1 answer 3 views
3 views
Problem: How to solve : java.lang.runtimeexception: exception in application start method HELP! I need help understanding this : java.lang.runtimeexception: exception in application start method Can someone please help fix this, I am new in java. Anyone have ideas on what I need to do to understand this? Thanks!
asked 5 days ago Ali 7.2k points