- I have a humble little app that successfully logs into a blog.
   - The HTML returned is scraped successfully into a TextView instance.
   - Attempts to use a ListView instead are failing miserably @ runtime
   - The RuntimeException displays: Your content must have a ListView whose 
   id attribute is 'android.R.id.list'
   - Attempts to rectify this sad situation just changes the 
   RuntimeException to something other.


09-03 23:59:39.016: ERROR/AndroidRuntime(634): FATAL EXCEPTION: main
>         java.lang.RuntimeException: Unable to start activity 
> ComponentInfo{name.davidwbrown/name.davidwbrown.PebbleActivity}: 
> java.lang.RuntimeException: Your content must have a ListView whose id 
> attribute is 'android.R.id.list'
>         at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
>         at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
>         at android.app.ActivityThread.access$600(ActivityThread.java:130)
>         at 
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
>         at android.os.Handler.dispatchMessage(Handler.java:99)
>         at android.os.Looper.loop(Looper.java:137)
>         at android.app.ActivityThread.main(ActivityThread.java:4745)
>         at java.lang.reflect.Method.invokeNative(Native Method)
>         at java.lang.reflect.Method.invoke(Method.java:511)
>         at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
>         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
>         at dalvik.system.NativeStart.main(Native Method)
>         Caused by: java.lang.RuntimeException: Your content must have a 
> ListView whose id attribute is 'android.R.id.list'
>         at android.app.ListActivity.onContentChanged(ListActivity.java:243)
>         at 
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:259)
>         at android.app.Activity.setContentView(Activity.java:1867)
>         at name.davidwbrown.PebbleActivity.onCreate(PebbleActivity.java:42)
>

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

Reply via email to