Menu always Displayable

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Menu always Displayable

Postby nithin.warier » Tue Jan 05, 2010 4:28 pm


I want options menu should always display, when I open my
application, for that I put openOptionsMenu(), in onCreate() of the
launcher activity. But its showing exception.

--android.view.WindowManager$BadTokenException: Unable to add window
-- token n
ull is not valid; is your activity running?

Then I put openOptionsMenu() in onResume(), still its throwing

Any idea how to make menu displayable always.

Experienced Developer
Experienced Developer
Posts: 87
Joined: Thu Feb 28, 2008 12:05 pm
Location: Malappuram Kerala India


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests