¡@

Home 

2014/10/16 ¤W¤È 08:11:04

android Programming Glossary: cancel

Can we delete an SMS in Android before it reaches the inbox?

http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox

before the native SMS application. At this point you can cancel the broadcast preventing it from being propagated to other apps...

Android ACTION_IMAGE_CAPTURE Intent

http://stackoverflow.com/questions/1910608/android-action-image-capture-intent

The camera app stays open and nothing locks up. We can cancel out of it but the file never gets written. What exactly do we..

Using ZXing to create an android barcode scanning app

http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app

successful scan else if resultCode RESULT_CANCELED Handle cancel Pressing the button linked to mScan would launch directly into..

Android - Controlling a task with Timer and TimerTask?

http://stackoverflow.com/questions/2161750/android-controlling-a-task-with-timer-and-timertask

public void stopScan if scanTask null Log.d TIMER timer canceled scanTask.cancel So the Timer and Task start fine and the scan.. if scanTask null Log.d TIMER timer canceled scanTask.cancel So the Timer and Task start fine and the scan happens every.. can stop the Timer but the task still occurs and scanTask.cancel doesn't seem to work either. Is there a better way to do this..

AsyncTask won't stop even when the activity has destroyed

http://stackoverflow.com/questions/2531336/asynctask-wont-stop-even-when-the-activity-has-destroyed

The data is saved correctly though I even tried to cancel the AsynTask in the onDestroy method of the activity but the.. if someone can tell me the correct procedure to stop cancel the AsynTask. Thanks android share improve this question.. you cannot stop an AsyncTask . I do not believe that the cancel method will work if the task is already executing that will..

Linear Layout and weight in Android

http://stackoverflow.com/questions/2698817/linear-layout-and-weight-in-android

weight 1 Button android text Not this time android id @ id cancel android layout_width wrap_content android layout_height wrap_content..

Ideal way to cancel an executing AsyncTask

http://stackoverflow.com/questions/2735102/ideal-way-to-cancel-an-executing-asynctask

way to cancel an executing AsyncTask I am running remote audio file fetching.. is shown for the time the fetch operation runs. I want to cancel abort the AsyncTask run when the user cancels decides against.. I want to cancel abort the AsyncTask run when the user cancels decides against the operation. What is the ideal way to handle..

Programmatically switching off Android phone

http://stackoverflow.com/questions/3745523/programmatically-switching-off-android-phone

it reboot this does not guarantee that it'll reboot OS may cancel it http developer.android.com reference android os PowerManager.html#reboot..

Example: Communication between Activity and Service using Messaging

http://stackoverflow.com/questions/4300291/example-communication-between-activity-and-service-using-messaging

id because it is a unique number. We use it later to cancel. nm.notify R.string.service_started notification @Override public.. public void onDestroy super.onDestroy if timer null timer.cancel counter 0 nm.cancel R.string.service_started Cancel the persistent.. super.onDestroy if timer null timer.cancel counter 0 nm.cancel R.string.service_started Cancel the persistent notification...

Android - Cancel AsyncTask Forcefully

http://stackoverflow.com/questions/4748964/android-cancel-asynctask-forcefully

task background task . So Please suggest me how do i cancel the AsyncTask forcefully Update I found about the Cancel method.. the Cancel method of the same but i found that calling cancel boolean mayInterruptIfRunning doesn't necessarily stop the execution..

android how to work with asynctasks progressdialog

http://stackoverflow.com/questions/6450275/android-how-to-work-with-asynctasks-progressdialog

protected TextView _percentField protected Button _cancelButton protected InitTask _initTask @Override public void onCreate.. _percentField TextView findViewById R.id.percent_field _cancelButton Button findViewById R.id.cancel_button _cancelButton.setOnClickListener.. R.id.percent_field _cancelButton Button findViewById R.id.cancel_button _cancelButton.setOnClickListener new CancelButtonListener..

