File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Splash Screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Splash Screen" Watch "Splash Screen" New topic
Author

Splash Screen

vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19

Hi !

I have been into java programming before staring with Android , especially coding UI port of App using XML.

I am trying to build a app , such that when a user selects my app on phone a splash screen should come first ,(e.g:-ABC.png).
How to achieve that when my app starts ??

as well as could you please guide me how to quickly grab the UI part of app , books, links ,videos etc ??

Thanks

vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19

still waiting for answer.....does any clarifications required ??
Igor Ek
Greenhorn

Joined: May 06, 2011
Posts: 1
Hi Vibhor,

make an Activity which displays your splash-screen the DEFAULT one. startActivity() from your splash-screen Activity when needed (upon animation end, timeout etc).
I've implemented it by this way and it works and looks fine.

Igor.
Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

You can make an activity showing your splash image for few seconds & after that it start another activity via intent. Below is an example -

Make SplashScreen activity your main activity in manifest so that it is showed first when app is launched.


SCJP 5,SCWCD 5, RHCT
vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19

@ anuj

i put my image file in res/drawable/ folder , and mapped it inside layout/splash.xml
does it work ??
Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

Have you tried running it?
vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19

@ anuj


I tried , but isn't working.
process not responding
Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

Was there any error or exception?
Can you post code of Splash screen activity and manifest file?

Regards,
Anuj
vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19

@ anuj

I got the problem , in my splash.XML i dint mentioned the android:src="@drawable/backgrond" tag.

Thanks for help !!
 
jQuery in Action, 2nd edition
 
subject: Splash Screen