I want to play a gun shot sound continuously by onTouch. I am doing this for automatic gun sounds. So i have problem with there is delay in sound looping. which does not giv
agree with @haresh : try this one ..
runOnUiThread(new Runnable() {
public void run() {
if (pd.isShowing()) {
pd.dismiss();
}
Toast.makeText(getApplicationContext(), "" + msg,
Toast.LENGTH_LONG).show();
}
});
here I m closing progress dialog and display some msg on screen .you can start or stop your media player like this way .