As shown in the title, I open the browser code is this:
Intent intent = new Intent (Intent.ACTION_VIEW);
Uri content_url = Uri.parse (mStrAdLinkAddr);
/ / Intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setData (content_url);
startActivity (intent);
Web'd be able to open, but after opening the original process to exit, and then press the return key when beginning the process will start, and then re-call that activity's onCreate, my question now is do not want to let that process exits, do not know how do<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Open the Web browser will be called directly. Originally the Activity should enter the stack, and to exit.
After the points back, will show the original Activity, OnCreate method does not call, calls OnResume
Reply:
May be insufficient memory, recovered by the system
Reply:
My program does quit, the strange thing is I only see onPause and onStop is called, onDestroy is not called after each one to open the page program exits, even debugging will not work, when they returned to re-initialize, call onCreate, see online some people say this is the system control, can not control yourself, no way, I overloaded onSaveInstanceState and onRestoreInstanceState, then there onCreate Bundle arguments made against judgments, although not all states are saved, but at least not will be hung up.
I did not expect much trouble switching Andrews, before switching each time the browser, reopen the browser will reload before the opening page, had previously been surprised, and now finally understand
Reply:
Just look at this post is http://bbs.csdn.net/topics/360182053
No comments:
Post a Comment