final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
alertDialogBuilder.setTitle(R.string.version_name);
String version_Messgae = getString(R.string.version_message);
alertDialogBuilder.setMessage(version_Messgae);
alertDialogBuilder.setPositiveButton(" Ok ", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) { ----(i)
// Log.v("Test", Integer.toString(which));
}
});
alertDialogBuilder.setCancelable(true);
final AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();