Kenny Yu wrote:
> Simply put the cmd to Java function:
> system("adb uninstall apt_name");
> I mean your code should invoke the commands exactly as 'adb' does.
> 
> Kenny
> 
> On Jan 3, 8:52 am, "Dr. Tingrong Lu" <[email protected]> wrote:
>> Hi,
>>
>> How to write code to uninstall apk from device/emulator? Could anyone drop a 
>> sample code? Thanks a lot!

If the original poster was trying to uninstall an APK from within the
device, I believe Shane Isbell is correct, and it cannot be done.

In particular, system("adb uninstall apt_name") will not work -- adb is
not an installed executable on the device, and I'm not sure there is a
working system() call that would execute it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
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