本帖最后由 wanghui_fasir 于 2011-08-22 14:54:26 编辑

解决方案 »

  1.   

    adb uninstall PackageNamehttp://topic.csdn.net/u/20110815/08/a7c106a1-5bdb-4bd9-bc5b-8b834984a8fb.html
      

  2.   

    你说的是pc与终端链接后输入 adb uninstall PackageName 命令 卸载?
      

  3.   

    Runtime.getRuntime().exec("adb uninstall PackageName");
      

  4.   

    Caused by: java.io.IOException: Permission denied 说没有权限,这是为什么呢,你有例子吗?
      

  5.   


    public class Test { /**
     * @param args
     */
    public static void main(String[] args) {

    try {
    Runtime.getRuntime().exec("/home/user/android-sdk-linux_86/platform-tools/adb uninstall com.tencent.qq");
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }}
      

  6.   

    public void uninstall()
    {
    try {
    System.out.println("开始卸载...");

    Runtime.getRuntime().exec("D:/android/android-sdk-windows/platform-tools/adb uninstall com.test");
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    // Uri uri = Uri.fromParts("package", "com.aspire.pcsuit", null);  
    // Intent it = new Intent(Intent.ACTION_DELETE, uri);  
    // startActivity(it);
    }崩溃... No such file or directory  我的代码没问题吧?要不把你的例子给发一份呗... [email protected] 麻烦了... 先谢谢了啊!!!