我寫了簡單的代碼,但我不知道爲什麼我的模擬器總是告訴我這個error:"the application has stopped unexpectedly android please try again"
。我試圖擺脫它,但沒有成功幫助我請謝謝。 http://www.imageurlhost.com/images/msvwuxotq5fcpg63q8br_Logcat.pngAndroid應用程序的力量終止
package com.tusway.BasicTutorial;
import android.app.Activity;
import android.os.Bundle;
public class myMenu extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
我的XML
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tusway.BasicTutorial"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MyMain"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".myMenu"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.tusway.BasicTutorial.CLEARSCREEN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
它 –
你可以把什麼厚望你得到的Logcat.??required日誌..... !!!!發佈的logcat共享錯誤 – raju
請發佈LOGCAT – Shoshi