Hello again,
I've made a bit of progress with this onclick madness:
This time when I click on an item the app force closes:
ListView lv = getListView();
lv.setTextFilterEnabled(true);
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,int
position, long id) {
Toast.makeText(getApplicationContext(), ((TextView)
view).getText(),
Toast.LENGTH_SHORT).show();
Intent i = new Intent(view.getContext(),info.class);
startActivity(i);
}
});
When i remove this:
Intent i = new Intent(view.getContext(),info.class);
startActivity(i);
it doesn't force close. I've looked at the logcat but i'm sort of
lost.
Thanks in advance :)
--
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