Issue
I have the following items defined in my android application manifest
1 Application extension 3 Services 5 Activities
Is it guaranteed that the onCreate of my Application class complete before the services are started? I have specific logic that needs to occur before the three services are started to properly initialize the application state.
Solution
That's at least how I understand the documentation:
public void onCreate()
"Called when the application is starting, before any other application objects have been created. Implementations should be as quick as possible (for example using lazy initialization of state) since the time spent in this function directly impacts the performance of starting the first activity, service, or receiver in a process."
http://developer.android.com/reference/android/app/Application.html#onCreate%28%29
Answered By - Igor F.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.