Click here to Skip to main content
15,886,860 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...

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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900