Usage CursorLoader without ContentProvider

http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider

thread @Override protected void onStopLoading Attempt to cancel the current load task if possible. cancelLoad @Override public.. Attempt to cancel the current load task if possible. cancelLoad @Override public void onCanceled Cursor cursor if cursor..

Using AsyncTask to load Images in ListView

http://stackoverflow.com/questions/7729133/using-asynctask-to-load-images-in-listview

one same View due to use of convertView. How Can I cancel AsyncTask when the View is no longer visible and is useb by..

Jelly Bean DatePickerDialog — is there a way to cancel?

http://stackoverflow.com/questions/11444238/jelly-bean-datepickerdialog-is-there-a-way-to-cancel

only provides a Done button. Previous versions included a Cancel button and this may affect user experience inconsistency muscle.. int d Log.d Picker Set 2012 6 15 picker.show Expected A Cancel button to appear in the dialog. Current A Cancel button does.. A Cancel button to appear in the dialog. Current A Cancel button does not appear. Screenshots 4.0.3 OK and 4.1.1 possibly..

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

context @Override public void onScoAudioDisconnected Cancel speech recognizer if desired @Override public void onScoAudioConnected..

Dialogs / AlertDialogs: How to “block execution” while dialog is up (.NET-style)

http://stackoverflow.com/questions/2028697/dialogs-alertdialogs-how-to-block-execution-while-dialog-is-up-net-style

My text here My caption here MessageBoxButtons.YesNoCancel As you can see the call to Show returns a DialogResult when.. int id nextStep 1 COMPILER ERROR .setNegativeButton Cancel new DialogInterface.OnClickListener public void onClick DialogInterface..

Example: Communication between Activity and Service using Messaging

http://stackoverflow.com/questions/4300291/example-communication-between-activity-and-service-using-messaging

timer.cancel counter 0 nm.cancel R.string.service_started Cancel the persistent notification. Log.i MyService Service Stopped...

custom row in a listPreference?

http://stackoverflow.com/questions/4549746/custom-row-in-a-listpreference

have are my custom ListPreference has both an OK and a Cancel button where a ListPreference only has the cancel button. I..

Android - Cancel AsyncTask Forcefully

http://stackoverflow.com/questions/4748964/android-cancel-asynctask-forcefully

Cancel AsyncTask Forcefully I have implemented AsyncTask in my one.. asyncTask.execute Now i need to implement the Cancel button functionality so i have to stop the execution of the.. i cancel the AsyncTask forcefully Update I found about the Cancel method of the same but i found that calling cancel boolean mayInterruptIfRunning..

Install apps silently, with granted INSTALL_PACKAGES permission

http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission

... startActivity newIntent finish else if v mCancel Cancel and finish finish Then you'll notice that actual installer.. ... startActivity newIntent finish else if v mCancel Cancel and finish finish Then you'll notice that actual installer..

Android Image View Pinch Zooming

http://stackoverflow.com/questions/10630373/android-image-view-pinch-zooming

INVALID_POINTER_ID break case MotionEvent.ACTION_CANCEL mActivePointerId INVALID_POINTER_ID break case MotionEvent.ACTION_POINTER_UP.. void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new..

Get value from DialogFragment [duplicate]

http://stackoverflow.com/questions/12622742/get-value-from-dialogfragment

Quantity .setPositiveButton OK this .setNegativeButton CANCEL null .setView editQuantity .create @Override public void onClick.. Quantity .setPositiveButton OK this .setNegativeButton CANCEL null .setView editQuantity .create @Override public void onClick..

Get date and time picker value from dialog fragment and set it in Edit text

http://stackoverflow.com/questions/15354089/get-date-and-time-picker-value-from-dialog-fragment-and-set-it-in-edit-text

