Hello herel
i'm french, so sorry for my poor english
B4a is a fantastic tool for people like me, who don't know java
but i can't go further in my project without some help :
if just want to know how to pass an array from the b4a code , to a java library
*************************************************************
in my b4a code :
dim name_of_my_library As name_of_my_library
dim card_game (25) as int
.
.
.
.
artificial_intelligence_response = name_of_my_library.ai_choice(.......here i want to pass card_game() array ........)
*************************************************************
in the java code that i will compiled with slc :
package com.name_of_my_library;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;
@ShortName("jeuia")
@Author("herve benoit")
@Version(1)
//@Permissions(values={"android.permission.WRITE_EXTERNAL_STORAGE"})
//@DependsOn(values={"no depende de java libreria java"})
//@ActivityObject
public class name_of_my_library {
public int ai_choice(..........here i want to recover my card_game() array ...) {
}
}
can you help me please ?
i'm french, so sorry for my poor english
B4a is a fantastic tool for people like me, who don't know java
but i can't go further in my project without some help :
if just want to know how to pass an array from the b4a code , to a java library
*************************************************************
in my b4a code :
dim name_of_my_library As name_of_my_library
dim card_game (25) as int
.
.
.
.
artificial_intelligence_response = name_of_my_library.ai_choice(.......here i want to pass card_game() array ........)
*************************************************************
in the java code that i will compiled with slc :
package com.name_of_my_library;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;
@ShortName("jeuia")
@Author("herve benoit")
@Version(1)
//@Permissions(values={"android.permission.WRITE_EXTERNAL_STORAGE"})
//@DependsOn(values={"no depende de java libreria java"})
//@ActivityObject
public class name_of_my_library {
public int ai_choice(..........here i want to recover my card_game() array ...) {
}
}
can you help me please ?