• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Splash Screen

 
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 ??
 
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.
 
Ranch Hand
Posts: 99
Android Tomcat Server Java
  • 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 Tomcat Server Java
  • 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 Tomcat Server Java
  • 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 !!
 
I don't even know how to spell CIA. But this tiny ad does:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic