Android Question java class that extend another class

giada

Member
I, i'm basic on java.

I have a jar library for ble update of a chip(ota update), i need to integrate it in my B4X project.

The documentation say:

a) Create class otaUpdateManager object.
b) Create class updateInstance which extends class BluetoothLeInterface.
c) Invoke updateManager.startUpdate(fwFile,ins) to start upgrade.
d) Create thread to get process information continuously
e) Invoke updateManager.otaGetResult(notifyData) when notify data have been received.
f) Invoke updateManager.notifyWriteDataCompleted() when send data is successful.

I can create otaUpdateManager object with javaObject initializeStatic but i don't know how for b)

Can someone help me?

The java code is :

B4X:
public class OtaActivity{
BluetoothGatt mBluetoothGatt;
……
[B]private class updateInstance extends
BluetoothLeInterface{
public boolean bleInterfaceInit(BluetoothGatt
bluetoothGatt){
super.bleInterfaceInit(bluetoothGatt);
}
}[/B]
updateInstance ins=new updateInstance();
ins.bleInterfaceInit(mBluetoothGatt); //Ensure
mBluetoothGatt is available before you call this function
}

How can make this in B4x?
 
Top