I have below code and want to know what gets called before `onCreate()` because it shows blank screen before the activity(Tabbed activity) gets called. What can be done for this to avoid showing blank screen ?

I can't even use onAttach as my Class is extending **AppCompatActivity** and implements `OnMapReadyCallback`,`PlaceSelectionListener`.

```
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_tabbed);
  TabHost tab = (TabHost) findViewById(R.id.tabHost);
  tab.setup();

  TabHost.TabSpec spec1 = tab.newTabSpec("Search");
  spec1.setIndicator("Search");
  spec1.setContent(R.id.layout1);
  tab.addTab(spec1);

  TabHost.TabSpec spec2 = tab.newTabSpec("Settings");
  spec2.setIndicator("Settings");
  spec2.setContent(R.id.layout2);
  tab.addTab(spec2);

  SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
  mapFragment.getMapAsync(this);
  locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  provider = locationManager.getBestProvider(new Criteria(), false);

  if (android.os.Build.VERSION.SDK_INT > 9) {
    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
    StrictMode.setThreadPolicy(policy);
  }
}

```