Saturday, October 25, 2008

How to Uninstall APK Files from Android Device Emulator




之前的文章中有提到如何產生apk檔,以及如何安裝進模擬器。

(Creating an Android Project without Eclipse)

這篇是要談談如何將安裝的檔案移除掉。

基本上安裝進模擬器的apk檔是放置在data/app這個目錄下。

所以可以利用以下指令移除:

$adb shell rm data/app/Your.apk

--

而由於sdk 1.0發佈了,有更新的作法

$ adb install [-l] [-r]

- push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)


$ adb uninstall [-k]

- remove this app package from the device
('-k' means keep the data and cache directories)

No comments:

Post a Comment

發表一下意見,互動一下唄!

LinkWithin

Related Posts Plugin for WordPress, Blogger...

Adventure Book 2.0 Headline Animator

GoogleAd

funP Android 相關文章