0

I have a list of APK and it should be installed automatically.

here's my current situation.

  • first APK appears, Install or Cancel
  • user clicks install
  • a windows appears and will ask the user to "open" or "done"
  • but the problem is, after that window appears to choose "open" or "done", the next APK installation window appears and covering the "open" or "done" window of the first successful APK installed.

How do you buffer that the next APK to install shall wait till the user chooses "open" or "done" after the first installation.

currently i'm trying out these methods but to no avail :(

 protected void onStart();

 protected void onRestart();

 protected void onResume();

 protected void onPause();

 protected void onStop();

 protected void onDestroy();

can anyone point out the right direction? i'm still new to this.

thanks!

4

1 回答 1

0

我认为不可能...只能启动一个Intent来安装一个apk但不能确定是否安装了apk(如果他回来就像他安装后点击打开一样,他不来背部)。


但是,在您的 中,当用户返回您的应用程序时会调用Activity该方法。onResume

此时您可以检查是否安装了第一个 apk 并启动第二个 apk 安装。

于 2012-09-14T10:19:34.190 回答