Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Splash Screen

 
vibhor sharma
Greenhorn
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still waiting for answer.....does any clarifications required ??
 
Igor Ek
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
Android Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vibhor sharma
Greenhorn
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ anuj

i put my image file in res/drawable/ folder , and mapped it inside layout/splash.xml
does it work ??
 
Anuj Prashar
Ranch Hand
Posts: 99
Android Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried running it?
 
vibhor sharma
Greenhorn
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ anuj


I tried , but isn't working.
process not responding
 
Anuj Prashar
Ranch Hand
Posts: 99
Android Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was there any error or exception?
Can you post code of Splash screen activity and manifest file?

Regards,
Anuj
 
vibhor sharma
Greenhorn
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ anuj

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

Thanks for help !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic