I am trying to use ListView and extending ListActivity in main class. I am repeatedly getting the following RuntimeException and I am not able to figure out what differently I have done from other example apps that I have with me, that use ListView. So kindly help.
Source snippet :
Using java Syntax Highlighting
- public class SmsNavigator extends Activity {
- private ListView inboxListView = null;
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle icicle) {
- super.onCreate(icicle);
- setContentView(R.layout.sms);
- inboxListView = (ListView) findViewById(R.id.inbox_list);
- }
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
sms.xml
Using xml Syntax Highlighting
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:padding="4dip"
- android:gravity="center_horizontal"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:text="@string/app_name">
- <ListView id="@+id/inbox_list"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:paddingBottom="4dip"
- android:text="@string/sms_inbox"/>
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
and the Exception is in attached JPG file. Please help.
Also can anybody point to any tutorial on how to debug in Eclipse in general and more so with Android, as most of the times when Exceptions are thrown, setting breakpoints does not seem to help and using "Step Over" also does not help. Basically the debugger sometimes takes you to "Looper.class", "Instrumentation.class" that are likely from the SDK. How to then ste out of those classes? In the case of the problem posted above, it did not even reach the first line inside oCreate(). Then how can we debug in such cases?
And when sometimes debugger does not attach to your launched configuration or DDMS windows is blank, what can b done? I tried re-installing plugin, resetting SDK path but nothing worked. And how is DDMs different from Debug window?
Thanks and regards,
Sathish

.


Can you use the Android-Built-In-Browser 

(sub-packages definitely. perhaps define the outermost "