java - Animated GIF in Splashscreen -


i have jar file generated ant script following code in it:

<manifest>    <attribute name="main-class" value="org.epistasis.exstracs.main"/>    <attribute name="class-path" value="."/>    <attribute name="splashscreen-image" value="logo_anim.gif"/> </manifest> <!--some code--> <zipfileset dir="." includes="logo.png"/> <zipfileset dir="." includes="logo_anim.gif"/> <zipfileset dir="." includes="icon.png"/> 

when run jar file, no splash screen generated. verified gif in file opening favorite archive manager. loaded gif code , displayed it. however, won't load splashscreen. (no splashscreen displayed, splashscreen.getsplashscreen() returns null)

if replace

<attribute name="splashscreen-image" value="logo_anim.gif"/> 

with

<attribute name="splashscreen-image" value="logo.png"/> 

or

<attribute name="splashscreen-image" value="icon.png"/> 

the splashscreen displayed specified image.

i'm not sure if matters, gif larger png files. (~2mb logo_anim.gif vs 40kb logo.png)


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -