"Your content must have a ListView whose id attribute is
'android.R.id.list'"...

Did you check your layout file? It must have this listview with this id...

2015-12-22 6:00 GMT-02:00 Chithra Sarathy <[email protected]>:

> Hai to everybody,
>
>                                  I try to call web service in android
> android. but the application is unfortunately stopped. The warning is
>
> *1. *Process: com.example.pc3.webserrest, PID: 2260
> *java.lang.RuntimeException*: Unable to start activity
> ComponentInfo{com.example.pc3.webserrest/com.example.pc3.webserrest.MainActivity}:
> java.lang.RuntimeException: Your content must have a ListView whose id
> attribute is 'android.R.id.list'
>
> at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
> at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
> at android.app.ActivityThread.-wrap11(ActivityThread.java)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:148)
> at android.app.ActivityThread.main(ActivityThread.java:5417) at
> java.lang.reflect.Method.invoke(Native Method)
> at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
>
> *2.*
>
> 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.PhoneWindow.setContentView(PhoneWindow.java:398)
> at android.app.Activity.setContentView(Activity.java:2166)
> at com.example.pc3.webserrest.MainActivity.onCreate(MainActivity.java:53)
> at android.app.Activity.performCreate(Activity.java:6237)
> at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
> at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
> at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
> at android.app.ActivityThread.-wrap11(ActivityThread.java)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:148)
> at android.app.ActivityThread.main(ActivityThread.java:5417)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/23b6e983-f73b-4623-9cc4-1f20ab4ac688%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/23b6e983-f73b-4623-9cc4-1f20ab4ac688%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAO12C3-wzPOjDjSdA%2BNkqKg0nSJJO9UotEu0_OzFakJ%2BUae9Gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to