android如何实现后台安装程序?就像安卓市场那样?

解决方案 »

  1.   

    写在service里面不就可以了么。
      

  2.   

    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setDataAndType(Uri.fromFile(apk),
    "application/vnd.android.package-archive");
    startActivity(i);现在是这样的,这调了系统的服务,都是要点确定的阿
      

  3.   

    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setDataAndType(Uri.fromFile(apk),
    "application/vnd.android.package-archive");
    startActivity(i);
      

  4.   

    对于耗时的操作最后交给Service处理,不用intent的Activity去处理activity是可见的,Service是后台的不可见的,可让处理完了向Activity发送个消息
      

  5.   

    直接把程序拷贝到 /system/app目录
      

  6.   

    就是说吧我写的这个程序考到那里?是apk复制到/system/app?还是安装到/system/app?