Reputation: 63
I want my application to look more fancy. For that i have made an animation for the application startup. its in .swf format. I want that whenever the user clicks the application icon on his android device and my application is launched it plays the animation first and then jumps into the main activity. How can i accomplish that? the main which i don't know how to do is how to play the animation on the application startup and then jump into main activity! can anybody please explain this with the help of a complete example? am new to android!
Upvotes: 0
Views: 1005
Reputation: 1287
First of all, a splash screens does not fit very well in Android but if you want it, you should load it into a WebView :
String localUrl ="file:///android_asset/my_anim.swf";
WebView wv=(WebView) findViewById(R.id.anim_webView);
wv.getSettings().setPluginsEnabled(true);
wv.loadUrl(localUrl);
Upvotes: 1