Thread: activity error
View Single Post
  #4 (permalink)  
Old December 22nd, 2011, 09:09 PM
Cliff2310 Cliff2310 is offline
Authorized User
Points: 343, Level: 6
Points: 343, Level: 6 Points: 343, Level: 6 Points: 343, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2011
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts

1. in the AndroidManifest.xml file change android:name to .MainActivity.
You may have done this, but you did not sent the manifest file.

2. Line 39 in MainActivity needs the name of the activity you are trying to start.
Intent i = new Intent("com.Android");

Intent i = new Intent("com.Android.ACTIVITY2");

Now it still can not find activity2. I do not know why.
The error message is:
12-22 18:56:53.706: E/AndroidRuntime(829): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.Android.ACTIVITY2 (has extras) }
Maybe someone else will know why.

It may be that your naming convention (com.Android and not com.Android.Activities).

3. General observation.
It appears you downloaded the code and just modified it. You should type in the code, yes I know its a pain, but that is how you learn.

Hope this helps some
"Software to the Stars"
Failure is not an option. It comes bundled with your Microsoft products.
Reply With Quote