Timer Tick not found

kalarius

Active Member
Licensed User
Longtime User
I have write the following code
B4X:
Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.
Dim MyP As PackageManager
Dim mR As OperatingSystem
Dim Mname As List
Dim Mpid As List
Dim Mname_pid As List
Dim In As Intent
End Sub

Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
Dim MyT As Timer

End Sub

Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   'Activity.LoadLayout("Layout1")
   MyT.Initialize(MyT,1000)
 
MyT.Enabled=False

mR.Initialize(mR):Mname.Initialize:Mpid.Initialize:Mname_pid.Initialize

In = MyP.GetApplicationIntent("com.seleuco.mame4all")

 If In.IsInitialized Then StartActivity(In)
 StartActivity(In)  
 MyT.Enabled=True
 
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub MyT_tick

' here some code 
End Sub

the program start the mame4droid program
when I exit from mame4droid then
at the screen shows the follow message

An error has occured in sub
java lang exception
sub anywhere software.b4q.globals
timer@41088_tick was not found
continue?


** Iwant when the user exit from mam4droid then my program to restart the mame4droid program **


any suggestions??


kalarakis
Creta
Greece
 
Top