Back to project page PhotoStrips.
The source code is released under:
MIT License
If you think the Android project PhotoStrips 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 com.ahmetkizilay.image.photostrips.dialogs; // w w w. j a v a 2 s . c o m import com.ahmetkizilay.image.photostrips.PhotoBoothActivity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.support.v4.app.DialogFragment; public class CompletionDialogFragment extends DialogFragment{ public static CompletionDialogFragment newInstance() { CompletionDialogFragment frag = new CompletionDialogFragment(); Bundle args = new Bundle(); frag.setArguments(args); return frag; } public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage("Would you like to see the picture?") .setCancelable(false) .setPositiveButton("Yes!", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); ((PhotoBoothActivity) getActivity()).positiveCompletionCallback(); } }) .setNegativeButton("Later...", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); return builder.create(); } }