75 lines
3.6 KiB
Java
75 lines
3.6 KiB
Java
|
|
package b4a.example;
|
|
|
|
import java.io.IOException;
|
|
import anywheresoftware.b4a.BA;
|
|
import anywheresoftware.b4a.pc.PCBA;
|
|
import anywheresoftware.b4a.pc.RDebug;
|
|
import anywheresoftware.b4a.pc.RemoteObject;
|
|
import anywheresoftware.b4a.pc.RDebug.IRemote;
|
|
import anywheresoftware.b4a.pc.Debug;
|
|
import anywheresoftware.b4a.pc.B4XTypes.B4XClass;
|
|
import anywheresoftware.b4a.pc.B4XTypes.DeviceClass;
|
|
|
|
public class main implements IRemote{
|
|
public static main mostCurrent;
|
|
public static RemoteObject processBA;
|
|
public static boolean processGlobalsRun;
|
|
public static RemoteObject myClass;
|
|
public static RemoteObject remoteMe;
|
|
public main() {
|
|
mostCurrent = this;
|
|
}
|
|
public RemoteObject getRemoteMe() {
|
|
return remoteMe;
|
|
}
|
|
|
|
public static void main (String[] args) throws Exception {
|
|
new RDebug(args[0], Integer.parseInt(args[1]), Integer.parseInt(args[2]), args[3]);
|
|
RDebug.INSTANCE.waitForTask();
|
|
|
|
}
|
|
static {
|
|
anywheresoftware.b4a.pc.RapidSub.moduleToObject.put(new B4XClass("main"), "b4a.example.main");
|
|
}
|
|
|
|
public boolean isSingleton() {
|
|
return true;
|
|
}
|
|
public static RemoteObject getObject() {
|
|
return myClass;
|
|
}
|
|
|
|
public RemoteObject activityBA;
|
|
public RemoteObject _activity;
|
|
private PCBA pcBA;
|
|
|
|
public PCBA create(Object[] args) throws ClassNotFoundException{
|
|
processBA = (RemoteObject) args[1];
|
|
activityBA = (RemoteObject) args[2];
|
|
_activity = (RemoteObject) args[3];
|
|
anywheresoftware.b4a.keywords.Common.Density = (Float)args[4];
|
|
remoteMe = (RemoteObject) args[5];
|
|
pcBA = new PCBA(this, main.class);
|
|
main_subs_0.initializeProcessGlobals();
|
|
return pcBA;
|
|
}
|
|
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
|
public static RemoteObject _timer1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.Timer");
|
|
public static RemoteObject _running = RemoteObject.createImmutable(false);
|
|
public static RemoteObject _starttime = RemoteObject.createImmutable(0L);
|
|
public static RemoteObject _elapsedtime = RemoteObject.createImmutable(0L);
|
|
public static RemoteObject _canvas1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.CanvasWrapper");
|
|
public static RemoteObject _panel1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.PanelWrapper");
|
|
public static RemoteObject _btnstart = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
|
|
public static RemoteObject _btnpause = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
|
|
public static RemoteObject _btnreset = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
|
|
public static RemoteObject _btnsync = RemoteObject.declareNull("anywheresoftware.b4a.objects.ButtonWrapper");
|
|
public static RemoteObject _lblelapsedtime = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
|
|
public static RemoteObject _pnlclock = RemoteObject.declareNull("anywheresoftware.b4a.objects.PanelWrapper");
|
|
public static RemoteObject _myclock = RemoteObject.declareNull("b4a.example.analogclock");
|
|
public static b4a.example.starter _starter = null;
|
|
public Object[] GetGlobals() {
|
|
return new Object[] {"Activity",main.mostCurrent._activity,"BtnPause",main.mostCurrent._btnpause,"BtnReset",main.mostCurrent._btnreset,"BtnStart",main.mostCurrent._btnstart,"BtnSync",main.mostCurrent._btnsync,"Canvas1",main.mostCurrent._canvas1,"ElapsedTime",main._elapsedtime,"lblElapsedTime",main.mostCurrent._lblelapsedtime,"myClock",main.mostCurrent._myclock,"Panel1",main.mostCurrent._panel1,"pnlClock",main.mostCurrent._pnlclock,"Running",main._running,"Starter",Debug.moduleToString(b4a.example.starter.class),"StartTime",main._starttime,"Timer1",main._timer1};
|
|
}
|
|
} |