Well if you are performing a long running operation in onCreate then the application will take a long time to start. There is no way around it.
Up vote 0 down vote favorite share g+ share fb share tw.
When starting child activity from one activity tha second activity appears good. But in meantime blank screen appears. Why I don't know.
Iam loading gps related data in oncreate() of second activity. How to avoid blank screen and load quickly. Regards, Rajendar android link|improve this question asked Dec 10 '10 at 13:27ADIT359420 88% accept rate.
Well if you are performing a long running operation in onCreate then the application will take a long time to start. There is no way around it. As an alternative, could you move the long running code out of onCreate and into a background thread (as suggested by Fredrik Leijon), and in your onCreate method just pop up a ProgressDialog informing the user that the application is loading?
Once the thread is complete you can dismiss the dialog and load your normal view.
Hey Dave please give me sample snippet. For example on MapActivity. Actually I commented total code of onCreate() still blank screen appears.
I thought in my . Xml file I declared Mapview using key. This is giving problem.
How to solve like this xml loading problem. – ADIT Dec 13 '10 at 15:21 I'm not really sure what the issue is now. Your original question states that your view loads ok eventually, but shows a blank screen first.
Does it now not load at all? Or does it still load, but just take a long time, even with onCreate() commented out? – dave.
C Dec 13 '10 at 15:42.
All the data related to View page. – ADIT Dec 10 '10 at 13:35.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.