먼저 회색님 글은 읽었구요...

로그캣오류화면과 거기에 맞는 소스를 올려야하는데 정확히 어떤부분 소슨지는 모르겠네요 ㅜ

혹시 몰라서 미니페스트 소스도 올립니다.

답변부탁드려요 ㅜㅜㅜㅜ

 

package exam.DeepSleep;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class DeepSleep extends TabActivity {
 TabHost mTab;

 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
 
  TabHost tabHost = getTabHost();
 
  tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("Type")
    .setContent(new Intent(this, DeepSleep_1.class)));

  tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("Game")
    .setContent(new Intent(this, DeepSleep_2.class)));
 
 }
}

 

 

 

package exam.DeepSleep;


import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class DeepSleep_1 extends Activity {
    /** Called when the activity is first created. */
 int MusicON=0;
 private MediaPlayer myPlayer1, myPlayer2, myPlayer3; 
 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main1);
  
     ImageView imgbtn1 = (ImageView)findViewById(R.id.imagebtn1);
     ImageView imgbtn2 = (ImageView)findViewById(R.id.imagebtn2);
     ImageView imgbtn3 = (ImageView)findViewById(R.id.imagebtn3);
     myPlayer1 = MediaPlayer.create(this, R.raw.audiotest1); 
     myPlayer2 = MediaPlayer.create(this, R.raw.audiotest2); 
     myPlayer3 = MediaPlayer.create(this, R.raw.audiotest3); 
    
     imgbtn1.setOnClickListener(new View.OnClickListener() {
     public void onClick(View v){
      if(MusicON==0){
       Intent intent1 = new Intent(DeepSleep_1.this, DeepSleep_4.class);
       MusicON++;
       startActivity(intent1);
       }
      else{
       Intent intent1 = new Intent(DeepSleep_1.this, DeepSleep_4.class);
     
       myPlayer1.stop();
       myPlayer2.stop();
       myPlayer3.stop();
       startActivity(intent1);
      }
     
     }
 });
 
     imgbtn2.setOnClickListener(new View.OnClickListener() {
         public void onClick(View v){
          if(MusicON==0){
           Intent intent2 = new Intent(DeepSleep_1.this, DeepSleep_5.class);
           MusicON++;
           startActivity(intent2);
           }
          else{
           Intent intent2 = new Intent(DeepSleep_1.this, DeepSleep_5.class);
           myPlayer1.stop();
           myPlayer2.stop();
           myPlayer3.stop();
           startActivity(intent2);
          }
         }
        });
    
     imgbtn3.setOnClickListener(new View.OnClickListener() {
         public void onClick(View v){
          if(MusicON==0){
           Intent intent3 = new Intent(DeepSleep_1.this, DeepSleep_6.class);
           MusicON++;
           startActivity(intent3);
           }
          else{
           Intent intent3 = new Intent(DeepSleep_1.this, DeepSleep_6.class);
           myPlayer1.stop();
           myPlayer2.stop();
           myPlayer3.stop();
           startActivity(intent3);
          }  
         }        
     });
    }

}

 

 

 

그리고 매니페스트

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="exam.DeepSleep"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Type"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN2" />
            </intent-filter>
           
        </activity>
       
        <activity android:name=".Game"
        android:label="@string/app_name">
        </activity>

    </application>
    <uses-sdk android:minSdkVersion="10"/>
</manifest>

 

 

로그캣은 첨부자료로 있습니다.