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
}