Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MYService myService = new MYService();
- myService.getDialog();
- public void showMsg(){
- AlertDialog alertDialog = new AlertDialog.Builder(getApplication())
- .setTitle("Success!")
- .setMessage("Countdown")
- .setPositiveButton("Success", new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- }
- }).create();
- alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
- alertDialog.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement