3

I want to let Android auto install apk from SD card,(like autorun.inf in windows).I can do something like programing on sdcard,but not the Android Phones. PS:I needn't let the installation background as I know it needs root,but I want to the installation of apk starts.

Marshal Chen
  • 1,985
  • 4
  • 24
  • 35
  • I hope you'll get the answer here: http://stackoverflow.com/questions/4967669/android-install-apk-programmatically – Sushil Aug 13 '13 at 01:44
  • Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive"); startActivity(intent); – Sushil Aug 13 '13 at 01:49
  • 1
    @Sushil In fact,I think that question means install apk using installed application,but now I can't install any app on the phone,only the sd Card – Marshal Chen Aug 13 '13 at 01:50
  • Ohh.. okay. I understand your question now.. – Sushil Aug 13 '13 at 01:51
  • I dont think it whould be possible then.. – Sushil Aug 13 '13 at 01:58
  • Thank you very much.I know it's hard to achieve,but I want to have a try.Maybe like virus – Marshal Chen Aug 13 '13 at 02:00
  • Will wait for you post an answer if you can achieve this :). It would be an useful Virus :) :) – Sushil Aug 13 '13 at 02:04

0 Answers0