Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); Uri uri = Uri.fromFile(file); intent.setDataAndType(uri, "application/vnd.android.package-archive"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent
C:\Users\root>adb install d:\rry_0514.apkerror: more than one device and emulator- waiting for device -error: protocol fault (status read) # Kill and restart $ adb kill-server $ adb start-server daemon not running. starting it now *