@@ -0,0 +1,1659 @@
+package com.ocypode.utility;%0A%0Aimport android.app.AlertDialog;%0Aimport android.content.Context;%0Aimport android.content.DialogInterface;%0Aimport android.view.View;%0Aimport android.view.inputmethod.InputMethodManager;%0A%0Apublic class Utility %7B%0A%09%0A%09public static final String TAG = %22Ocypode.Utility%22;%0A%09%0A%09public static void alertDialog(final Context context, final String title, final int mensagem) %7B%0A%09%09try %7B%0A%09%09%09AlertDialog.Builder builder = new AlertDialog.Builder(context);%0A%09%09%09builder.setTitle(title);%0A%09%09%09builder.setMessage(context.getString(mensagem));%0A%09%09%09builder.setPositiveButton(%22Ok%22, new DialogInterface.OnClickListener() %7B%0A%09%09%09%09%09%09public void onClick(DialogInterface arg0, int arg1) %7B%0A%09%09%09%09%09%09%09return;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D);%0A%09%09%09%0A%09%09%09builder.create();%0A%09%09%09builder.show();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09Logcat.e(TAG, e.getMessage(), e);%0A%09%09%7D%0A%09%7D%0A%0A%09public static void alertDialog(final Context context, final String title, final String mensagem) %7B%0A%09%09try %7B%0A%09%09%09AlertDialog.Builder builder = new AlertDialog.Builder(context);%0A%09%09%09builder.setTitle(title);%0A%09%09%09builder.setMessage(mensagem);%0A%09%09%09builder.setPositiveButton(%22Ok%22, new DialogInterface.OnClickListener() %7B%0A%09%09%09%09%09%09public void onClick(DialogInterface arg0, int arg1) %7B%0A%09%09%09%09%09%09%09return;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D);%0A%09%09%09%0A%09%09%09builder.create();%0A%09%09%09builder.show();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09Logcat.e(TAG, e.getMessage(), e);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static boolean closeVirtualKeyboard(Context context, View view) %7B%0A%09%09InputMethodManager imm = (InputMethodManager) context%0A%09%09%09%09.getSystemService(Context.INPUT_METHOD_SERVICE);%0A%09%09if (imm != null) %7B%0A%09%09%09boolean b = imm.hideSoftInputFromWindow(view.getWindowToken(), 0);%0A%09%09%09return b;%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%0A%7D%0A

add class Utility