안녕하세요..

 

메인 메뉴에서 버튼 하나 놓고 클릭시에 다음 메뉴로 넘어가게 실행시키려고 하는데요. 에뮬에서 sorry라고 나와서 질문드립니다.

 

메인 소스와 log cat 첨부하겠습니다.

 

package material.data.db;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ASMSActivity extends Activity {
    /** Called when the activity is first created. */
 
 

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 
    Button launch1 = (Button)findViewById(R.id.Button1);
    launch1.setOnClickListener(new Button.OnClickListener(){
    
    public void onClick(View v) {
         Intent intent = new Intent(ASMSActivity.this, database.class);;
         startActivity(intent);
        }
    });
    }
}

 

이거는 메인xml이니다

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
   
 <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="안녕하세요"
    android:textSize="10pt"
    android:gravity="center"/>
   
 <Button
    android:id="@+id/Button1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="다음"/>
   
</LinearLayout>

이건 logcat이구요...ㅜ

 

10-09 06:03:07.522: ERROR/Zygote(32): setreuid() failed. errno: 2
10-09 06:03:15.601: ERROR/Zygote(32): setreuid() failed. errno: 17
10-09 06:03:16.901: ERROR/BatteryService(58): usbOnlinePath not found
10-09 06:03:16.901: ERROR/BatteryService(58): batteryVoltagePath not found
10-09 06:03:16.901: ERROR/BatteryService(58): batteryTemperaturePath not found
10-09 06:03:16.931: ERROR/SurfaceFlinger(58): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
10-09 06:03:23.972: ERROR/EventHub(58): could not get driver version for /dev/input/mouse0, Not a typewriter
10-09 06:03:23.972: ERROR/EventHub(58): could not get driver version for /dev/input/mice, Not a typewriter
10-09 06:03:24.312: ERROR/System(58): Failure starting core service
10-09 06:03:24.312: ERROR/System(58): java.lang.SecurityException
10-09 06:03:24.312: ERROR/System(58):     at android.os.BinderProxy.transact(Native Method)
10-09 06:03:24.312: ERROR/System(58):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
10-09 06:03:24.312: ERROR/System(58):     at android.os.ServiceManager.addService(ServiceManager.java:72)
10-09 06:03:24.312: ERROR/System(58):     at com.android.server.ServerThread.run(SystemServer.java:184)
10-09 06:03:25.460: ERROR/SoundPool(58): error loading /system/media/audio/ui/Effect_Tick.ogg
10-09 06:03:25.460: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressStandard.ogg
10-09 06:03:25.481: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressSpacebar.ogg
10-09 06:03:25.481: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressDelete.ogg
10-09 06:03:25.492: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressReturn.ogg
10-09 06:03:28.661: ERROR/ThrottleService(58): Could not open GPS configuration file /etc/gps.conf
10-09 06:03:29.741: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
10-09 06:03:29.832: ERROR/logwrapper(152): executing /system/bin/tc failed: No such file or directory
10-09 06:03:29.911: ERROR/logwrapper(154): executing /system/bin/tc failed: No such file or directory
10-09 06:03:42.965: ERROR/HierarchicalStateMachine(58): TetherMaster - unhandledMessage: msg.what=3
10-09 06:04:06.538: ERROR/AndroidRuntime(297): FATAL EXCEPTION: main
10-09 06:04:06.538: ERROR/AndroidRuntime(297): java.lang.RuntimeException: Unable to start activity ComponentInfo{material.data.db/material.data.db.ASMSActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.os.Looper.loop(Looper.java:123)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.ActivityThread.main(ActivityThread.java:4627)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at java.lang.reflect.Method.invokeNative(Native Method)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at java.lang.reflect.Method.invoke(Method.java:521)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at dalvik.system.NativeStart.main(Native Method)
10-09 06:04:06.538: ERROR/AndroidRuntime(297): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.content.res.Resources.getValue(Resources.java:892)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.content.res.Resources.getLayout(Resources.java:731)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.Activity.setContentView(Activity.java:1647)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at material.data.db.ASMSActivity.onCreate(ASMSActivity.java:17)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-09 06:04:06.538: ERROR/AndroidRuntime(297):     ... 11 more