Team,

Could you please help me debug the below issue?

ActivityAdapter activityAdapter = new
ActivityAdapter(this,activityList); Log.d("list", "List Display -
1");

setListAdapter( activityAdapter );
Log.d("List", "list done");
It's throwing exception at the time of setListAdapter,

05-01 16:59:15.996: WARN/dalvikvm(251): threadid=3: thread exiting
with uncaught exception (group=0x4001b188) 05-01 16:59:15.996: ERROR/
AndroidRuntime(251): Uncaught handler: thread main exiting due to
uncaught exception 05-01 16:59:16.204: ERROR/AndroidRuntime(251):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.antennasoftware.xml/
com.antennasoftware.xml.XMLParsing}: [b]java.lang.RuntimeException:
Your content must have a ListView whose id attribute is
'android.R.id.list' 05-01 [/b]16:59:16.204: ERROR/AndroidRuntime(251):
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2454) 05-01 16:59:16.204: ERROR/AndroidRuntime(251): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2470) 05-01 16:59:16.204: ERROR/AndroidRuntime(251): at
android.app.ActivityThread.access$2200(ActivityThread.java:119) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1821) 05-01 16:59:16.204: ERROR/
AndroidRuntime(251): at
android.os.Handler.dispatchMessage(Handler.java:99) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
android.os.Looper.loop(Looper.java:123) 05-01 16:59:16.204: ERROR/
AndroidRuntime(251): at
android.app.ActivityThread.main(ActivityThread.java:4310) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
java.lang.reflect.Method.invokeNative(Native Method) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
java.lang.reflect.Method.invoke(Method.java:521) 05-01 16:59:16.204:
ERROR/AndroidRuntime(251): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860) 05-01 16:59:16.204:
ERROR/AndroidRuntime(251): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
dalvik.system.NativeStart.main(Native Method) 05-01 16:59:16.204:
ERROR/AndroidRuntime(251): Caused by: java.lang.RuntimeException: Your
content must have a ListView whose id attribute is 'android.R.id.list'
05-01 16:59:16.204: ERROR/AndroidRuntime(251): at
android.app.ListActivity.onContentChanged(ListActivity.java:236) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
201) 05-01 16:59:16.204: ERROR/AndroidRuntime(251): at
android.app.Activity.setContentView(Activity.java:1622) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
com.antennasoftware.xml.XMLParsing.onCreate(XMLParsing.java:36) 05-01
16:59:16.204: ERROR/AndroidRuntime(251): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047) 05-01 16:59:16.204: ERROR/AndroidRuntime(251): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2417) 05-01 16:59:16.204: ERROR/AndroidRuntime(251): ... 11 more

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to