title: unfortunately app has stopped - java.lang.runtimeexception your content must have a listview whose id attribute is android.r.id.list
body: <p>I still newbie in Android Programming, and i success build the project but cant open in emulator (unfortunately app has stop). so I need your HELP, Please..!!</p>
  
  <p>Here my logcat</p>
  
  <pre><code>11-11 06:10:57.871: E/AndroidRuntime(1684): FATAL EXCEPTION: main
  11-11 06:10:57.871: E/AndroidRuntime(1684): Process: id.co.kendaricall, PID: 1684
  11-11 06:10:57.871: E/AndroidRuntime(1684): java.lang.RuntimeException: Unable to start activity ComponentInfo{id.co.kendaricall/id.co.kendaricall.KategoriActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.os.Handler.dispatchMessage(Handler.java:102)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.os.Looper.loop(Looper.java:136)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ActivityThread.main(ActivityThread.java:5001)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at java.lang.reflect.Method.invokeNative(Native Method)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at java.lang.reflect.Method.invoke(Method.java:515)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at dalvik.system.NativeStart.main(Native Method)
  11-11 06:10:57.871: E/AndroidRuntime(1684): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ListActivity.onContentChanged(ListActivity.java:243)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:293)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.Activity.setContentView(Activity.java:1929)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at id.co.kendaricall.KategoriActivity.onCreate(KategoriActivity.java:64)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.Activity.performCreate(Activity.java:5231)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
  11-11 06:10:57.871: E/AndroidRuntime(1684):     ... 11 more
  </code></pre>
  
  <p>This is my AndroidManifest.xml File</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="id.co.kendaricall"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="7"
          android:targetSdkVersion="19" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/KendariCallTheme"&gt;
          &lt;uses-library android:name="com.google.android.maps" 
                        android:required="false" /&gt;
  
      &lt;activity android:name="id.co.kendaricall.KategoriActivity"
                android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
          &lt;activity android:name="id.co.kendaricall.KontakDetailActivity" /&gt;
          &lt;activity android:name="id.co.kendaricall.SettingActivity" /&gt;
          &lt;activity android:name="id.co.kendaricall.TemplateActivity" /&gt;
          &lt;activity android:name="id.co.kendaricall.KontakListActivity" /&gt;
          &lt;activity android:name="id.co.kendaricall.PencarianActivity" /&gt;
          &lt;activity android:name="id.co.kendaricall.KontakFavoritActivity" /&gt;
  &lt;/application&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PRIVILEDGE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>And Here My KategoriActivity.java file</p>
  
  <pre><code>package id.co.kendaricall;
  
  import android.app.ProgressDialog;
  import android.content.Intent;
  import android.os.Bundle;
  import android.os.Handler;
  import android.os.Message;
  import android.util.Log;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.GridView;
  import java.io.IOException;
  
  public class KategoriActivity extends TemplateActivity {
      private ProgressDialog progressDialog;
  
      /* renamed from: id.co.kendaricall.KategoriActivity.1 */
      class C00811 extends Handler {
          C00811() {
          }
  
          public void handleMessage(Message msg) {
              KategoriActivity.this.progressDialog.dismiss();
              KategoriActivity.this.myData.openDataBase();
              KategoriActivity.this.showKategoriList();
              KategoriActivity.this.pilihLokasiDialog(KategoriActivity.this.findViewById(C0089R.id.button_location));
          }
      }
  
      /* renamed from: id.co.kendaricall.KategoriActivity.2 */
      class C00822 extends Thread {
          private final /* synthetic */ Handler val$handler;
  
          C00822(Handler handler) {
              this.val$handler = handler;
          }
  
          public void run() {
              try {
                  KategoriActivity.this.myData.createDataBase();
              } catch (IOException e) {
                  e.printStackTrace();
              }
              this.val$handler.sendEmptyMessage(0);
          }
      }
  
      /* renamed from: id.co.kendaricall.KategoriActivity.3 */
      class C00833 implements OnItemClickListener {
          private final /* synthetic */ AdapterKategori val$adapter;
  
          C00833(AdapterKategori adapterKategori) {
              this.val$adapter = adapterKategori;
          }
  
          public void onItemClick(AdapterView&lt;?&gt; adapterView, View v, int position, long id) {
              KategoriActivity.this.showKontakActivity(this.val$adapter.getItemId(position));
          }
      }
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(C0089R.layout.kategorigrid);
          headerSetup();
          setNavigation(HOME, "Kategori");
          getInitialData();
      }
  
      public void showKontakActivity(long itemId) {
          // TODO Auto-generated method stub
  
      }
  
      protected void onRestart() {
          super.onRestart();
          setKotaLokasi();
      }
  
      private void getInitialData() {
          if (!this.myData.checkDataBase() || this.myData.isUpgrade()) {
              this.progressDialog = ProgressDialog.show(this, "", "Loading ...");
              new C00822(new C00811()).start();
              return;
          }
          showKategoriList();
          setKotaLokasi();
          Log.i("KategoryActivity", "set kota lokasi");
      }
  
      public void showKategoriList() {
          GridView grid = (GridView) findViewById(C0089R.id.gridviewKategori);
          AdapterKategori adapter = new AdapterKategori(this);
          grid.setAdapter(adapter);
          grid.setOnItemClickListener(new C00833(adapter));
      }
  
      public void showKontakActivity(String idKategori) {
          Intent go = new Intent(this, KontakListActivity.class);
          go.putExtra("idKategori", idKategori);
          startActivity(go);
      }
  }
  </code></pre>