Android Question Create gif file??

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I guess this should work when someone creates a wrapper for it
It does not work on Android either.
B4X:
import java.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
These imports are not known. This Class is for JAVA MicroEdition (JAVA ME)...

Sorry
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
It does not work on Android either.
B4X:
import java.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
These imports are not known. This Class is for JAVA MicroEdition (JAVA ME)...

Sorry

Thanx a lot manfred for trying. I hope someone will find a way to do it and share it here.

:)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
is this maybe something?
B4X:
import java.io.IOException;
import java.io.OutputStream;

import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Paint;

From the list of imports it seems to be part of the android.jar

So far good. For today it is to late but i will check this tomorrow in details
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User

Attachments

  • AnimatedGifncoderLibfiles.zip
    11.7 KB · Views: 172
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
are you serius????
Try it!

I did not make an b4a-example but the lib "should" work if you do it the right way and it will work if you create the needed outputstream which you need to create in b4a and give to the right method to save the animation after adding all frames (bitmap´s)

And i said; untested. ;)

Maybe i did a big mistake and it just crashes. Who knows :D
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
WOW, it is really working!!
i created a simple gif and on my android device i see that gif. this is awesome!!!

i dont know why but when i transfer my gif to my pc i cannot open it but on my phone it is loading!

thank you very much
 
Upvote 0
Top