My Application class is simply this
public class DogApplication extends Application {
private static DogApplication context;
@Override
public void onCreate() {
super.onCreate();
context = this;
}
public static DogApplication getContext(){
return context;
}
}
Yet it's taking about 10 seconds before my MainActivity gets called. How do I know? I am logging the timestamp in my Application#onCreate, MainActivity#onCreate start and end. Basically right after the open bracket I log the timestamp and then log again right before the closing bracket. Here is the result of my login:
DogApplication: Start of DogApplication onCreate is 1466143820699 MainActivity: Start of MainActivity onCreate is 1466143820870 MainActivity: TIME TO traverse onCreate is 3260 ms
based on this data MainActivity shouldn't be taking that long to show up. And yet when I install my app, a white screen shows up for about 10 seconds before any view or content is visible. I don't have a splash screen. What might be causing this? I support api 11 and up.