Android Question Is there a posibility creating B4XLib file this straty

Theera

Well-Known Member
Licensed User
Longtime User
Hi all,
I 'm interested in creating B4XLib. I have the idea different from others about creating B4XLib.
I still have the problem how to create B4XStringFunctionVB and B4XThaiUtils in B4J.
Assume I have created X.jar and X.xml in B4A , jX.jar and jX.xml in B4J and in B4i I can do as the same stragies.(I don't have B4i) (iX.jar and iX.xml)

From Fiplipo's CreateB4XLib stratgy . we need layouts in File folder ,manifest.txt file and X.Bas file.

In X.Bas file I copy each Bas file in B4A,B4J,B4i and using #If B4A..<bas in b4a>. ..#End IF Block ,#If B4J...<bas in b4j>...#End If Block and #If B4i...<bas in b4i>....#End If Block

I don't know that It can be ...



Best Regards,
Theera
 
Last edited:

Theera

Well-Known Member
Licensed User
Longtime User
AppNameHere would change with every app the lib is used in so wouldn't be any use inside a library
If the lib isn't used with windows,but it is used with MacOS,orLinux .It will have problem,or not?
B4X:
Public Sub Initialize
    DataFileName = "Data_Temporary_File.map"
   
    #if b4j
        DataPathName = File.DirApp
    #else
        DataPathName = File.DirInternal
    #End If
End Sub
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
If the lib isn't used with windows,but it is used with MacOS,orLinux .It will have problem,or not?
B4X:
Public Sub Initialize
    DataFileName = "Data_Temporary_File.map"
   
    #if b4j
        DataPathName = File.DirApp
    #else
        DataPathName = File.DirInternal
    #End If
End Sub
How to check OS? In B4J
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
If the lib isn't used with windows,but it is used with MacOS,orLinux .It will have problem,or not?
B4X:
Public Sub Initialize
    DataFileName = "Data_Temporary_File.map"
  
    #if b4j
        DataPathName = File.DirApp
    #else
        DataPathName = File.DirInternal
    #End If
End Sub
And I don't know if File.DirInternal is available with B4i. The correct solution is in my post #19.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
What DataPathName in B4i should to be ?? which is correct.
B4X:
Public Sub Initialize
    DataFileName = "Data_Temporary_File.map"
   
    #if b4j
        DataPathName = File.DirApp
    #else
        DataPathName = ??
    #End If
End Sub
 
Upvote 0
Top