Android Question Use Custom Library

fishwolf

Well-Known Member
Licensed User
Longtime User
i have compile the library sample "FirstLib" with SCL, tool add library to B4J librarries folder and B4J see this library.

How to i can use the library (single method add)?
 

DonManfred

Expert
Licensed User
Longtime User
I dont understand your english/your question
Can describe it more clearly what you want to do?
 
Upvote 0

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
Generated files was copied to your additional libraries folder ?

The library was selected in libraries manager?

and then you tried something like this?

B4X:
Dim FirstLib1 as FirstLib
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
Maybe you should upload your java source of the wrapper so we can see what you did
FirstLib is the sample lib write to Erel without wrapper, have a single method add.
B4X:
package com.example;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;

@Version(1.0f)
//@Permissions(values={"android.permission.INTERNET"})
@ShortName("FirstLib")
//@DependsOn(values={"some java library "})
//@ActivityObject
public class FirstLib {
   public int add(int x, int y) {
     return x + y;
   }
}
 
Upvote 0
Top