[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-05 Thread GiladH
Yep.. it's that simple. Pls note however that whatever content you're setting will not be actually visible until onCreate() is completed. If your onCreate() processing is lengthy, as ours, you're better off placing your startup image in a dedicated activity. On May 5, 12:34 am, Marco

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-05 Thread Marco Nelissen
Well, no. If the work you're doing takes that long, you should do it in another thread. Or, if you absolutely must to do it in your main thread (you never did say why you think you need to do that), you should break it up in to smaller chunks and post messages to your main thread to tell it to

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread Jeff Sharkey
Take a peek at AsyncTask, it can help you easily (and correctly) transition between UI and background threads: http://d.android.com/reference/android/os/AsyncTask.html j On Mon, May 4, 2009 at 10:02 AM, GiladH gila...@gmail.com wrote: Hey, I want to display a fancy 'loading' image at my

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread GiladH
Tnx but that is not what I'm looking for. I basically want to display an image (packed within form/view/ whatever) WITHOUT blocking the UI thread, Can this be done? On May 4, 8:16 pm, Jeff Sharkey jshar...@android.com wrote: Take a peek at AsyncTask, it can help you easily (and correctly)

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread Marco Nelissen
Why not set your content view to be an ImageView with the desired image, and then once you're ready to show the real UI, call setContentView() again with the real UI? On Mon, May 4, 2009 at 2:22 PM, GiladH gila...@gmail.com wrote: Tnx but that is not what I'm looking for. I basically want

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread Dianne Hackborn
You can also do the trick maps does, where your activity's theme has the background set to some image that is to be shown during startup, and in onCreate() you programmatically set the background to whatever you really want. Then the preview window that is shown for the activity has your starting

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread Romain Guy
More detail on this technique here: http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html On Mon, May 4, 2009 at 3:39 PM, Dianne Hackborn hack...@android.com wrote: You can also do the trick maps does, where your activity's theme has the background set to some image