package b4a.bbb;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class setup_subs_0 {


public static RemoteObject  _activity_create(RemoteObject _firsttime) throws Exception{
try {
		Debug.PushSubsStack("Activity_Create (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,41);
if (RapidSub.canDelegate("activity_create")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","activity_create", _firsttime);}
Debug.locals.put("FirstTime", _firsttime);
 BA.debugLineNum = 41;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)";
Debug.ShouldStop(256);
 BA.debugLineNum = 44;BA.debugLine="IME.Initialize(\"IME\")";
Debug.ShouldStop(2048);
setup.mostCurrent._ime.runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("IME")));
 BA.debugLineNum = 45;BA.debugLine="IME.AddHeightChangedEvent";
Debug.ShouldStop(4096);
setup.mostCurrent._ime.runVoidMethod ("AddHeightChangedEvent",setup.mostCurrent.activityBA);
 BA.debugLineNum = 46;BA.debugLine="Activity.LoadLayout(\"setup\")";
Debug.ShouldStop(8192);
setup.mostCurrent._activity.runMethodAndSync(false,"LoadLayout",(Object)(RemoteObject.createImmutable("setup")),setup.mostCurrent.activityBA);
 BA.debugLineNum = 47;BA.debugLine="SeekBar_consigne_T.Max=300";
Debug.ShouldStop(16384);
setup.mostCurrent._seekbar_consigne_t.runMethod(true,"setMax",BA.numberCast(int.class, 300));
 BA.debugLineNum = 48;BA.debugLine="SeekBar_consigne_T.Value=200";
Debug.ShouldStop(32768);
setup.mostCurrent._seekbar_consigne_t.runMethod(true,"setValue",BA.numberCast(int.class, 200));
 BA.debugLineNum = 50;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _activity_pause(RemoteObject _userclosed) throws Exception{
try {
		Debug.PushSubsStack("Activity_Pause (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,60);
if (RapidSub.canDelegate("activity_pause")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","activity_pause", _userclosed);}
Debug.locals.put("UserClosed", _userclosed);
 BA.debugLineNum = 60;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 62;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _activity_resume() throws Exception{
try {
		Debug.PushSubsStack("Activity_Resume (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,52);
if (RapidSub.canDelegate("activity_resume")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","activity_resume");}
 BA.debugLineNum = 52;BA.debugLine="Sub Activity_Resume";
Debug.ShouldStop(524288);
 BA.debugLineNum = 53;BA.debugLine="StateChanged";
Debug.ShouldStop(1048576);
_statechanged();
 BA.debugLineNum = 54;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _add_list_service(RemoteObject _name_service,RemoteObject _id) throws Exception{
try {
		Debug.PushSubsStack("add_list_service (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,129);
if (RapidSub.canDelegate("add_list_service")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","add_list_service", _name_service, _id);}
Debug.locals.put("name_service", _name_service);
Debug.locals.put("id", _id);
 BA.debugLineNum = 129;BA.debugLine="Sub add_list_service(name_service As String,id As";
Debug.ShouldStop(1);
 BA.debugLineNum = 130;BA.debugLine="Dim Label1 As Label";
Debug.ShouldStop(2);
setup.mostCurrent._label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 BA.debugLineNum = 131;BA.debugLine="clvScan.SingleLineLayout.ItemHeight = 30dip";
Debug.ShouldStop(4);
setup.mostCurrent._clvscan.runMethod(false,"getSingleLineLayout").runMethod(true,"setItemHeight",setup.mostCurrent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 30))));
 BA.debugLineNum = 132;BA.debugLine="Label1 = clvScan.SingleLineLayout.Label";
Debug.ShouldStop(8);
setup.mostCurrent._label1 = setup.mostCurrent._clvscan.runMethod(false,"getSingleLineLayout").getField(false,"Label");
 BA.debugLineNum = 133;BA.debugLine="Label1.TextSize = 14";
Debug.ShouldStop(16);
setup.mostCurrent._label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 134;BA.debugLine="Label1.TextColor = Colors.black";
Debug.ShouldStop(32);
setup.mostCurrent._label1.runMethod(true,"setTextColor",setup.mostCurrent.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 135;BA.debugLine="clvScan.AddSingleLine2(name_service,id)";
Debug.ShouldStop(64);
setup.mostCurrent._clvscan.runVoidMethod ("AddSingleLine2",(Object)(BA.ObjectToCharSequence(_name_service)),(Object)((_id)));
 BA.debugLineNum = 138;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _btn_paired_click() throws Exception{
try {
		Debug.PushSubsStack("btn_paired_Click (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,139);
if (RapidSub.canDelegate("btn_paired_click")) { b4a.bbb.setup.remoteMe.runUserSub(false, "setup","btn_paired_click"); return;}
ResumableSub_btn_paired_Click rsub = new ResumableSub_btn_paired_Click(null);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_btn_paired_Click extends BA.ResumableSub {
public ResumableSub_btn_paired_Click(b4a.bbb.setup parent) {
this.parent = parent;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
b4a.bbb.setup parent;
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);
RemoteObject _data_sensor = RemoteObject.createImmutable("");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("btn_paired_Click (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,139);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
 BA.debugLineNum = 141;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(4096);
parent.mostCurrent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",setup.processBA,(Object)(parent.mostCurrent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_READ_EXTERNAL_STORAGE")));
 BA.debugLineNum = 142;BA.debugLine="Wait For Activity_PermissionResult (Permission As";
Debug.ShouldStop(8192);
parent.mostCurrent.__c.runVoidMethod ("WaitFor","activity_permissionresult", setup.processBA, anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "setup", "btn_paired_click"), null);
this.state = 11;
return;
case 11:
//C
this.state = 1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(0));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 143;BA.debugLine="If Result = False Then Return";
Debug.ShouldStop(16384);
if (true) break;

case 1:
//if
this.state = 6;
if (RemoteObject.solveBoolean("=",_result,parent.mostCurrent.__c.getField(true,"False"))) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
if (true) return ;
if (true) break;

case 6:
//C
this.state = 7;
;
 BA.debugLineNum = 146;BA.debugLine="Localisation_capteur= txtLocalisation.Text";
Debug.ShouldStop(131072);
parent.mostCurrent._localisation_capteur = parent.mostCurrent._txtlocalisation.runMethod(true,"getText");
 BA.debugLineNum = 147;BA.debugLine="IdCapteur=IdCapteur+1";
Debug.ShouldStop(262144);
parent._idcapteur = RemoteObject.solve(new RemoteObject[] {parent._idcapteur,RemoteObject.createImmutable(1)}, "+",1, 1);
 BA.debugLineNum = 149;BA.debugLine="If  Localisation_capteur.Length>0 Then";
Debug.ShouldStop(1048576);
if (true) break;

case 7:
//if
this.state = 10;
if (RemoteObject.solveBoolean(">",parent.mostCurrent._localisation_capteur.runMethod(true,"length"),BA.numberCast(double.class, 0))) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 BA.debugLineNum = 150;BA.debugLine="Dim data_sensor As String = IdCapteur & \";\" & Lo";
Debug.ShouldStop(2097152);
_data_sensor = RemoteObject.concat(parent._idcapteur,RemoteObject.createImmutable(";"),parent.mostCurrent._localisation_capteur,RemoteObject.createImmutable(";"),parent.mostCurrent._info_sensor.getArrayElement(true,BA.numberCast(int.class, 0)),RemoteObject.createImmutable(";"),parent._temp_value);Debug.locals.put("data_sensor", _data_sensor);Debug.locals.put("data_sensor", _data_sensor);
 BA.debugLineNum = 151;BA.debugLine="Param.write_file_setup(data_sensor, \"setup.txt\")";
Debug.ShouldStop(4194304);
parent.mostCurrent._param.runVoidMethod ("_write_file_setup" /*RemoteObject*/ ,setup.mostCurrent.activityBA,(Object)(_data_sensor),(Object)(RemoteObject.createImmutable("setup.txt")));
 if (true) break;

case 10:
//C
this.state = -1;
;
 BA.debugLineNum = 155;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _activity_permissionresult(RemoteObject _permission,RemoteObject _result) throws Exception{
}
public static void  _btn_scan_click() throws Exception{
try {
		Debug.PushSubsStack("btn_scan_Click (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,119);
if (RapidSub.canDelegate("btn_scan_click")) { b4a.bbb.setup.remoteMe.runUserSub(false, "setup","btn_scan_click"); return;}
ResumableSub_btn_scan_Click rsub = new ResumableSub_btn_scan_Click(null);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_btn_scan_Click extends BA.ResumableSub {
public ResumableSub_btn_scan_Click(b4a.bbb.setup parent) {
this.parent = parent;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
b4a.bbb.setup parent;
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("btn_scan_Click (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,119);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
 BA.debugLineNum = 120;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(8388608);
parent.mostCurrent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",setup.processBA,(Object)(parent.mostCurrent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_ACCESS_COARSE_LOCATION")));
 BA.debugLineNum = 121;BA.debugLine="Wait For Activity_PermissionResult (Permission As";
Debug.ShouldStop(16777216);
parent.mostCurrent.__c.runVoidMethod ("WaitFor","activity_permissionresult", setup.processBA, anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "setup", "btn_scan_click"), null);
this.state = 7;
return;
case 7:
//C
this.state = 1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(0));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 122;BA.debugLine="If Result = False Then Return";
Debug.ShouldStop(33554432);
if (true) break;

case 1:
//if
this.state = 6;
if (RemoteObject.solveBoolean("=",_result,parent.mostCurrent.__c.getField(true,"False"))) { 
this.state = 3;
;}if (true) break;

case 3:
//C
this.state = 6;
if (true) return ;
if (true) break;

case 6:
//C
this.state = -1;
;
 BA.debugLineNum = 123;BA.debugLine="pbscan.Visible = True";
Debug.ShouldStop(67108864);
parent.mostCurrent._pbscan.runMethod(true,"setVisible",parent.mostCurrent.__c.getField(true,"True"));
 BA.debugLineNum = 124;BA.debugLine="clvScan.Clear";
Debug.ShouldStop(134217728);
parent.mostCurrent._clvscan.runVoidMethod ("Clear");
 BA.debugLineNum = 125;BA.debugLine="pbscan.Visible=True";
Debug.ShouldStop(268435456);
parent.mostCurrent._pbscan.runMethod(true,"setVisible",parent.mostCurrent.__c.getField(true,"True"));
 BA.debugLineNum = 127;BA.debugLine="CallSub(Starter, \"StartScan\")";
Debug.ShouldStop(1073741824);
parent.mostCurrent.__c.runMethodAndSync(false,"CallSubNew",setup.processBA,(Object)((parent.mostCurrent._starter.getObject())),(Object)(RemoteObject.createImmutable("StartScan")));
 BA.debugLineNum = 128;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _btnquit_click() throws Exception{
try {
		Debug.PushSubsStack("btnQuit_Click (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,157);
if (RapidSub.canDelegate("btnquit_click")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","btnquit_click");}
 BA.debugLineNum = 157;BA.debugLine="Sub btnQuit_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 159;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _clvscan_itemclick(RemoteObject _index,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("clvScan_ItemClick (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,88);
if (RapidSub.canDelegate("clvscan_itemclick")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","clvscan_itemclick", _index, _value);}
Debug.locals.put("Index", _index);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 88;BA.debugLine="Sub clvScan_ItemClick (Index As Int, Value As Obje";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 90;BA.debugLine="btn_paired.Visible=True";
Debug.ShouldStop(33554432);
setup.mostCurrent._btn_paired.runMethod(true,"setVisible",setup.mostCurrent.__c.getField(true,"True"));
 BA.debugLineNum = 91;BA.debugLine="Starter.manager.StopScan";
Debug.ShouldStop(67108864);
setup.mostCurrent._starter._manager /*RemoteObject*/ .runVoidMethod ("StopScan");
 BA.debugLineNum = 92;BA.debugLine="pbscan.Visible=False";
Debug.ShouldStop(134217728);
setup.mostCurrent._pbscan.runMethod(true,"setVisible",setup.mostCurrent.__c.getField(true,"False"));
 BA.debugLineNum = 94;BA.debugLine="info_sensor  = Regex.Split(\";\",Value)";
Debug.ShouldStop(536870912);
setup.mostCurrent._info_sensor = setup.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(";")),(Object)(BA.ObjectToString(_value)));
 BA.debugLineNum = 96;BA.debugLine="lblinfolevel.Visible=True";
Debug.ShouldStop(-2147483648);
setup.mostCurrent._lblinfolevel.runMethod(true,"setVisible",setup.mostCurrent.__c.getField(true,"True"));
 BA.debugLineNum = 99;BA.debugLine="Select True";
Debug.ShouldStop(4);
switch (BA.switchObjectToInt(setup.mostCurrent.__c.getField(true,"True"),BA.ObjectToBoolean(RemoteObject.solveBoolean(">",BA.numberCast(double.class, setup.mostCurrent._info_sensor.getArrayElement(true,BA.numberCast(int.class, 1))),BA.numberCast(double.class, -(double) (0 + 90)))),BA.ObjectToBoolean(RemoteObject.solveBoolean("<",BA.numberCast(double.class, setup.mostCurrent._info_sensor.getArrayElement(true,BA.numberCast(int.class, 1))),BA.numberCast(double.class, -(double) (0 + 90))) && RemoteObject.solveBoolean(">",BA.numberCast(double.class, setup.mostCurrent._info_sensor.getArrayElement(true,BA.numberCast(int.class, 1))),BA.numberCast(double.class, -(double) (0 + 100)))),BA.ObjectToBoolean(RemoteObject.solveBoolean("<",BA.numberCast(double.class, setup.mostCurrent._info_sensor.getArrayElement(true,BA.numberCast(int.class, 1))),BA.numberCast(double.class, -(double) (0 + 110)))))) {
case 0: {
 BA.debugLineNum = 101;BA.debugLine="lblinfolevel.Color=Colors.Green";
Debug.ShouldStop(16);
setup.mostCurrent._lblinfolevel.runVoidMethod ("setColor",setup.mostCurrent.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 102;BA.debugLine="lblinfolevel.Text=\"Bon\"";
Debug.ShouldStop(32);
setup.mostCurrent._lblinfolevel.runMethod(true,"setText",BA.ObjectToCharSequence("Bon"));
 break; }
case 1: {
 BA.debugLineNum = 104;BA.debugLine="lblinfolevel.Color=Colors.Yellow";
Debug.ShouldStop(128);
setup.mostCurrent._lblinfolevel.runVoidMethod ("setColor",setup.mostCurrent.__c.getField(false,"Colors").getField(true,"Yellow"));
 BA.debugLineNum = 105;BA.debugLine="lblinfolevel.Text=\"Moyen\"";
Debug.ShouldStop(256);
setup.mostCurrent._lblinfolevel.runMethod(true,"setText",BA.ObjectToCharSequence("Moyen"));
 break; }
case 2: {
 BA.debugLineNum = 107;BA.debugLine="lblinfolevel.Color=Colors.red";
Debug.ShouldStop(1024);
setup.mostCurrent._lblinfolevel.runVoidMethod ("setColor",setup.mostCurrent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 108;BA.debugLine="lblinfolevel.Text=\"Faible\"";
Debug.ShouldStop(2048);
setup.mostCurrent._lblinfolevel.runMethod(true,"setText",BA.ObjectToCharSequence("Faible"));
 break; }
}
;
 BA.debugLineNum = 115;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _globals() throws Exception{
 //BA.debugLineNum = 12;BA.debugLine="Sub Globals";
 //BA.debugLineNum = 16;BA.debugLine="Private btn_paired As Button";
setup.mostCurrent._btn_paired = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
 //BA.debugLineNum = 17;BA.debugLine="Private btn_scan As Button";
setup.mostCurrent._btn_scan = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
 //BA.debugLineNum = 18;BA.debugLine="Private clvScan As ListView";
setup.mostCurrent._clvscan = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");
 //BA.debugLineNum = 19;BA.debugLine="Private Label1 As Label";
setup.mostCurrent._label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 20;BA.debugLine="Private Label2 As Label";
setup.mostCurrent._label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 21;BA.debugLine="Private Label4 As Label";
setup.mostCurrent._label4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 23;BA.debugLine="Private Label6 As Label";
setup.mostCurrent._label6 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 24;BA.debugLine="Private lbl_statut_BLE As Label";
setup.mostCurrent._lbl_statut_ble = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 25;BA.debugLine="Private lblinfo_appaired As Label";
setup.mostCurrent._lblinfo_appaired = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 26;BA.debugLine="Private lblinfolevel As Label";
setup.mostCurrent._lblinfolevel = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 27;BA.debugLine="Private Panel_setup As Panel";
setup.mostCurrent._panel_setup = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
 //BA.debugLineNum = 28;BA.debugLine="Private pbscan As ProgressBar";
setup.mostCurrent._pbscan = RemoteObject.createNew ("anywheresoftware.b4a.objects.ProgressBarWrapper");
 //BA.debugLineNum = 30;BA.debugLine="Private txtLocalisation As EditText";
setup.mostCurrent._txtlocalisation = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");
 //BA.debugLineNum = 32;BA.debugLine="Private IdCapteur As Int=0";
setup._idcapteur = BA.numberCast(int.class, 0);
 //BA.debugLineNum = 33;BA.debugLine="Private Localisation_capteur As String=\"\"";
setup.mostCurrent._localisation_capteur = BA.ObjectToString("");
 //BA.debugLineNum = 34;BA.debugLine="Dim info_sensor() As String";
setup.mostCurrent._info_sensor = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});
 //BA.debugLineNum = 35;BA.debugLine="Dim IME As IME";
setup.mostCurrent._ime = RemoteObject.createNew ("anywheresoftware.b4a.objects.IME");
 //BA.debugLineNum = 36;BA.debugLine="Private Lbl_temp_consigne As Label";
setup.mostCurrent._lbl_temp_consigne = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
 //BA.debugLineNum = 37;BA.debugLine="Private SeekBar_consigne_T As SeekBar";
setup.mostCurrent._seekbar_consigne_t = RemoteObject.createNew ("anywheresoftware.b4a.objects.SeekBarWrapper");
 //BA.debugLineNum = 38;BA.debugLine="Private temp_value As Float";
setup._temp_value = RemoteObject.createImmutable(0f);
 //BA.debugLineNum = 39;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _ime_heightchanged(RemoteObject _newheight,RemoteObject _oldheight) throws Exception{
try {
		Debug.PushSubsStack("IME_HeightChanged (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,69);
if (RapidSub.canDelegate("ime_heightchanged")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","ime_heightchanged", _newheight, _oldheight);}
Debug.locals.put("NewHeight", _newheight);
Debug.locals.put("OldHeight", _oldheight);
 BA.debugLineNum = 69;BA.debugLine="Sub IME_HeightChanged(NewHeight As Int, OldHeight";
Debug.ShouldStop(16);
 BA.debugLineNum = 70;BA.debugLine="Try";
Debug.ShouldStop(32);
try { BA.debugLineNum = 71;BA.debugLine="If NewHeight < OldHeight Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("<",_newheight,BA.numberCast(double.class, _oldheight))) { 
 BA.debugLineNum = 72;BA.debugLine="Panel_setup.Top =-900";
Debug.ShouldStop(128);
setup.mostCurrent._panel_setup.runMethod(true,"setTop",BA.numberCast(int.class, -(double) (0 + 900)));
 }else {
 BA.debugLineNum = 74;BA.debugLine="Panel_setup.Top =-0";
Debug.ShouldStop(512);
setup.mostCurrent._panel_setup.runMethod(true,"setTop",BA.numberCast(int.class, -(double) (0 + 0)));
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e8) {
			BA.rdebugUtils.runVoidMethod("setLastException",setup.processBA, e8.toString()); BA.debugLineNum = 78;BA.debugLine="Log(LastException)";
Debug.ShouldStop(8192);
setup.mostCurrent.__c.runVoidMethod ("LogImpl","62555913",BA.ObjectToString(setup.mostCurrent.__c.runMethod(false,"LastException",setup.mostCurrent.activityBA)),0);
 };
 BA.debugLineNum = 82;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _process_globals() throws Exception{
 //BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals";
 //BA.debugLineNum = 10;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _seekbar_consigne_t_valuechanged(RemoteObject _value,RemoteObject _userchanged) throws Exception{
try {
		Debug.PushSubsStack("SeekBar_consigne_T_ValueChanged (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,161);
if (RapidSub.canDelegate("seekbar_consigne_t_valuechanged")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","seekbar_consigne_t_valuechanged", _value, _userchanged);}
Debug.locals.put("Value", _value);
Debug.locals.put("UserChanged", _userchanged);
 BA.debugLineNum = 161;BA.debugLine="Sub SeekBar_consigne_T_ValueChanged (Value As Int,";
Debug.ShouldStop(1);
 BA.debugLineNum = 162;BA.debugLine="temp_value = SeekBar_consigne_T.Value/10";
Debug.ShouldStop(2);
setup._temp_value = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {setup.mostCurrent._seekbar_consigne_t.runMethod(true,"getValue"),RemoteObject.createImmutable(10)}, "/",0, 0));
 BA.debugLineNum = 163;BA.debugLine="Lbl_temp_consigne.Text= temp_value";
Debug.ShouldStop(4);
setup.mostCurrent._lbl_temp_consigne.runMethod(true,"setText",BA.ObjectToCharSequence(setup._temp_value));
 BA.debugLineNum = 164;BA.debugLine="If temp_value <7.00 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("<",setup._temp_value,BA.numberCast(double.class, 7.00))) { 
 BA.debugLineNum = 165;BA.debugLine="SeekBar_consigne_T.Value=70";
Debug.ShouldStop(16);
setup.mostCurrent._seekbar_consigne_t.runMethod(true,"setValue",BA.numberCast(int.class, 70));
 };
 BA.debugLineNum = 168;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _statechanged() throws Exception{
try {
		Debug.PushSubsStack("StateChanged (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,56);
if (RapidSub.canDelegate("statechanged")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","statechanged");}
 BA.debugLineNum = 56;BA.debugLine="Sub StateChanged";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 57;BA.debugLine="lbl_statut_BLE.Text=Starter.currentStateText";
Debug.ShouldStop(16777216);
setup.mostCurrent._lbl_statut_ble.runMethod(true,"setText",BA.ObjectToCharSequence(setup.mostCurrent._starter._currentstatetext /*RemoteObject*/ ));
 BA.debugLineNum = 58;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _txtlocalisation_textchanged(RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("txtLocalisation_TextChanged (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,84);
if (RapidSub.canDelegate("txtlocalisation_textchanged")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","txtlocalisation_textchanged", _old, _new);}
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 84;BA.debugLine="Sub txtLocalisation_TextChanged (Old As String, Ne";
Debug.ShouldStop(524288);
 BA.debugLineNum = 86;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _txtname_capteur_textchanged(RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("TxtName_capteur_TextChanged (setup) ","setup",3,setup.mostCurrent.activityBA,setup.mostCurrent,65);
if (RapidSub.canDelegate("txtname_capteur_textchanged")) { return b4a.bbb.setup.remoteMe.runUserSub(false, "setup","txtname_capteur_textchanged", _old, _new);}
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 65;BA.debugLine="Sub TxtName_capteur_TextChanged (Old As String, Ne";
Debug.ShouldStop(1);
 BA.debugLineNum = 67;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}