Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PromptDialogBuilder(this)
- .setPositiveButton(R.string.offer_signup) // sets the positive (ok) button text
- // .setNegativeButton(R.string.cancel) // we can use it but the default should be sufficient
- .setPromptListener(new PromptListener.Impl() {
- @Override
- public void onInputProvided(String input) {
- // do whatever with the email
- }
- }) //
- .setTitle(R.string.offer_signing) // This one now returns the AlertDialog.Builder and now we handle it as a normal Builder
- .setMessage(R.string.offer_need_email) //
- .show();
Add Comment
Please, Sign In to add comment