如何注册在AndroidManifest.xml中一个新的活动? [英] How to register a new activity in AndroidManifest.xml?

查看:907
本文介绍了如何注册在AndroidManifest.xml中一个新的活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我总是得到一个错误,当我运行我创建的应用程序,并根据我的研究,我没有注册我的活动清单中。我怎样才能在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.

这篇关于如何注册在AndroidManifest.xml中一个新的活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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