private final int SET_DATE 100 SET_TIME 101 SET 102 CANCEL 103 private Button btn_setDate btn_setTime btn_set btn_cancel.. button_params btn_cancel.setText Cancel btn_cancel.setId CANCEL btn_cancel.setOnClickListener this linear_bottom.addView btn_set.. dialog.isShowing isAutoDismiss dialog.dismiss break case CANCEL if iCustomDateTimeListener null iCustomDateTimeListener.onCancel..

zooming and dragging images using matrix in android

http://stackoverflow.com/questions/5881778/zooming-and-dragging-images-using-matrix-in-android

void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new..

Rotate zoom drag image in android imageview

http://stackoverflow.com/questions/5894736/rotate-zoom-drag-image-in-android-imageview

void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new..

How can I get the results from an AlertDialog?

http://stackoverflow.com/questions/5953644/how-can-i-get-the-results-from-an-alertdialog

final. result input.getText .toString b.setNegativeButton CANCEL null b.create .show However I am open to doing something such..

getting the position of an image after drag in android

http://stackoverflow.com/questions/7404345/getting-the-position-of-an-image-after-drag-in-android

void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new..

rotation and scaling using multi touch in android

http://stackoverflow.com/questions/8515709/rotation-and-scaling-using-multi-touch-in-android

WrapMotionEvent event ... String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new..

Listen Broadcast Before application uninstall

http://stackoverflow.com/questions/8633761/listen-broadcast-before-application-uninstall

After that screen I got System prompt with OK and CANCEL Button. so That prompt was put by antivirus application. Now..

Can we delete an SMS in Android before it reaches the inbox?

http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox

intent filter you will then receive the notification before the native SMS application. At this point you can cancel the broadcast preventing it from being propagated to other apps. Update October 2013 When Android 4.4 arrives it will make..

Android ACTION_IMAGE_CAPTURE Intent

http://stackoverflow.com/questions/1910608/android-action-image-capture-intent

Ok button in the camera app. The Ok button just does nothing. The camera app stays open and nothing locks up. We can cancel out of it but the file never gets written. What exactly do we have to do to get ACTION_IMAGE_CAPTURE to write the picture..

Using ZXing to create an android barcode scanning app

http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app

format intent.getStringExtra SCAN_RESULT_FORMAT Handle successful scan else if resultCode RESULT_CANCELED Handle cancel Pressing the button linked to mScan would launch directly into the ZXing barcode scanner screen or crash if ZXing isn't..

Android - Controlling a task with Timer and TimerTask?

http://stackoverflow.com/questions/2161750/android-controlling-a-task-with-timer-and-timertask

Log.d TIMER Timer set off t.schedule scanTask 300 30000 public void stopScan if scanTask null Log.d TIMER timer canceled scanTask.cancel So the Timer and Task start fine and the scan happens every 30 seconds however I cant get it to stop I.. set off t.schedule scanTask 300 30000 public void stopScan if scanTask null Log.d TIMER timer canceled scanTask.cancel So the Timer and Task start fine and the scan happens every 30 seconds however I cant get it to stop I can stop the Timer.. happens every 30 seconds however I cant get it to stop I can stop the Timer but the task still occurs and scanTask.cancel doesn't seem to work either. Is there a better way to do this Or am I missing something in the Timer TimerTask classes ..

AsyncTask won't stop even when the activity has destroyed

http://stackoverflow.com/questions/2531336/asynctask-wont-stop-even-when-the-activity-has-destroyed

as i can see in my logs the previous AsynTask is still executing. The data is saved correctly though I even tried to cancel the AsynTask in the onDestroy method of the activity but the logs still show AsynTask as running. This is really strange.. This is really strange behavior and would really be thankful if someone can tell me the correct procedure to stop cancel the AsynTask. Thanks android share improve this question AFAIK you cannot stop an AsyncTask . I do not believe that.. Thanks android share improve this question AFAIK you cannot stop an AsyncTask . I do not believe that the cancel method will work if the task is already executing that will work if the task is waiting in a queue for a thread to free..

Linear Layout and weight in Android

