[android-developers] Re: Splash + Background loading design pattern
On Tuesday, August 9, 2011 8:39:15 AM UTC-4, nadam wrote: > > You can create a subclass of Application and start the loading in its > onCreate() method. > > When the second activity is started it can check if the loading is > completed. If it's not completed yet it can register itself as a > listener that will be called by the AsyncTask. > > However, as a user I would prefer to have the splash screen and > progress dialog merged into one screen with the logo, a progress > indicator and the text "Loading list. Please wait..." > I agree with this, if they are going to press the button, and STILL have to wait for the data to load, might as well put a progress bar on the splash, so they have something pleasant to look at, remove the button, and automatically take them to the next screen when everything is loaded, so they don't have to press anything. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Splash + Background loading design pattern
You can create a subclass of Application and start the loading in its onCreate() method. When the second activity is started it can check if the loading is completed. If it's not completed yet it can register itself as a listener that will be called by the AsyncTask. However, as a user I would prefer to have the splash screen and progress dialog merged into one screen with the logo, a progress indicator and the text "Loading list. Please wait..." On 9 Aug, 09:24, Mark Cz wrote: > Hmm... > It's not a splash a screen, it is just a screen with logo and a button > to start showing the data. > I want to start loading the data before the user presses the button. > > On Aug 9, 3:56 am, lbendlin wrote: > > > > > > > > > You really want to make the loading piece independent/asynchronous. Just > > imagine yourself as a user of your application. What is the splash screen > > telling you? All it does is annoy you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Splash + Background loading design pattern
Hmm... It's not a splash a screen, it is just a screen with logo and a button to start showing the data. I want to start loading the data before the user presses the button. On Aug 9, 3:56 am, lbendlin wrote: > You really want to make the loading piece independent/asynchronous. Just > imagine yourself as a user of your application. What is the splash screen > telling you? All it does is annoy you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Splash + Background loading design pattern
You really want to make the loading piece independent/asynchronous. Just imagine yourself as a user of your application. What is the splash screen telling you? All it does is annoy you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Splash + Background loading design pattern
As far as the first, when it finishes just have the app move on automatically to the next activity and finish the splashscreen. The second is a bit more complex... if you think that there would be any reason where interrupting incoming data would be a bad thing, then you will want to consider using a Service to handle it. Then, when it is finished move to the next activity and retrieve the data from the service. This way if something happens to your splashscreen activity your app can continue to run in the background doing whatever it needs to do and you won't lose the network connection and/or data. I would leave the button out of the splashscreen altogether or, at worst, enable it only after all the data has come in. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Splash + Background loading design pattern
Of course, I just want to handle the two cases, 1. The loading was finished while displaying the splash screen. 2. The loading wasn't finished, hence it should continue on the second activity On Aug 8, 5:48 pm, rich friedel wrote: > Just move the data loading logic into the splashscreen activity then pass > your data to the second activity (your list) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Splash + Background loading design pattern
Just move the data loading logic into the splashscreen activity then pass your data to the second activity (your list) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en