Guest User

Untitled

a guest
Aug 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. new PromptDialogBuilder(this)
  2. .setPositiveButton(R.string.offer_signup) // sets the positive (ok) button text
  3. // .setNegativeButton(R.string.cancel) // we can use it but the default should be sufficient
  4. .setPromptListener(new PromptListener.Impl() {
  5. @Override
  6. public void onInputProvided(String input) {
  7. // do whatever with the email
  8. }
  9. }) //
  10. .setTitle(R.string.offer_signing) // This one now returns the AlertDialog.Builder and now we handle it as a normal Builder
  11. .setMessage(R.string.offer_need_email) //
  12. .show();
Add Comment
Please, Sign In to add comment