This is my app I need to set a music(background) for this application
my MAIN ACTIVITY
public class MainActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Thread Timer =new Thread( ){
            public void run(){
                try{
                    sleep(1000);
                    startActivity(new Intent("com.example.SPLASH"));
                }
                catch(InterruptedException e){
                    e.printStackTrace();
                }
                finally{
                    finish();
                }
            }
        };
        Timer.start();
    }
}
My Second activity
public class Splash extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
    LinearLayout bt = (LinearLayout) findViewById(R.id.linear);
     bt.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
        Intent intent = new Intent(Splash.this, third.class);
        startActivity(intent);
        Toast.makeText(getApplicationContext(), "PINNI", Toast.LENGTH_SHORT).show();
        }
    });
    }
}
 
    