Back button and menu

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

Back button and menu

Postby zahidalinaqvi » Thu Nov 19, 2009 10:39 pm

if i override the back button functionality then menu not working in my application.
i want to perform diff fuctionality on back button so i override the onKeyDown method.


how i can make both working.
User avatar
zahidalinaqvi
Developer
Developer
 
Posts: 35
Joined: Mon Aug 11, 2008 8:54 am
Location: Jaipur India

Top

Postby Kur1310 » Fri Nov 20, 2009 5:16 am

Hey, u might be returning true from the onKeyDown event listener. Returning true means u have handled the onkeydown event and there is no need of system's event handling. That's why ur menu key is not responding...
Just change the returned value to false in-place of true...and ur menu functionality will work.... :) :) :) :) :) :) :)
-Kur
Kur1310
Junior Developer
Junior Developer
 
Posts: 20
Joined: Wed Oct 28, 2009 10:50 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests