I found out, that one is able to delete a package on the emulator
through Package Installer application by following this approach:

Intent intent1 = new Intent(Intent.ACTION_DELETE);
String packageName = "com.example.android.helloactivity";
Uri data = Uri.fromParts("package", packageName, null);
intent1.setData(data);
startActivity(intent1);


On 14 Ноем, 09:44, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I saw, that there is an android.permission.DELETE_PACKAGES, but it
> seems, that there is no API (at least at the moment) to delete a
> package. Is that permission checked anywhere in Android, possibly in a
> undocumented API to delete a package?
>
> On 13 Окт, 19:45, hackbod <[EMAIL PROTECTED]> wrote:
>
> > Sorry, I don't think this is supported in 1.0.
>
> > On Oct 13, 3:51 am, denismo <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I know there is a way to uninstall applications on emulator, using
> > > ADB, but that is not available on the phone.  My application needs to
> > > provide a way to uninstall itself, initiated automatically or by
> > > user's request through UI, with user's permission of course - it
> > > doesn't need to be uncontrolled. So it should be done
> > > programmatically, using some public API like PackageManager.uninstall.
> > > Any ideas on how this can be done?
>
> > > Thanks.
>
> > > Denis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to