I resolved it calling my access activity first. It doesnt look like as I expected it to be, but I believe that is the only effective solution.
See you -- Will On 31 mar, 21:20, Will <[email protected]> wrote: > I tried to start a service in Main activity, in order to start the > second activity in the onCreate of the service. > > But, I get the same result than before : > > black screen, but the activities are well creates, cause when I close > the second activity (clicking on it), the Main appear correctly. > > It seems to be a refresh problem. > > No ideas ? > > Thanks > > On 31 mar, 19:28, Will <[email protected]> wrote: > > > Hi, > > > I would like to display a an access dialog activity at the start of my > > application. > > > In other words, I would like to start another activity (in dialog > > theme) as soon as my Main Activity is loaded. > > But, I know that I can not start an activity while another is > > creating. > > > I tried to start this activity in the onResume() method : I can see > > the new activity called, but the Main activity do not respond after > > closing the new activity. > > > Is there a solution to do this, without using delayed intent ? > > May i use a special flag for my intent ? > > I did not find, in the activity cycle, a way to detect the end of > > activity loading. > > > Thanks for your help. > > > Regards, > > Will > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

