James wrote:
> 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.
If you don't post your Java stack trace, everybody on this list will be
sort of lost, too.
If I had to guess, "info" is not an activity registered in your manifest.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Training in NYC: 30 April-2 May 2010: http://guruloft.com
--
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