final MediaPlayer mp = MediaPlayer.create(LocAlarmProject.this, R.raw.airtel); mp.start(); final AlertDialog.Builder builder=new AlertDialog.Builder(LocAlarmProject.this); builder.setTitle(disp_title); builder.setMessage(disp_desc); builder.setIcon(R.drawable.alarm); builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { mp.stop(); } }); builder.show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)