Hi there,

I am trying to start a new activity from a menu action, as follows:

   public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
                case MENU_PREF:
                        showDialog(MENU_PREF);
                        return true;
                case MENU_LIST:
                        Intent list = new Intent(this, NewList.class);
                        startActivity(list);
                        return true;
        }
        return false;
   }


The class exists, and has the OnCreate method over-ridden, but
whenever I try to perform the action in the simulator I get an
ActivityNotFoundException raised. I have looked through the documents
and as far as I can read, I do not need to create an Intent in the
manifest.xml for this to work - can anyone give me any pointers as to
what I have done wrong?

-- 
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