android - How to terminate application from AlertDialog? -



android - How to terminate application from AlertDialog? -

i've tried varoius methods none works. how quit app alertdialog? need because want have function alertfatal() quits application.

if want quit application calling finish on current running activity. alert dialog should work within click handler of dialog interface:

context.finish();//context can this, or getactivity or valid context object.

android alertdialog

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -