2013年9月18日星期三

[Android] How to open automatically after installation

Problem : The silent installation was successful , but the screen open , only in the task , just click on the taskbar to display to the screen
Requirements : After installation screen opens automatically .

------ Solution ------------------------------------ --------
installation is complete, there will be a ACTION_PACKAGE_ADDED broadcast , Manifest you register a BroadcastReveiver, received this broadcast will start an installed application .
------ Solution ---------------------------------------- ----
you really should try ACTION_PACKAGE_ADDED this broadcast
------ Solution -------------------- ------------------------
silent install for my own use pm.install achieve it is the case in setting a delayed start before installation
In addition, their installation yourself, this broadcast has received can not do anything , the program will end soon

------ eference ------------------------------------ ---
please help heroes , thread to the sub .
------ eference ---------------------- -----------------
is now successfully installed and started in the taskbar , but not on the screen to open , how to install it immediately opens automatically on the screen ?
------ eference ---------------------------------------

as I said there is no way to try ?
------ eference --------------------------------------- < br>
  The reply deleted by an administrator at 2013-09-17 08:41:40

------ eference ------------------------------------ ---
useful first mark with
------ eference ----------------------------- ----------
Thank you heroes , the problem has been resolved. use ACTION_PACKAGE_ADDED broadcast yes, I made a stupid mistake the wrong path .

没有评论:

发表评论