我总是得到一个错误,当我运行我创建的应用程序,并根据我的研究,我没有注册我的活动清单中。我怎样才能在AndroidManifest.xml中注册一个新的活动?
I always get an error when I run my created application and based on my research I haven't registered my Activity in the manifest. How can I register a new activity in AndroidManifest.xml?
假设你正在使用Eclipse,
Assuming you're using Eclipse,
转到您的 Android清单
,转到这个应用程序
设置页(底部),点击添加,选择活动。在右边,旁边的名称:
点击浏览
,以获取可用活动的列表,只需添加它,你定! :)
Goto your Android Manifest
, goto the Applications
Tab (at the bottom), click on "Add", Choose Activity. On the right, next to Name:
Click on Browse
, to get a list of available activities, just add it and you're set! :)
您可以正确的方式只需编辑清单XML以及。这是高达你。
You could right way just edit the Manifest XML aswell. It's upto you.
上一篇:Android地图:安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY错误、地图、Android、INSTALL_FAILED_MISSING_SHARED_LIBR