Android realizes the effect of regular automatic jump of APP activities
•
Android
App's small function points can be implemented in dozens of lines of code
Master page code
The basic idea is to use a timing thread to control the main thread (i.e. UI thread) to update the UI
Accept the message from the timing thread through the handler
2. Timing thread (internal class), set to sleep every 1 second for 3 seconds
3. Finally, don't forget to start the thread in the init () method
OK, it's almost finished now. Let's see the effect
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码