简体   繁体   中英

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! 就是这个

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"

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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