Android Question [SOLVED]Problems loading Lottie-assets.aar files in B4A V10.7 Beta

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
Problems loading Lottie-assets.aar files compiled with B4A V10.7 Beta
java.io.FileNotFoundException: lottiefiles/xxxxx.json
 

DonManfred

Expert
Licensed User
Longtime User
There is another Lotti library available. Did you tried the other one too?
 
Upvote 0

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
Ok I solved it this way

B4X:
    Dim json1, json2 As String
    json1 = File.ReadString(File.DirAssets,"xxxxxx1.json")
    json2 = File.ReadString(File.DirAssets,"xxxxx2.json")

    factory.Initialize("Lotti")
    factory2.Initialize("Lotti2")
    factory.fromJsonString(json1,"1")
    factory2.fromJsonString(json2,"2")
 
Upvote 0

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
In the application that I am developing on both Android and iOS I use the Lottie libraries, you can see it reflected in the Blue Dog, and when ordering a vehicle. That development as I said before is on iOS too. Excellent B4X!
 
Upvote 0
Top