3

I have seen this similar question here but those were asked long time ago , My apk is not on Google play and I also not intend to do so. My first question is that "Is it possible ?" If yes then how to proceed. I tried this one

 Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setDataAndType(
           Uri.parse("file:///sdcard/app.apk"),
        "application/vnd.android.package-archive");
     startActivity(intent);

But it results in a screen which asks user to install it, I want to skip that page. If it's not possible then for the sake of knowledge how it happens from Google play or from the ADB command. Can't we run the adb command from app.

4

1 回答 1

2

This is only possible with customised Andoid distribution. To make the long story short, forget that idea. Pressing once ok seems not too much to ask from the user.

于 2013-07-15T06:54:16.537 回答