Agree with Davi comment, please check your xml file those load in Activity also check id for listview Thanks Vijay Guru.
On Tuesday, 22 December 2015 13:30:40 UTC+5:30, Chithra Sarathy wrote: > > 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 android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. 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/185cd527-1ffa-436d-9edc-022c6c893c91%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.