So within my app currently, we have 3 main pages.

The main home page
A create/submit page
and a view page

Because those pages work off webservice to populate 2 drop downs, i wanted 
to create "settings/options" where the user can manage the data within the 
drop down.

So current i have the menu setup in the top left corner of the pages, when 
you click that, you get the dropdown menu with a few options.. 

But something i noticed, is if i chose any item from that menu, and then 
chose another menu item and then again another item, only way to get back 
to the original window i was on is to hit back x number of times(x being 
how ever many menu items i chose to select.

Here is my code to open the new selected menu item:

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent();
    switch (item.getItemId())
    {
    case R.id.action_settings:
    intent.setComponent(new ComponentName(ViewInventoryActivity.this, 
SettingsActivity.class));
    startActivity(intent);
    return true;

            case R.id.action_about:
                intent.setComponent(new 
ComponentName(ViewInventoryActivity.this, AboutActivity.class));
                startActivity(intent);
                return true;
    }
    return super.onOptionsItemSelected(item);
}

What am i doing wrong that i have to hit back so many times to get back to 
where i was originally?

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to