Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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 18:48pm
Comments
Darren_vms at 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 at 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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 840
1 OriginalGriff 437
2 Abhinav S 303
3 thatraja 225
4 Emre Ataseven 200
0 Sergey Alexandrovich Kryukov 8,122
1 OriginalGriff 4,520
2 Peter Leow 3,744
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid