Back to project page javainstaller.
The source code is released under:
GNU General Public License
If you think the Android project javainstaller listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package julianwi.javainstaller; //from w w w .j a va 2 s . c o m import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; public class Error implements Runnable{ Exception e; Context ctx; public Error(String title, String message){ new AlertDialog.Builder(MainActivity.context) .setTitle(title) .setMessage(message) .setNeutralButton("OK", new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }) .show(); } public Error(String title, String message, Context context){ new AlertDialog.Builder(context) .setTitle(title) .setMessage(message) .setNeutralButton("OK", new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }) .show(); } public Error(Exception e, Context c){ this.e = e; ctx = c; } @Override public void run() { new Error("error", e.toString(), ctx); } }