I was trying to understand how the Activity lifecycle is being managed! Is there someon开发者_如何学Goe who is firing all the events of the lifecycle? maybe ActivityManagerService?
How do I if I want to customize the activity lifecycle and add a new event to it? Any guidance on what kind of changes needs to be done?
The lifecycle is managed by the system and is "hardcoded". You could grab the Android sources, modify them and then install them on your device, to realize your idea.
Having said that, this won't guide you a long way as your device will very probably the only one out there with this special lifecycle event, so you won't be able to share any applications that use this new event. Unless you convince Google that this even is an absolut killer feature that they should add in future versions of Android.
精彩评论