I think you are looking for a Dialog so that you can show the user an Alert message confirming the message, etc.
For more info see this: http://developer.android.com/reference/android/app/Dialog.html ,
Here is a good example in the Warning dialog: http://www.androidpeople.com/android-alertdialog-example/ .
From the commented code:
AlertDialog.Builder alt_bld = new AlertDialog.Builder(this).create();
alt_bld.setMessage("apprika target achieve...");
alt_bld.setCancelable(false);
alt_bld.setPositiveButton("yes", new OnClickListener() { public void onClick(DialogInterface dialog, int which) {
alt_bld.setNegativeButton("No", new OnClickListener() { public void onClick(DialogInterface dialog, int which) {
alt_bld.show();
Alert Click alert.show(); .