Click here to Skip to main content
12,064,855 members (36,867 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Mobile Android
I had developed an android application and given menus to quit and reload the application. It's working good in android mobiles and On clicking menu button in mobile, menu options are getting visible. but now here goes the problem i.e When I run the same application in acer tablet how can I see my menu options i.e quit and reload.....

could any one help in this query, an urgent need in this regard guys...

public boolean onCreateOptionsMenu(Menu menu) {
       getMenuInflater().inflate(R.menu.activity_main, menu);
 
      int base = Menu.FIRST;
       // Group, item id, order, title
       menu.add(base,base,base,"Quit");
       menu.add(base,base,base,"Reload");
       return true;
   }
 
   public boolean onOptionsItemSelected(MenuItem item)
   {
       if (item.hasSubMenu() == false)
       {
           if("Quit"==item.getTitle()) {
               finish();
           }
           if("Reload"==item.getTitle()) {
              super.loadUrl("http://ABC company.com ");
           }
       }
       return true;
   }
Posted 7-Jan-13 19:48pm
Comments
Darren_vms 8-Jan-13 12:25pm
   
So are you saying they don't appear, or because of a hardware limitation you can't press a button to get them to appear ?
geethika amu 8-Jan-13 22:38pm
   
yes the above code is working but i didn't check the limitations of sdk version in manifest file

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

I set the limitations of sdk version in manifest file which i didnt check before now its working.......
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web04 | 2.8.160204.4 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100