http://stackoverflow.com/questions/2698817/linear-layout-and-weight-in-android

android layout_height wrap_content android padding 10dip weight 1 Button android text Not this time android id @ id cancel android layout_width wrap_content android layout_height wrap_content android padding 10dip weight 1 LinearLayout should..

Ideal way to cancel an executing AsyncTask

http://stackoverflow.com/questions/2735102/ideal-way-to-cancel-an-executing-asynctask

way to cancel an executing AsyncTask I am running remote audio file fetching and audio file playback operations in a background thread.. thread using AsyncTask . A Cancellable progress bar is shown for the time the fetch operation runs. I want to cancel abort the AsyncTask run when the user cancels decides against the operation. What is the ideal way to handle such a case.. progress bar is shown for the time the fetch operation runs. I want to cancel abort the AsyncTask run when the user cancels decides against the operation. What is the ideal way to handle such a case android android asynctask share improve this..

Programmatically switching off Android phone

http://stackoverflow.com/questions/3745523/programmatically-switching-off-android-phone

question You could possibly use the PowerManager to make it reboot this does not guarantee that it'll reboot OS may cancel it http developer.android.com reference android os PowerManager.html#reboot java.lang.String It requires the REBOOT permission..

Example: Communication between Activity and Service using Messaging

http://stackoverflow.com/questions/4300291/example-communication-between-activity-and-service-using-messaging

text contentIntent Send the notification. We use a layout id because it is a unique number. We use it later to cancel. nm.notify R.string.service_started notification @Override public int onStartCommand Intent intent int flags int startId.. tasks. Log.e TimerTick Timer Tick Failed. t @Override public void onDestroy super.onDestroy if timer null timer.cancel counter 0 nm.cancel R.string.service_started Cancel the persistent notification. Log.i MyService Service Stopped. isRunning.. Timer Tick Failed. t @Override public void onDestroy super.onDestroy if timer null timer.cancel counter 0 nm.cancel R.string.service_started Cancel the persistent notification. Log.i MyService Service Stopped. isRunning false android..

Android - Cancel AsyncTask Forcefully

http://stackoverflow.com/questions/4748964/android-cancel-asynctask-forcefully

of the running task. I don't know how do i stop the running task background task . So Please suggest me how do i cancel the AsyncTask forcefully Update I found about the Cancel method of the same but i found that calling cancel boolean mayInterruptIfRunning.. how do i cancel the AsyncTask forcefully Update I found about the Cancel method of the same but i found that calling cancel boolean mayInterruptIfRunning doesn't necessarily stop the execution of the background process. All that seems to happen..

android how to work with asynctasks progressdialog

http://stackoverflow.com/questions/6450275/android-how-to-work-with-asynctasks-progressdialog

public class AsyncTaskExample extends Activity protected TextView _percentField protected Button _cancelButton protected InitTask _initTask @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState.. super.onCreate savedInstanceState setContentView R.layout.main _percentField TextView findViewById R.id.percent_field _cancelButton Button findViewById R.id.cancel_button _cancelButton.setOnClickListener new CancelButtonListener _initTask new InitTask.. R.layout.main _percentField TextView findViewById R.id.percent_field _cancelButton Button findViewById R.id.cancel_button _cancelButton.setOnClickListener new CancelButtonListener _initTask new InitTask _initTask.execute this protected..

Usage CursorLoader without ContentProvider

http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider

mCursor null forceLoad Must be called from the UI thread @Override protected void onStopLoading Attempt to cancel the current load task if possible. cancelLoad @Override public void onCanceled Cursor cursor if cursor null cursor.isClosed.. called from the UI thread @Override protected void onStopLoading Attempt to cancel the current load task if possible. cancelLoad @Override public void onCanceled Cursor cursor if cursor null cursor.isClosed cursor.close @Override protected void..

Using AsyncTask to load Images in ListView

http://stackoverflow.com/questions/7729133/using-asynctask-to-load-images-in-listview

