Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

When I open App.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I open app android than show animation/picture about that app.
Ask?how to make it.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One word: Don't

So you might be tempted to present a one-time introductory slideshow, video, or splash screen to all new users when they first open the app.
In almost all cases, we advise against approaches like these because:


http://developer.android.com/design/patterns/help.html
 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My mean,when you open a app android than show a activity_welcome.xml like logo,animation.etc than to activity_main.xml. ?how to start activity_welcome.xml 1# than activity_main.xml
 
Greenhorn
Posts: 20
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess, you want to know - "How to add Splash Screen in Android"
As Maneesh quoted -

So you might be tempted to present a one-time introductory slideshow, video, or splash screen to all new users when they first open the app.
In almost all cases, we advise against approaches like these because:

from android developers page, Splash Screen is not recommended for most of the new apps.

Splash Screen is more like corporate thing in a sense. Apps like Skype,Facebook, Twitter or game developers uses Splash Screen. Its like branding.
Besides Splash Screen mostly used when you have any background tasks to do, for example fetching data from network, AsyncTask etc.

But if you still want to add Splash Screen then do following-
1-Create a separate Activity for Splash Screen.
2-In java file of that activity create the animation/image that you want.
3-Run a thread for amount of the time you want and then start the main activity by Intent.
Here is the Thread example-


 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"How to add splash screen in android".yes, I want know. & Splash screen is more like corporate thing in a sense.->to study,it's good,I think app nothing splash is less interesting.
For method <code>Thread custom =new Thread(){...</code>
how to place it.
1.I have mainActivity extends Activity{
...(R.layout.activity_main.xml);
//code thread like up
Thread costum=new Thread()...
Intent i = new Intent(Splash.this,MainActivity.class);//this is eror (Splash.this)
}
2.I make Splash extends Activity{
...(R.layout.SPLRH.xml);
ImageView iv = ...(R.id.image1);//bat.gif
Animation ani = AnimationUtils...(R.anim.rotation);
iv.startAnimation(ani);
}
 
Ryan Gabriel
Greenhorn
Posts: 20
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okey mate , I guess you need some more specific resources about Splash Screen
Here you go,
This one is pretty cool

And this one might be also easy for you

And this one used thread as I mentioned earlier

Let me know which one suites you best.

 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ryan G. I live try this one your suggest, this succes,I just know splash screen using "Thread", but there some problem like;
1.ActionBar present when splash screen play, Should this nothing.

Ask?that tutorial splash screen using type .png, how to animation , wheter using type .gif or some .png
 
Ryan Gabriel
Greenhorn
Posts: 20
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you want to your splash screen activity to be full screen.
To accomplish this, try put this line in your manifest file in the splash screen activity
And also make the splash screen activity to be the entry point of your app by these intent filter lines-
And you can not use .gif file
 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sorry,My mean Label in the splash activity.so splash activiy with activiy main same label. Example Label that black color.

If cannot use gif in splah,than I look di App Du Speed,whether it's using gif in activity it.
 
Ryan Gabriel
Greenhorn
Posts: 20
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sorry , but are you talking about animations?
Can you give me a screenshot what you want?
 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok this Screenshot about Splash;
1-->Splash
2-->Main

this Manifest code;
Screenshot_8.png
[Thumbnail for Screenshot_8.png]
Screenshot_9.png
[Thumbnail for Screenshot_9.png]
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic