手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >在Android 模拟器上安装和卸载APK包的方法
在Android 模拟器上安装和卸载APK包的方法
摘要:模拟器(emulator.exe)可以在AndroidSDK的安装目录下的tools文件夹找到运行文件(F:GPhoneandroid-sd...

模拟器(emulator.exe)

可以在 Android SDK 的安装目录下的 tools 文件夹找到运行文件(F:GPhoneandroid-sdk-windows-1.0_r1 ools),双击运行模拟器。

安装 APK 包

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 install F:GphoneMyCodeHelloAndroidinHelloAndroid.apk

查看安装位置

adb shell

#cd data

#cd app

#ls

显示已经安装的 APK 包

com.android.hello.apk

卸载 APK 包

adb shell

#cd data

#cd app

#ls

# rm com.android.hello.apk

【在Android 模拟器上安装和卸载APK包的方法】相关文章:

Android判断包名和类名是否存在的方法

安卓模拟器电脑上的安装方法

android 分辨率适配的方法

Android从服务器端获取数据的几种方法

android实现listview分页的方法

用Android MenuInflater创建菜单项的方法步骤

Android笔记之:在ScrollView中嵌套ListView的方法

Android启动模拟器报错解决方法

Android 完全退出应用程序的解决方法

Android编程设置全屏的方法实例

精品推荐
分类导航