Android Question Moving my install...

kimble01

Member
Licensed User
Longtime User
Hi all,
I'm trying to move my development environment to a virtual machine. I've gotten all the prerequisites finished and the b4a app is installed and setup correctly. It was not trivial because of pathing. It took awhile for the java environment to recognize it was installed.

Anyway, on an application I have in production, I test for the initialization of a timer with the .IsInitialized property.

When I try to compile this app in my new install, it throws the error "unknown member isinitialized" for just the timer variable. I have several other isinitialized tests on other types that do not throw this error! Any help will be appreciated.

Thanks,
Gary
 

kimble01

Member
Licensed User
Longtime User
Thanks for the replies! Yes, both are latest version of b4a.
Here is the declaration (which is in process_globals) and offending lines of code (which appear in sub ShowLockScreen in Main):
B4X:
Dim timerLockScreen As Timer
If Not(timerLockScreen.IsInitialized) Then
    timerLockScreen.Initialize("TimerLockScreen", 10000)
End If
timerLockScreen.Enabled = True

EDIT:

Here is what happens with no initial compile errors when I try to install and run to a physical device:

B4X:
Parsing code.                           0.03
Compiling code.                         0.39
Compiling layouts code.                 0.19
Generating R file.                      0.92
Compiling generated Java code.          Error
javac 1.7.0_25
src\com\TravelGuard\errorsevents.java:8: error: cannot find symbol
public class errorsevents extends B4AClass.ImplB4AClass implements BA.SubDelegator{
                                                                     ^
  symbol:   class SubDelegator
  location: class BA
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: src\com\TravelGuard\searchview.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
 
Last edited:
Upvote 0
Top