Hi!

I created a ListActivity with 5 items. My goal: when I click on an
item, the app switches to an other activity. I've tried with this
code:

protected void onListItemClick(ListView l, View v, int position, long
id) {
  ..
Intent i1 = new Intent(thisActivity.this, otherActivity.class); //
also tried with "this" instead of "thisActivity.this"
                        this.startActivity(i1); // and with startActivity(i1)
...
}

but I got runtime error. How can I solve this problem? Thank's for
your help :)

Peter

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to