0

Possible Duplicate:
Is it possible to programmatically uninstall a package in Android

We can delete package by following steps below:

Uri uri = Uri.fromParts("package", strPackageName, null);

Intent it = new Intent(Intent.ACTION_DELETE, uri);

startActivity(it);

But in this way, Applications Manager's UI will be displayed, my question is how to delete packages silently (without Applications Manager's UI showing).

Community
  • 1
  • 1
Mahadeva Prasad
  • 709
  • 8
  • 19

2 Answers2

1

Hope this helps your perfectly,

Install and Uninstall Android applications with PackageInstaller

Try to googling first, after getting no response. Then, ask here as question.

Praveenkumar
  • 24,084
  • 23
  • 95
  • 173
0

There is a post on SO that might help you out.

install / uninstall APKs programmatically (PackageManager vs Intents)

The last answer gives a tutorial on how to go about doing that.

Community
  • 1
  • 1
Zerhinne
  • 1,987
  • 2
  • 22
  • 43