Android : Android activity produces black screen because of the content

on Thursday, September 4, 2014


I have 2 activities.


ActivityA starts activityB from a button click.


When the button is clicked i create a new dialog and display an image as a kind of cut down loading screen (not bothered with progress bars).


when activityB starts the dialog from ActivityA is killed and i immediately start a new one at the top of oncreate. My oncreate for activityB does quite a few things.


Creates an adview, some text for the main view and creates a GLsurface renderer.


The problem is that when activityB's oncreate is called i get a 4 second black screen between my two dialogs. I would like to try and reduce this as much as i can.


So is there anyway to have the dialog in activity B run immdeiately rather than waiting for the rest of the onCreate to finish doing what it is doing. Will provide code if need be


0 comments:

Post a Comment