Is it possible thereotically to create an Android application that contains delete button within itself that deletes the app when pressed?
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.
Comments