• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When I open App.

 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I open app android than show animation/picture about that app.
Ask?how to make it.
 
Maneesh Godbole
Saloon Keeper
Posts: 11327
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Ryan Gabriel
Greenhorn
Posts: 20
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic