How to play GIF file in Android??

Put your problem here if it does not fit any of the other categories.

How to play GIF file in Android??

Postby rakesh_mehta » Fri Nov 07, 2008 1:53 pm

Hello All..

My Question is Can we play GIF or other format file in Android...??

Reply
Rakesh
User avatar
rakesh_mehta
Experienced Developer
Experienced Developer
 
Posts: 73
Joined: Tue Oct 14, 2008 6:46 am
Location: Ahmedabad(India)

Top

Postby alpesh_harsoda » Tue Nov 11, 2008 1:27 pm

hey i hv a solution........personally meet me...........
User avatar
alpesh_harsoda
Senior Developer
Senior Developer
 
Posts: 106
Joined: Sat Sep 20, 2008 12:35 pm
Location: Rajkot,Gujarat(India)

Postby alpesh_harsoda » Tue Nov 11, 2008 1:36 pm

hey i hv a solution........personally meet me...........[code]
Attachments
animation.PNG
this is gif file.
animation.PNG (49.41 KiB) Viewed 42867 times
User avatar
alpesh_harsoda
Senior Developer
Senior Developer
 
Posts: 106
Joined: Sat Sep 20, 2008 12:35 pm
Location: Rajkot,Gujarat(India)

Postby rakesh_mehta » Tue Nov 11, 2008 1:39 pm

Wow...

Grt....Surely I will met u.......

:)

Grt work....... :)
Rakesh
User avatar
rakesh_mehta
Experienced Developer
Experienced Developer
 
Posts: 73
Joined: Tue Oct 14, 2008 6:46 am
Location: Ahmedabad(India)

Postby olentz » Wed Nov 12, 2008 1:02 am

mind to share it with us?
olentz
Freshman
Freshman
 
Posts: 7
Joined: Fri Nov 07, 2008 8:41 pm

Postby rakesh_mehta » Thu Nov 13, 2008 6:06 am

ok i wll share with us..

nw there is some problem in GIF file... Big size image is not playing in emulator..

so rt nw m trying to solve dat problem..

than m send u..... :)
Rakesh
User avatar
rakesh_mehta
Experienced Developer
Experienced Developer
 
Posts: 73
Joined: Tue Oct 14, 2008 6:46 am
Location: Ahmedabad(India)

Top

Postby rakesh_mehta » Fri Nov 14, 2008 11:58 am

Hello All..

I cant play big size GIF file in Emulator..

Small size GIF file working fine but when i try to play big GIF file size. its not working..

so what's the problem.?? Is in emulator problem or some others??

if u hav idea just tell me..

Waiiting for yr reply.. :)
Rakesh
User avatar
rakesh_mehta
Experienced Developer
Experienced Developer
 
Posts: 73
Joined: Tue Oct 14, 2008 6:46 am
Location: Ahmedabad(India)

Postby androooooid » Wed Nov 19, 2008 9:36 am

Can I see the code too :?:
androooooid
Junior Developer
Junior Developer
 
Posts: 17
Joined: Fri Sep 26, 2008 8:47 pm

Postby alpesh_harsoda » Thu Nov 20, 2008 10:26 am

ya sure why not.
this is the code but it has problem of flickering the screen when the gif file is large. :(
so if u find the solution then tell me.
:)
Attachments
GIFAnimation.rar
(2.38 MiB) Downloaded 15880 times
Regards,
Alpesh Patel,
Logistic Infotech
http://www.logisticinfotech.com
User avatar
alpesh_harsoda
Senior Developer
Senior Developer
 
Posts: 106
Joined: Sat Sep 20, 2008 12:35 pm
Location: Rajkot,Gujarat(India)

Postby MrSnowflake » Thu Nov 20, 2008 12:45 pm

I'm looking through your code. And I don't know whether this is just demo code, or you really used it, but using a package with the name "com.android" is _NOT_ something you should do!!! "com.android" is not yours. If anyone would use "com.android" it's namespace would rapidly become flooded with double names. You should use your own package name. Like I do: "eu.MrSnowflake" I know those aren't mine either, but for now it's for testing and the domainname isn't taken yet.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby desuvinodkumar » Mon Aug 03, 2009 1:35 pm

HI

What is the maximum frame rate supports in android .....
is there memory restriction of supporting images ....

please help me regarding this

thanks a lot in advance
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

i have the Same problem to Display the large Images file

Postby software2down » Mon Aug 03, 2009 2:16 pm

Hi


With the help of the above code i am able to display the small Gif images, but while coming to the large application it's not working. please give the solution.

And i want to display the Gif images with animation in the Image Viewer.but it not supporting to display the gif images. please suggest me to display the gif images in Image Viewer.



Thanx-
Android Dev
software2down
Freshman
Freshman
 
Posts: 2
Joined: Mon Jul 20, 2009 7:24 am

Postby desuvinodkumar » Mon Aug 03, 2009 2:19 pm

HI

I am also looking for this only ...but also iam using small image with 110 kb and 79 frame count still it is not displaying properly...
can any body tell about this issue

what is the max frame rate for gif images?

thanks a lot in advance
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Postby quocvietit » Mon Aug 31, 2009 5:24 pm

08-31 23:16:07.833: ERROR/AndroidRuntime(4279): Uncaught handler: thread main exiting due to uncaught exception
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): java.lang.NullPointerException
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at com.android.gif.GIFDemo$GIFView.onDraw(GIFDemo.java:52)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.View.draw(View.java:5838)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.View.draw(View.java:5841)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.widget.FrameLayout.draw(FrameLayout.java:352)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.View.draw(View.java:5841)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.widget.FrameLayout.draw(FrameLayout.java:352)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1847)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewRoot.draw(ViewRoot.java:1217)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.os.Handler.dispatchMessage(Handler.java:99)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.os.Looper.loop(Looper.java:123)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at android.app.ActivityThread.main(ActivityThread.java:3948)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at java.lang.reflect.Method.invokeNative(Native Method)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at java.lang.reflect.Method.invoke(Method.java:521)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
08-31 23:16:07.872: ERROR/AndroidRuntime(4279): at dalvik.system.NativeStart.main(Native Method)

i got error when run GifDemo .
can everyone tell me what should i do?
THanks.
quocvietit
Freshman
Freshman
 
Posts: 4
Joined: Mon Aug 24, 2009 9:04 am

Postby quocvietit » Tue Sep 01, 2009 1:08 pm

anybody help me plz!
quocvietit
Freshman
Freshman
 
Posts: 4
Joined: Mon Aug 24, 2009 9:04 am

Top
Next

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests