java - Closing an application programmaticly with custom error message? -


i want close android application method, should shown custom message (which define myself).
found yet "how close application" , got more 10 ways close application haven't found way set custom message.
@ moment if app crashes appears:
[appname] has been stopped
want this
congratulations! found bug, please submit it.
there way that? methods found closed activities or forced unresolveable error.

i don't think need code me, if do, tell me.
(language should java , javascript/jquery should avoided)

you try making static stop method:

public static void stop(string message) {     log.d(message);     system.exit(0); } 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -