android Acer Tab中的菜单选项(A500) [英] Menu Options in android Acer Tab(A500)

查看:105
本文介绍了android Acer Tab中的菜单选项(A500)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Android应用程序并给出了退出和重新加载应用程序的菜单。它在Android手机中运行良好,在手机中单击菜单按钮,菜单选项变得可见。但现在这里出现了问题,即当我在acer平板电脑上运行相同的应用程序时,我怎么能看到我的菜单选项,即退出并重新加载.....



可以任意在这个查询中有一个帮助,在这方面迫切需要家伙...



  public  boolean onCreateOptionsMenu(菜单菜单){
getMenuInflater()。inflate(R.menu.activity_main,menu);

int base = Menu.FIRST;
// 组,商品ID,订单,标题
menu。 add base base base 退出);
menu。 add base base base 重新加载);
return true ;
}

public boolean onOptionsItemSelected(MenuItem item)
{
if (item.hasSubMenu()== false
{
if 退出 == item.getTitle()){
完成();
}
if 重新加载 == item.getTitle()){
super.loadUrl( http: // ABC company.com);
}
}
返回 true ;
}

解决方案

我在清单文件中设置sdk版本的限制,我现在没有检查它的工作... ....

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;
   }

解决方案

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


这篇关于android Acer Tab中的菜单选项(A500)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