Button to delete the android application

Nikola

Is it possible thereotically to create an Android application that contains delete button within itself that deletes the app when pressed?

delete picture

Sandeep Singh

You can use this for uninstalling the app

 button.setOnClickListener(new View.OnClickListener(){

          public void onClick(View view){

            Uri packageUri = Uri.parse("package:com.exaample.test");

            Intent uninstallIntent =
              new Intent(Intent.ACTION_UNINSTALL_PACKAGE, packageUri);
            startActivity(uninstallIntent);
          }
        });

I hope this will help you

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Button not working in Android application

Creating a triangular shaped button for android application

Xamarin close Android application on back button

SQLite table row not deleting when delete button pressed, android

Android - EditText delete (soft button) key event and deleting action

How do I delete an Azure Enterprise Application given the delete button is disabled?

How can i delete certain elements when button is pressed in android

Is it possible to completely disable the back button in android application?

Invisible Delete button of my listview from all rows in android

How to delete application directory while uninstalling android application

adding button to android application to quit app without using back button

The button doesn't work in the android application

Button to add a custom layout to android application

Java android application FATAL EXCEPTION on click on button

Android: Listview with button Delete

Android Camera Application: Capture button not working?

In ANDROID how delete data from LISTVIEW by Button click?

How to run application of the first with click on the button in android?

Button.setVisibility crashed Android Application

Is there a way to create a flat button in Nativescript Android application?

Event error when clicked each delete button in Android ListView

Xamarin Android ListView - Delete button fires multiple times

closing application on hardware back button in android

Delete button in recyclerview is not positioned properly in some cards android

how to delete an item from shopping cart by button click in android

Unable to get my Application to detect the Delete button

Android application crashes when trying to click button

Delete a listview item with a button in it self in android studio

Cannot change the colour of the button of my android application in Android studio

TOP Ranking

HotTag

Archive