如何在 Android 當中移除已安裝程式

Android

簡介

使用方法

開發工具

開始寫程式

視覺化介面

視覺元件

對話元件

核心物件

事件處理

資料儲存

查詢功能

影音功能

繪圖功能

網路功能

衛星地圖

特殊功能

資源管理

裝置管理

系統核心

問題與回答

刷機升級

常用軟體

Eclipse

教學錄影

訊息

相關網站

參考文獻

最新修改

簡體版

English

在模拟器或手機上本身有卸载工具,請選擇下列功能,然後選擇應用程式,按下「移除」(uninstall) 按鈕,就會移除該程式。

方法一

  • 英文版:menu->settings->Applications->Manager Applications
  • 中文版:menu->設定->應用程式->管理應用程式

方法二

使用 PC Android SDK 上的 adb,以 adb uninstall <package> 的方式執行。

以下是一個範例:

2011-09-15 08:17:49 - IntentTest] ------
[2011-09-15 08:17:49 - IntentTest] Android Launch!
[2011-09-15 08:17:49 - IntentTest] adb is running normally.
[2011-09-15 08:17:49 - IntentTest] Performing ccc.test.IntentTest activity launch
[2011-09-15 08:17:49 - IntentTest] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD1.6'
[2011-09-15 08:17:49 - IntentTest] Uploading IntentTest.apk onto device 'emulator-5554'
[2011-09-15 08:17:49 - IntentTest] Installing IntentTest.apk…
[2011-09-15 08:17:50 - IntentTest] Re-installation failed due to different application signatures.
[2011-09-15 08:17:50 - IntentTest] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-09-15 08:17:50 - IntentTest] Please execute 'adb uninstall ccc.test' in a shell.
[2011-09-15 08:17:50 - IntentTest] Launch canceled!
[2011-09-15 08:22:42 - IntentTest] ------

此時我在命令列使用下列指令:
C:\Documents and Settings\ccc>adb uninstall ccc.test
Success

[2011-09-15 08:22:42 - IntentTest] Android Launch!
[2011-09-15 08:22:42 - IntentTest] adb is running normally.
[2011-09-15 08:22:42 - IntentTest] Performing ccc.test.IntentTest activity launch
[2011-09-15 08:22:42 - IntentTest] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD1.6'
[2011-09-15 08:22:42 - IntentTest] Uploading IntentTest.apk onto device 'emulator-5554'
[2011-09-15 08:22:42 - IntentTest] Installing IntentTest.apk…
[2011-09-15 08:22:44 - IntentTest] Success!
[2011-09-15 08:22:44 - IntentTest] Starting activity ccc.test.IntentTest on device emulator-5554
[2011-09-15 08:22:45 - IntentTest] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=ccc.test/.IntentTest }

參考文獻

  1. Android 中文資源站, 無法安裝同一個名稱的程式, Date: 09-03-25 20:11 Author: jimmy.huang, 黑客開發板 — http://android.cool3c.com/article/6913

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License