Using Json Ror-content must have a listview whose id-attribute,
<p>I am parsing the ror website data using json this is my parsing link </p>

<p><a href="http://peaceful-cliffs-6253.herokuapp.com/hotels.json" rel="nofollow">http://peaceful-cliffs-6253.herokuapp.com/hotels.json</a></p>

<p>its shows the content value of id problem showing</p>

<p>activity_list-item.xml</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" &gt;

    &lt;ListView
        android:id="@+id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent" &gt;
    &lt;/ListView&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>My Mainactivity.java</p>

<pre><code>public class MainActivity extends ListActivity implements FetchDataListener{
    private ProgressDialog dialog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);       
        setContentView(R.layout.activity_list_item);   
        initView();   
    }

    private void initView() {
        // show progress dialog
        dialog = ProgressDialog.show(this, "", "Loading...");

        String url = "http://peaceful-cliffs-6253.herokuapp.com/hotels.json";
        FetchDataTask task = new FetchDataTask(this);
        task.execute(url);
    }

    @Override
    public void onFetchComplete(List&lt;Application&gt; data) {
        // dismiss the progress dialog
        if(dialog != null)  dialog.dismiss();
        // create new adapter
        ApplicationAdapter adapter = new ApplicationAdapter(this, data);
        // set the adapter to list
        setListAdapter(adapter);        
    }

    @Override
    public void onFetchFailure(String msg) {
        // dismiss the progress dialog
        if(dialog != null)  dialog.dismiss();
        // show failure message
        Toast.makeText(this, msg, Toast.LENGTH_LONG).show();        
    }
}
</code></pre>

<p>there is no error is showing in coding,but its showing problem only in logcat and in emulator its shows that my apps has stopped,what it might be the reason.</p>

<pre><code>05-18 05:40:24.718: E/AndroidRuntime(1048): FATAL EXCEPTION: main
05-18 05:40:24.718: E/AndroidRuntime(1048): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jsonandroid/com.example.jsonandroid.MainActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.os.Looper.loop(Looper.java:137)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ActivityThread.main(ActivityThread.java:5039)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at java.lang.reflect.Method.invokeNative(Native Method)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at java.lang.reflect.Method.invoke(Method.java:511)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at dalvik.system.NativeStart.main(Native Method)
05-18 05:40:24.718: E/AndroidRuntime(1048): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ListActivity.onContentChanged(ListActivity.java:243)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:273)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.Activity.setContentView(Activity.java:1881)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at com.example.jsonandroid.MainActivity.onCreate(MainActivity.java:17)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.Activity.performCreate(Activity.java:5104)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
05-18 05:40:24.718: E/AndroidRuntime(1048):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
</code></pre>
