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; // ww 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 PromptConfirmAddInNew extends AlertDialog.Builder { public PromptConfirmAddInNew(Context context, final IOnConfirmAddInNew listener) { super(context); setTitle(context.getResources().getText(R.string.add_in_new_and_play)); setMessage(context.getResources().getText(R.string.add_in_new_and_play_quest)); setIcon(R.drawable.ic_menu_delete); setPositiveButton(context.getResources().getText(R.string.yes), new OnClickListener() { public void onClick(DialogInterface dialog, int which) { listener.onConfirmAddInNew(); } }); setNegativeButton(context.getResources().getText(R.string.cancel), new OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); } public interface IOnConfirmAddInNew { public void onConfirmAddInNew(); } }