null When list scrolled quickly two asyncTasks can reference one same View due to use of convertView. How Can I cancel AsyncTask when the View is no longer visible and is useb by another item of ListView edit @Override protected void onPostExecute..

Jelly Bean DatePickerDialog — is there a way to cancel?

http://stackoverflow.com/questions/11444238/jelly-bean-datepickerdialog-is-there-a-way-to-cancel

default DatePickerDialog was changed in Jelly Bean and now only provides a Done button. Previous versions included a Cancel button and this may affect user experience inconsistency muscle memory from previous Android versions . Replicate Create.. @Override public void onDateSet DatePicker v int y int m int d Log.d Picker Set 2012 6 15 picker.show Expected A Cancel button to appear in the dialog. Current A Cancel button does not appear. Screenshots 4.0.3 OK and 4.1.1 possibly wrong ... y int m int d Log.d Picker Set 2012 6 15 picker.show Expected A Cancel button to appear in the dialog. Current A Cancel button does not appear. Screenshots 4.0.3 OK and 4.1.1 possibly wrong . Problem #2 wrong dismiss behavior Dialog calls whichever..

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

public BluetoothHelper Context context super context @Override public void onScoAudioDisconnected Cancel speech recognizer if desired @Override public void onScoAudioConnected Should start speech recognition here if not already..

Dialogs / AlertDialogs: How to “block execution” while dialog is up (.NET-style)

http://stackoverflow.com/questions/2028697/dialogs-alertdialogs-how-to-block-execution-while-dialog-is-up-net-style

the popup for example DialogResult myDialogResult MessageBox.Show My text here My caption here MessageBoxButtons.YesNoCancel As you can see the call to Show returns a DialogResult when a button is pressed in the popup informing me what button was.. public void onClick DialogInterface dialog int id nextStep 1 COMPILER ERROR .setNegativeButton Cancel new DialogInterface.OnClickListener public void onClick DialogInterface dialog int id nextStep 2 COMPILER ERROR .create..

Example: Communication between Activity and Service using Messaging

http://stackoverflow.com/questions/4300291/example-communication-between-activity-and-service-using-messaging

public void onDestroy super.onDestroy if timer null timer.cancel counter 0 nm.cancel R.string.service_started Cancel the persistent notification. Log.i MyService Service Stopped. isRunning false android android activity android service..

custom row in a listPreference?

http://stackoverflow.com/questions/4549746/custom-row-in-a-listpreference

of the radio buttons and such. The only issues I still have are my custom ListPreference has both an OK and a Cancel button where a ListPreference only has the cancel button. I don't know how to remove the OK button. Also I can't get the..

Android - Cancel AsyncTask Forcefully

http://stackoverflow.com/questions/4748964/android-cancel-asynctask-forcefully

Cancel AsyncTask Forcefully I have implemented AsyncTask in my one of activity performBackgroundTask asyncTask new performBackgroundTask.. of activity performBackgroundTask asyncTask new performBackgroundTask asyncTask.execute Now i need to implement the Cancel button functionality so i have to stop the execution of the running task. I don't know how do i stop the running task background.. running task background task . So Please suggest me how do i cancel the AsyncTask forcefully Update I found about the Cancel method of the same but i found that calling cancel boolean mayInterruptIfRunning doesn't necessarily stop the execution..

Install apps silently, with granted INSTALL_PACKAGES permission

http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission

new Intent ... newIntent.setClass this InstallAppProgress.class ... startActivity newIntent finish else if v mCancel Cancel and finish finish Then you'll notice that actual installer is located in InstallAppProgress class. Inspecting that.. new Intent ... newIntent.setClass this InstallAppProgress.class ... startActivity newIntent finish else if v mCancel Cancel and finish finish Then you'll notice that actual installer is located in InstallAppProgress class. Inspecting that class..

Android Image View Pinch Zooming

http://stackoverflow.com/questions/10630373/android-image-view-pinch-zooming

