Hello ,

I'm trying to go to a new activity after one of the items on the list
is clicked.
The problem is that It throws me away every time.

this is the class that deals with the clicking and I simply can't find
the error I made.
The putExtra objects are not the cause of the problem.

Code:

                ListView lv = getListView();
                lv.setTextFilterEnabled(true);
                        lv.setOnItemClickListener(new OnItemClickListener()
                        {
                               public void onItemClick(AdapterView<?> parent, 
View view,
int position, long id)
                               {
                                   clickedItem = position;
                                   Log.d("View Items","Item "+clickedItem+" was 
clicked");
                                   Intent intent = new
Intent(getApplicationContext(),ViewItemUI.class);
                               intent.putExtra("Index",clickedItem);
                               intent.putExtra("Database",userDatabase);

                                   startActivity(intent);

                               }
                        }); //end of anonymous class

Thanks for the help,

Michael

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

Reply via email to