I want a simple app that when launched starts playing a music and continiously runs a gif animation, how can I do it, I can't get the mediaplayer to start.. This is what I have so far
public class Main extends Activity {
MediaPlayer music;
AnimationDrawable background;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
music = MediaPlayer.create(Main.this, R.raw.thesong);
}
}