x mLastTouchY y break case MotionEvent.ACTION_UP mActivePointerId INVALID_POINTER_ID break case MotionEvent.ACTION_CANCEL mActivePointerId INVALID_POINTER_ID break case MotionEvent.ACTION_POINTER_UP final int pointerIndex ev.getAction MotionEvent.ACTION_POINTER_INDEX_MASK.. break view.setImageMatrix matrix return true private void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new StringBuilder int action event.getAction int actionCode action..

Get value from DialogFragment [duplicate]

http://stackoverflow.com/questions/12622742/get-value-from-dialogfragment

.setTitle R.string.app_name .setMessage Please Enter Quantity .setPositiveButton OK this .setNegativeButton CANCEL null .setView editQuantity .create @Override public void onClick DialogInterface dialog int position String value editQuantity.getText.. .setTitle R.string.app_name .setMessage Please Enter Quantity .setPositiveButton OK this .setNegativeButton CANCEL null .setView editQuantity .create @Override public void onClick DialogInterface dialog int position String value editQuantity.getText..

Get date and time picker value from dialog fragment and set it in Edit text

http://stackoverflow.com/questions/15354089/get-date-and-time-picker-value-from-dialog-fragment-and-set-it-in-edit-text

private TimePicker timePicker private ViewSwitcher viewSwitcher private final int SET_DATE 100 SET_TIME 101 SET 102 CANCEL 103 private Button btn_setDate btn_setTime btn_set btn_cancel private Calendar calendar_date null private Activity activity.. btn_cancel new Button activity btn_cancel.setLayoutParams button_params btn_cancel.setText Cancel btn_cancel.setId CANCEL btn_cancel.setOnClickListener this linear_bottom.addView btn_set linear_bottom.addView btn_cancel linear_child.addView linear_top.. calendar_date .get Calendar.SECOND getAMPM calendar_date if dialog.isShowing isAutoDismiss dialog.dismiss break case CANCEL if iCustomDateTimeListener null iCustomDateTimeListener.onCancel if dialog.isShowing dialog.dismiss break @param date..

zooming and dragging images using matrix in android

http://stackoverflow.com/questions/5881778/zooming-and-dragging-images-using-matrix-in-android

Show an event in the LogCat view for debugging private void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new StringBuilder int action event.getAction int actionCode action..

Rotate zoom drag image in android imageview

http://stackoverflow.com/questions/5894736/rotate-zoom-drag-image-in-android-imageview

Show an event in the LogCat view for debugging private void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new StringBuilder int action event.getAction int actionCode action..

How can I get the results from an AlertDialog?

http://stackoverflow.com/questions/5953644/how-can-i-get-the-results-from-an-alertdialog

I get a compile error here it wants result to be final. result input.getText .toString b.setNegativeButton CANCEL null b.create .show However I am open to doing something such as showDialog int then using the onCreateDialog int method..

getting the position of an image after drag in android

http://stackoverflow.com/questions/7404345/getting-the-position-of-an-image-after-drag-in-android

Show an event in the LogCat view for debugging private void dumpEvent MotionEvent event String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new StringBuilder int action event.getAction int actionCode action..

rotation and scaling using multi touch in android

http://stackoverflow.com/questions/8515709/rotation-and-scaling-using-multi-touch-in-android

an event in the LogCat view for debugging private void dumpEvent WrapMotionEvent event ... String names DOWN UP MOVE CANCEL OUTSIDE POINTER_DOWN POINTER_UP 7 8 9 StringBuilder sb new StringBuilder int action event.getAction int actionCode action..

Listen Broadcast Before application uninstall

http://stackoverflow.com/questions/8633761/listen-broadcast-before-application-uninstall

'. That prompt screen is generated by antivirus application. After that screen I got System prompt with OK and CANCEL Button. so That prompt was put by antivirus application. Now my question is... How can I put prompt screen for user in my..