简体   繁体   English

不幸的是(app_name)已停止ANDROID ECLIPSE

[英]Unfortunately (app_name) has stopped ANDROID ECLIPSE

here is the problem. 这是问题所在。 I'm new with android so i was just designing a simple form with some textfields and button, nothing complicated, and it runs perfectly! 我是android的新手,所以我只是在设计一个带有一些文本字段和按钮的简单表单,没有什么复杂的,并且运行完美! 就是这个

Nevertheless when i add another class in order to work with SQLite database, it doesn't run, and shows the following message: "UNFORTUNATELY, HAS STOPPED" 但是,当我添加另一个类以使用SQLite数据库时,该类无法运行,并显示以下消息:“ UNFORTUNATELY,HAS STOPPED”

Please if u have any idea 'bout to fix this problema i'll be more than thankful. 如果您有任何想法'请解决这个问题,我将不胜感激。

PS: i'm using the ADT BUNDLE FOR WINDOWS which has Eclipse, sdk, sdk manager. PS:我正在使用ADT BUNDLE FOR WINDOWS,它具有Eclipse,SDK,SDK管理器。 just for the record. 仅作记录。 问题

...And just in case u ask me for the log error here it is: ...以防万一您问我日志错误,这里是: 日志错误

Guys thanks a lot for your help! 伙计们非常感谢您的帮助! i know it's kinda boring but thanks anyway. 我知道这有点无聊,但还是要谢谢。 Here is the manifest should i add the new activity in this part of the code or where? 这是清单,我应该在代码的这一部分中还是在哪里添加新活动? 最明显的

have you created a new activity? 您创建了一个新活动吗?

every activity created must be added to the manifest file of the app otherwise the app will crash when that activity is started. 必须将创建的每个活动添加到应用程序的清单文件中,否则启动该活动时,应用程序将崩溃。

heres how you add it to the manifest: 继承人如何将其添加到清单中:

<activity android:name="com.android.test.ActivityName"
        android:label="@string/activity_label" ></activity>

where com.android.test.ActivityName is the name of the activity as it appears in the package add that between the <application> </application> tags 其中com.android.test.ActivityName是活动名称,该名称显示在软件包中,并在<application> </application>标签之间添加

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM