packagecom.handmobile.cordova.hotpatch;importandroid.app.AlertDialog;importandroid.content.Context;importandroid.content.DialogInterface;/** * Created by titengjiang on 16/2/29. */publicclassPluginUtil{publicstaticvoidshowErrorMessage(StringerrorMessage,Contextcontext){AlertDialog.Builderbuilder=newAlertDialog.Builder(context);builder.setTitle("错误");builder.setMessage(errorMessage);builder.setPositiveButton("确认",newDialogInterface.OnClickListener(){publicvoidonClick(DialogInterfacedialog,intwhich){dialog.dismiss();}});builder.show();}}