입니다. 내 앱을 만들고 싶습니다. 시작하고 싶습니다. 하지만 어떤 이유로 나는 에뮬레이터에서 작동하지 않습니다. 오류 메시지가 없으므로 무엇이 잘못되었는지 알지 못합니다. S 죄송합니다. 프로그래밍에 능숙하지 않으며 나에게 도움이 될만한 것을 찾을 수 없습니다. 감사 !안드로이드 앱이 시작되지 않았을 것입니다. 아마도 안드로이드 매니페스트가
xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Button
android:id="@+id/BBG"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Big Bang Theory" />
<Button
android:id="@+id/HIMYM"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="How I Met Your Mother" />
</LinearLayout>
안드로이드 매니페스트 :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.watchserie"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".Menu"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
메뉴 자바 파일 :
이package watchserie.niels;
import com.example.watchserie.R;
import android.app.Activity;
import android.os.Bundle;
public class Menu extends Activity {
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.menu);
}
}
"나는 효과를 내지 못합니다"라는게 무슨 뜻이야? 그것은 무엇을하거나하지 않습니까? – BlackHatSamurai
레이아웃 XML 파일의 이름을 확인하고 setContentView에 전달하는 ID의 이름 – DGomez