-1

My logcat shows

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.storemanager/android.content.ClipData$Item}; have you declared this activity in your AndroidManifest.xml?

My intent is like this

Intent intent = new Intent(CategoryMain.this, Item.class);
intent.putExtra("childData", childDataMap);
startActivity(intent);

Android Manifest is like

<activity android:name="CategoryMain" >
        </activity>
        <activity android:name="Item" >
        </activity>

found this question, it is mentioned that it might be due to some nullpointer exception in the next activity, I tried to debug it but the debugger does not moves to the next activity. Please tell me where I am wrong ?

Edit: I have already tried changing "Item" to ".Item"

SOLVED: after trying each and every method , finally I came to realize there was no problem with my android manifest . The problem was a nullpointerexception in the oncreate method in the next activity.

Community
  • 1
  • 1
Ashwani
  • 1,574
  • 14
  • 28

4 Answers4

2

try this

<activity 
android:name=".CategoryMain" >
        </activity>
        <activity android:name=".Item" >
        </activity>
Naveen Kumar
  • 3,738
  • 4
  • 29
  • 50
1

Its a good habit to give the Fully Qualified class Name

<activity 
   android:name="com.example.storemanager.CategoryMain" >
    </activity>
    <activity android:name="com.example.storemanager.Item" >
    </activity>
Ram kiran Pachigolla
  • 20,897
  • 15
  • 57
  • 78
  • still getting 09-27 04:27:05.400: E/AndroidRuntime(2763): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.storemanager/android.content.ClipData$Item}; have you declared this activity in your AndroidManifest.xml? – Ashwani Oct 17 '12 at 10:55
  • are you using any external jars in your project – Ram kiran Pachigolla Oct 17 '12 at 10:56
  • No ! I am not using any external jars. – Ashwani Oct 17 '12 at 10:59
  • [this](http://stackoverflow.com/questions/10908534/android-content-activitynotfoundexception-unable-to-find-explicit-activity-clas) link may help you.Check it – Ram kiran Pachigolla Oct 17 '12 at 11:07
0

Try this -

......
......
<activity android:name=".CategoryMain" />
<activity android:name=".Item" />
......
......

Update

Have you ever tried to declare your activity with full package?

<activity android:name="com.example.storemanager.Item />
......
Praveenkumar
  • 24,084
  • 23
  • 95
  • 173
0

Since the above the answers are not working, I have a feeling that the name Item is a little fishy, since android use item tags. Try to change the activity name to ItemActivity.
I am just guessing.

Lazy Ninja
  • 22,342
  • 9
  • 83
  • 103