Back to project page AndroidRecording.
The source code is released under:
Apache License
If you think the Android project AndroidRecording 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 com.skd.androidrecordingtest.utils; /*from w ww. j av a 2 s .c o m*/ import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; public class NotificationUtils { public static void showInfoDialog(Context ctx, String msg) { AlertDialog.Builder builder = new AlertDialog.Builder(ctx); builder.setMessage(msg); builder.setPositiveButton(ctx.getString(android.R.string.ok), new OnClickListener() { public void onClick(DialogInterface dialog, int arg1) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.show(); } }