[android-developers] splash image when app is loading

2011-02-11 Thread DanielleM
Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that the app is stuck or not launching properly. Thanks, DM -- You received

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Marcin Orlowski
On 11 February 2011 18:11, DanielleM dmurkerso...@gmail.com wrote: Hello all: I was wondering if there is a way to have a splash image display while my app is loading? As it is right now, it's just a black screen until the main activity launches and it may confuse people into thinking that

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Danielle Murkerson
Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? Usually you click the launcher icon and then an image is displayed for a short time and then the app

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Justin Giles
There's several approaches for doing this. Just Google android splash screen. I think one of the first few links contains info that I used to create my own. On Fri, Feb 11, 2011 at 12:53 PM, Danielle Murkerson dmurkerso...@gmail.com wrote: Ok...so I would need to use some kind of listener

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kostya Vasilyev
11.02.2011 21:53, Danielle Murkerson пишет: Ok...so I would need to use some kind of listener for the between time of the app loading and starting? I mean I see this all the time on other apps so I was just wondering how they do this? The distinction, if any, between loading and starting, is

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Danielle Murkerson
Yes this may be the way to go for me. My main activity has to setup and prepare a couple of MediaPlayer objects to play some streaming audio...this may take a while on a slow connection and I've seen some examples that use the onPostExecute method of an AsyncTask to tell the activity when to stop

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kevin Duffey
I was going to suggest something similar to what Kostya suggested. As he said, if you're taking time to load things in an onCreate, first you want to move it to a thread (AsyncTask). What I do is I've found one of the examples out there that sets my launcher to the SplashScreenActivity. In my

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Danielle Murkerson
Yes this makes sense...I have a question regarding how my app is set up though...I'm using a tabbed interface where each tab launches a new activity. So basically the activity that would launch first sets up the tabs and then starts the activity that is in the first tab...So would I put my splash

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kostya Vasilyev
11.02.2011 23:13, Danielle Murkerson пишет: It seemed to install correctly on the device that it wouldn't load on, it just never got past the black screen before the first activity starts. And then it would take forever to even try and go back to the device's home screen. This seems like an

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kevin Duffey
First, are you using debug mode with your physical device plugged in to the USB slot and deploying that way? It will allow you to watch the LogCat output, you can put Log.i() info throughout your code to try to trace it or use the debugger and break points, whichever your fancy. You may see why

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Danielle Murkerson
yes someone else suggested an endless loop as well...but I haven't written any loops in my code at all. I am definitely planning on taking TreKing's advice about that...as soon as I can get with my tester we'll work it out...In the mean time I am going back to the code to see if I can make it more

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kostya Vasilyev
12.02.2011 0:13, Danielle Murkerson пишет: Part of my app has to access some RSS feeds from the website for my company and we've been having server issues so I know that was causing problems. Our streaming servers are separate so the device that was actually running the app had no problems

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Danielle Murkerson
Yes you can use one activity and just switch views for tabs...but it was suggested on the Android Developer site to use separate activities for each tab if each tab is doing a completely different task...Which mine is...Basically my app has 5 tabs...The first allows a user to listen to our live

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Kostya Vasilyev
12.02.2011 0:13, Danielle Murkerson пишет: Part of my app has to access some RSS feeds from the website for my company and we've been having server issues so I know that was causing problems. Our streaming servers are separate so the device that was actually running the app had no problems

Re: [android-developers] splash image when app is loading

2011-02-11 Thread Danielle Murkerson
Yes and nothe main application that is the first to launch only displays buttons to listen to one of our streams...the second tab starts the Podcast activity where the user can click a button that displays one of 5 different podcastswhich starts a child activity that actually parses and