Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-24 Thread John Goche
Thank you all for your replies, they were really helpful. I think I am going to launch an intent just before calling setContentView() the first time the application starts up followed by finish(), and call setContentView() all other times. Regards, John Goche -- You received this message becaus

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
Oh yes that's right. You can simply have a splash screen launch activity and have your logic there. Or still have your own application subclass and have your launch logic in the application onCreate. Mostly a matter of taste on how you do it though. 2011/12/23 Kostya Vasilyev > The applicatio

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Kostya Vasilyev
The application object is not an entry point into an Android package. There is no UI for the user to launch the application object. Activities is what users launch, and is that what they see in the launcher. 24.12.2011 3:49 пользователь "Miguel Morales" написал: > I haven't done this myself but

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
I haven't done this myself but I *think* you dont have to set a default activity. You might then be able to subclass the Application class and override onStart() and launch an intent there. Again, not even sure if this is possible but might be a bit cleaner. 2011/12/23 Kostya Vasilyev > Set conf

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Kostya Vasilyev
Set configuration activity as the launcher entry point in the manifest, check your flags, start the main activity, call finish. Do it all inside onCreate before setContentView. Method 2, exactly opposite: set main activity as the entry point, check flags, call startActivityForResult for the config

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Mark Murphy
On Fri, Dec 23, 2011 at 6:31 PM, John Goche wrote: > I am having the following issue. In my application I need to display > activity A the first time the application is launched so that the user > can configure some parameters on a form. When the user completes > the form a preference is set so th

[android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread John Goche
Hello, I am having the following issue. In my application I need to display activity A the first time the application is launched so that the user can configure some parameters on a form. When the user completes the form a preference is set so that every other time the user starts the application