Android: tworzenie mediaplayer
Mam ten kod:
package com.example.pr;
import android.media.MediaPlayer;
public class Audio{
MediaPlayer mp;
public void playClick(){
mp = MediaPlayer.create(Audio.this, R.raw.click);
mp.start();
}
}
Mam błąd w „create” za pomocą tego komunikatu „Metoda create (Context, int) w typie MediaPlayer nie ma zastosowania do argumentów (Audio, int)”
czemu?