In a time when starting to turn off the display of the activity, and then start it
<p>I now have a activity receiver display information from service to send, receive after there will be no closed the activity, led him to stay on after completion of reception interface. The beginning want to once again start time time, to close out the activity, then open it again, service came from the information receiving display. Timing start broadcasting there through the log to see is received by the start time information, but because the activity received after the page has no exit, or not to move ... ...</p>

<p>The problem is this:</p>

<p>For example, every eight points from time to time to start at eight tomorrow, start, and then after a few hours, finished the work, the display of the activity will stop at the last page does not turn off, always stop until the day after tomorrow, when the day after tomorrow eight broadcast from time to time, the activity life has no reaction.</p>

<p>This problem I began with a solution is to turn it off and then restart, and now is in the service off him, after switching off, acquired the regular broadcast can start his ... Eight.</p>

<p>The activity with dynamic registration broadcasting, receiving and displaying service information  ( service's sendBroadcast ( intent ) continued to broadcast, until the thread to run over ); and the activity is made by another assignment activity boot, this arrangement the task of activity is true by regular broadcasting started.</p>

<p>Again, now want to once again start time time, do not shut off the activity, let him continue to receive display service pass information ... How to write ah.</p>

<p>CSDN for help with link：
<a href="http://topic.csdn.net/u/20120626/10/7d163b1d-d689-4dda-a7f5-b117e4c1f7e4.html" rel="nofollow">http://topic.csdn.net/u/20120626/10/7d163b1d-d689-4dda-a7f5-b117e4c1f7e4.html</a></p>

<p>差不多解决了，原因是这个activity的mainfest里面有个属性是这样的：android:launchMode="singleTask" 改成android:launchMode="singleTop" 就可以了，不过出现了新问题，我要继续苦逼下去了……</p>
