'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim hc As HttpClient
Dim req As HttpRequest
Type ProgressStatus(Downloaded As Long, Total As Long)
End Sub
Sub ProgressHTTP(tmp As ProgressStatus)
'Label7.Text = tmp.Downloaded & " / " & tmp.Total
ProgressBar1.progress = Round((tmp.Downloaded * 100)/tmp.Total)
End Sub
'Version 1.04
Sub Process_Globals
Dim Tasks As List 'List of URLs to fetch.
'A map that holds the successful links.
'The links are stored as keys. The values are not used.
Dim SuccessfulUrls As Map
Dim Working As Boolean 'True when a job is still running
Dim Complete As Boolean 'True after a job has completer
Dim Job As String 'Name of the current running Job
Dim CallbackActivity As String 'Name of Activity that handles the callbacks.
Dim CallbackJobDoneSub As String 'Name of the JobDone callback sub.
Dim CallbackUrlDoneSub As String 'Name of the UrlDone callback sub.
Dim CallbackProgressSub As String 'download progress of file
Type ProgressStatus(Downloaded As Long,Total As Long)
End Sub
LogCat connected to: B4A-Bridge: samsung GT-N7000-XXXXXXXXXXXXXXXX
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:Bustagena.eng
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 329)
java.lang.NoSuchFieldError: anywheresoftware.b4a.BA.activityBA
at anywheresoftware.b4a.phone.Phone.SetScreenOrientation(Phone.java:192)
at Bustagena.eng.main._activity_create(main.java:329)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at Bustagena.eng.main.afterFirstLayout(main.java:84)
at Bustagena.eng.main.access$100(main.java:16)
at Bustagena.eng.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:Bustagena.eng
** Activity (main) Create, isFirst = true **
main_activity_create (B4A line: 172)
Phone1.SetScreenOrientation(1) 'Aquí forzamos a que el equipo este solo en la orientación vertical
java.lang.NoSuchFieldError: anywheresoftware.b4a.BA.activityBA
at anywheresoftware.b4a.phone.Phone.SetScreenOrientation(Phone.java:192)
at Bustagena.eng.main._activity_create(main.java:334)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at Bustagena.eng.main.afterFirstLayout(main.java:84)
at Bustagena.eng.main.access$100(main.java:16)
at Bustagena.eng.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
Compiling code. 0.06
Compiling layouts code. 0.00
Generating R file. 0.00
Compiling generated Java code. Error
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main" Could not find the main class: com.sun.tools.javac.Main. Program will exit.
You have an old version of Phone library in your additional libraries path. You should delete it.
The internal one is newer and will work fine.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?