There are two possible locations for libraries. One is internal, in the location that Basic4android is installed and the other is configured under Tools - Configure Paths. In one of them you will find older version of these files.
i'm sorry .. maybe i have not correctly explained my problem .. now i re-post my error .. ( the version 2.00 is not able to find my sub when i called callsub command )
Originally Posted by nw11
i have installed the new version 2.0 and now i receive this error when callsub command is called ..
this is my code :
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed = True Then
CallSub(service1, "disattivatimer")
Else
CallSub(service1, "attivatimer")
End If
End Sub
' this sub are under service1
Sub AttivaTimer
TimerService.Enabled = False
TimerService.Initialize("TimerService",5000) ' 5 secondi
SwTimer = 0
TimerService.Enabled=True
End Sub
Sub DisattivaTimer
TimerService.Enabled = False
TimerService.Initialize("TimerService",20000) ' 20 secondi
SwTimer = 0
TimerService.Enabled=True
End Sub
' this is the message i receive from the log
Partial wakeLock already held.
** Service (service1) Start **
Partial wakeLock already held.
** Activity (main) Pause, UserClosed = true **
main_activity_pause (java line: 761)
java.lang.Exception: Sub disattivatimer was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:176)
at anywheresoftware.b4a.keywords.Common.CallSub4(Comm on.java:793)
at anywheresoftware.b4a.keywords.Common.CallSub(Commo n.java:774)
at newudp.it.main._activity_pause(main.java:761)
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 newudp.it.main.onPause(main.java:159)
at android.app.Activity.performPause(Activity.java:45 63)
at android.app.Instrumentation.callActivityOnPause(In strumentation.java:1198)
at android.app.ActivityThread.performPauseActivity(Ac tivityThread.java:2705)
at android.app.ActivityThread.performPauseActivity(Ac tivityThread.java:2674)
at android.app.ActivityThread.handlePauseActivity(Act ivityThread.java:2652)
at android.app.ActivityThread.access$800(ActivityThre ad.java:127)
at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1170)
at android.os.Handler.dispatchMessage(Handler.java:99 )
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.jav a:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:557)
at dalvik.system.NativeStart.main(Native Method)
main_activity_pause (java line: 761)
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Exception: Sub disattivatimer was not found.
at anywheresoftware.b4a.keywords.Common.CallSub4(Comm on.java:798)
at anywheresoftware.b4a.keywords.Common.CallSub(Commo n.java:774)
at newudp.it.main._activity_pause(main.java:761)
the project is exactly the same of 1.90 version ..
please help !!