code to uninstall applications

Put your problem here if it does not fit any of the other categories.

code to uninstall applications

Postby aljochimera » Fri Jul 03, 2009 3:52 am

I wan't to uninstall applications using my application... I can retrieve the list of packages installed but I don't know how to remove them... I used the PackageManager class, getInstalledApplications() method... I can't find any method like removeApplication() or uninstallApplication().

the only method I saw in this class is the removePackageFromPreferred (String packageName) method... It retrieves a list of preferred packages.. I don't exactly know what preferred packages means or somehow how to retrieve them... I tried to put a package name in the method "removePackageFromPreferred (com.dev5.fivegame)" but it gives an error...

I'm kinda new to these stuffs so pardon me for my questions...
Posts: 3
Joined: Wed Mar 11, 2009 3:09 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 4 guests