Back to project page audioplayer.
The source code is released under:
GNU General Public License
If you think the Android project audioplayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package fr.julien_dumortier.simplemusicplayer.uiprompt; /*from w w w .j a v a 2 s.c o m*/ import fr.julien_dumortier.simplemusicplayer.R; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; public class PromptConfirmDeletePlaylist extends AlertDialog.Builder { public PromptConfirmDeletePlaylist(Context context, final IOnConfirmDeletePlaylist listener) { super(context); setTitle(context.getResources().getText(R.string.delete_playlist)); setMessage(context.getResources().getText(R.string.delete_playlist_quest)); setIcon(R.drawable.ic_menu_delete); setPositiveButton(context.getResources().getText(R.string.yes), new OnClickListener() { public void onClick(DialogInterface dialog, int which) { listener.onConfirmDeletePlaylist(); } }); setNegativeButton(context.getResources().getText(R.string.cancel), new OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); } public interface IOnConfirmDeletePlaylist{ public void onConfirmDeletePlaylist(); } }