tag:blogger.com,1999:blog-3760040597551411007.post750063179957524081..comments2023-03-07T00:29:24.910-08:00Comments on Android OS Beginning: GIF Animation In AndroidSCJP_ANILhttp://www.blogger.com/profile/06648664105610174236noreply@blogger.comBlogger44125tag:blogger.com,1999:blog-3760040597551411007.post-85045904930165386622017-12-31T22:48:37.992-08:002017-12-31T22:48:37.992-08:00Fetching Problem while changing gif file. I had 2 ...Fetching Problem while changing gif file. I had 2 gif in my draw able folder. But when i try to put it the place u indicates. its showing error. Anonymoushttps://www.blogger.com/profile/05936063326767997342noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-21054842744234792272017-12-04T03:51:29.406-08:002017-12-04T03:51:29.406-08:00Gr8. Now also tell how to use itGr8. Now also tell how to use itNetEdictionhttps://www.blogger.com/profile/15177992965056607811noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-24197258945477433362016-06-04T00:42:58.021-07:002016-06-04T00:42:58.021-07:00add before this.invalidate()....worked like a char...add before this.invalidate()....worked like a charm for me :)Anonymoushttps://www.blogger.com/profile/12667501594641503516noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-33242106513480744452016-04-08T00:46:16.228-07:002016-04-08T00:46:16.228-07:00finally i change constructor name and replace
Syst...finally i change constructor name and replace<br />System.out.println()<br />with<br />Toast popup<br /><br />and when i launch, its only showing popup which indicating<br />moviestart=4415249<br />time=524<br />reltime=4480<br /><br />but not gif,<br />whole activity is blank whiteAnonymoushttps://www.blogger.com/profile/16073698073316889579noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-39378321698439021322016-04-08T00:27:08.970-07:002016-04-08T00:27:08.970-07:00and why you change name of your constructor-
i th...and why you change name of your constructor-<br /><br />i think constructor name should same as class name...not??<br />you defined this :-<br /><br />public GIFView(Context context) {<br /> super(context);<br /><br /> // Provide your own gif animation file<br /><br /> is = context.getResources().openRawResource(R.raw.gif_demo_img);<br /> movie = Movie.decodeStream(is);<br /><br /> }<br /><br />and this is giving complile time error,<br />correct me if i am wrongAnonymoushttps://www.blogger.com/profile/16073698073316889579noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-10888575307185674982016-04-08T00:24:24.687-07:002016-04-08T00:24:24.687-07:00i am getting airthmetic exception - divided by zer...i am getting airthmetic exception - divided by zero at <br />this line - <br /> <br />int relTime = (int) ((now - moviestart) % movie.duration());<br /> Anonymoushttps://www.blogger.com/profile/16073698073316889579noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-37515244674868038252016-04-08T00:22:58.148-07:002016-04-08T00:22:58.148-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/16073698073316889579noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-10440055902822256462016-02-27T18:27:53.525-08:002016-02-27T18:27:53.525-08:00Thanks, works fine.Thanks, works fine.WHKhttps://www.blogger.com/profile/14309921164098115076noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-67637720388418362502016-02-24T02:12:05.841-08:002016-02-24T02:12:05.841-08:00This android:hardwareAccelerated="false"...This android:hardwareAccelerated="false" works like a charm.Anonymoushttps://www.blogger.com/profile/11114718285846995433noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-91766448748256520812016-01-26T07:12:11.546-08:002016-01-26T07:12:11.546-08:00I had this error. I fixed it by putting applicatio...I had this error. I fixed it by putting application android:hardwareAccelerated="false" into my manifest to disable hardware acceleration.Anonymoushttps://www.blogger.com/profile/08908877440064202019noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-60845122299180549012016-01-26T07:09:44.805-08:002016-01-26T07:09:44.805-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/08908877440064202019noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-6997343340639589102016-01-14T22:49:26.210-08:002016-01-14T22:49:26.210-08:00Where to add this code?Where to add this code?Abhinav Ravihttps://www.blogger.com/profile/10390215829470860551noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-86304940294988825242016-01-06T11:17:55.249-08:002016-01-06T11:17:55.249-08:00Same issue in here :/
on Note 3 under Lollipop
an...Same issue in here :/<br />on Note 3 under Lollipop <br />any idea/correction please ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-49769503244937465532015-12-11T00:53:44.375-08:002015-12-11T00:53:44.375-08:00What about the xml file ??? What should i pun in m...What about the xml file ??? What should i pun in my xml file?@rpit Patelhttps://www.blogger.com/profile/16854463934336387823noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-89207552744447099292015-12-11T00:53:02.524-08:002015-12-11T00:53:02.524-08:00This comment has been removed by the author.@rpit Patelhttps://www.blogger.com/profile/16854463934336387823noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-51902651613593144872015-06-02T05:01:43.775-07:002015-06-02T05:01:43.775-07:00Hey it crash and error message is :
atal signal 1...Hey it crash and error message is :<br /><br />atal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7333 (example.showgif)Anonymoushttps://www.blogger.com/profile/03511018187774682154noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-10300231227431593092014-09-18T01:33:48.884-07:002014-09-18T01:33:48.884-07:00Hey, I want to set Gif Image for particular ListVi...Hey, I want to set Gif Image for particular ListView.<br />i want to do that for MediaPlayer, so what i have to do..??Anonymoushttps://www.blogger.com/profile/14650186779507188406noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-1480501924601375442014-06-27T00:25:25.662-07:002014-06-27T00:25:25.662-07:00Hi! that's very nice work. I need help in show...Hi! that's very nice work. I need help in showing gif animation in view so that i could set its position in activity and want to add some other items to that activity.Anonymoushttps://www.blogger.com/profile/17413072831137523175noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-25805001099755823542014-06-27T00:06:52.838-07:002014-06-27T00:06:52.838-07:00Thanks dear.Thanks dear.Anonymoushttps://www.blogger.com/profile/17413072831137523175noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-73427434623100828072014-05-31T08:14:56.422-07:002014-05-31T08:14:56.422-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/08041942533096412838noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-51244659418206643482014-03-26T05:58:54.193-07:002014-03-26T05:58:54.193-07:00if you get blank screen, try this:
Paint p = new P...if you get blank screen, try this:<br />Paint p = new Paint(); <br />p.setAntiAlias(true); <br />setLayerType(LAYER_TYPE_SOFTWARE, p);Anonymoushttps://www.blogger.com/profile/01143202207031811775noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-55446574484799890972014-02-19T09:57:59.898-08:002014-02-19T09:57:59.898-08:00Use
movie.draw(canvas, ((float) this.getWidth() / ...Use<br />movie.draw(canvas, ((float) this.getWidth() / (float) movie.width()),<br /> (float) this.getHeight() / (float) movie.height());<br /><br />instead of<br />movie.draw(canvas,this.getWidth()/2-20,this.getHeight()/2-40);<br /><br />Just you cant set scaletype to fitxy for gif..Axayhttps://www.blogger.com/profile/15604090601241308139noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-28170689601549486832013-12-13T12:56:12.245-08:002013-12-13T12:56:12.245-08:00thanks mate , it helped a lotthanks mate , it helped a lotAnonymoushttps://www.blogger.com/profile/09819706876092569838noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-16078283326387467042013-12-08T02:13:47.375-08:002013-12-08T02:13:47.375-08:00hi...sir..first of all thank u so much for this me...hi...sir..first of all thank u so much for this method...bt i need lil help in displaying the .gif image at a specific location.How cn i do that..???Anonymoushttps://www.blogger.com/profile/13368046122640389706noreply@blogger.comtag:blogger.com,1999:blog-3760040597551411007.post-23958062234261432302013-09-13T13:19:49.800-07:002013-09-13T13:19:49.800-07:00How can I add this to a fragment layout I already ...How can I add this to a fragment layout I already have and have it in a specific spot?Sabanimhttps://www.blogger.com/profile/16953827810792988810noreply@blogger.com