菜单上的android启动程序页面 [英] android launcher page on the menu
问题描述
我在我的Droid X2设备上运行我的Android应用程序。这个程序有一些项目,其中之一就是在家里(即启动应用程序启动时的画面)菜单。
I'm running my android app on my droid x2 device. this app has a menu with some items, one of which is the Home (the screen that launches when the app starts).
的问题是,当我点击上的主页项目带来了这个菜单,
the problem is that when I tap on the Home item it brings up this menu,
我不知道为什么它确实是和我怎么能解决这个问题。
I don't know why it does that and how i can fix it.
它工作正常,在模拟器上,我居兴这一点是必须建立在设备上。
It works fine on the simulator, I'm gussing this is something that needs to be set up on the device.
我需要知道,如果一些已经看到这个菜单之前,如果是它是什么,当它显示出来?
I need to know if some has seen this menu before and if so what it is and when it shows up?
推荐答案
其实,我加入了新的活动,我的清单文件解决此问题。所以我不得不为发射活动是
I actually fix this issue by adding a new activity to my manifest file. so what I had for the launcher activity was
<activity
android:label="@string/app_name"
android:name=".Home" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
和我还增加了以下活动这将起到就像一个正常的活动,并在我的菜单中选择我使用这个新活动的动作名称。
and I also added the following activity which would act just as a normal activity and in my menu selection I used the action name of this new activity.
<activity
android:label="@string/app_name"
android:name=".Home" >
<intent-filter >
<action android:name="com.mywebsite.app.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
这篇关于菜单上的android启动程序页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!