pls help me about this implementation....
I'll keep it simple and try to be clear.
I have 2 Class in .java (ziwiIntegratror and ziwiResponse) and these java files need to implement
'com.google.code.gson:gson:2.8.6' (DONE).
I put exactly these java files between the tags
"#if Java #End If" and also I personally modified some parts of the code where I used the lambda function and SO FAR ALL CORRECTLY.....so...I created the function where I recall what I need:
public void TestBluetooth()
{
Activity activity = this;
//Istanzio l'oggetto ziwiIntegrator lanciandolo con il primo metodo costruttore
ziwiIntegrator ziwi = new ziwiIntegrator(activity);
//Chiamo adesso la funzione GetEvaStitch
ziwi.GetEVA_Stitch(0,0,ziwiIntegrator.IRDABOUD_AUTO,true);
}
and in B4A i create the JavaObject and:
Private Sub btnBluethootTest_Click
jo2.RunMethod("TestBluetooth",Null)
End Sub
AND WORK, successfully opens the intent of this ziwi and I can detect
SO THE PROBLEM IS THIS:
in the documentation of these java files i have this function OnActivityResult
@override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
String res="";
ziwiResponse zr=new ziwiResponse();
if (requestCode==0x0000978c){
if (data!=null && data.getStringExtra("ZIWIRESPONSE")!=null){
res=data.getStringExtra("ZIWIRESPONSE");
zr=zr.GetResponse(res);
Log.d("jj","" + res);
Log.d("jj","" + zr.getEVA());
}
}
}
and this obviously allows me to find the result of the Intent opened before and I'm not able to make it work at all