Hi,
Sometimes i have a problem to call StartActivity or CallSubDelayed2 from my Class.
In my "Main" Activity_Create i Initialize my Class.
I have a Funkton thet calls StartActivity(myActiviti) and it works, but sometimes i get NullPointerException when StartActivity(myActiviti) called
Sombody an idea?
For Example like this code:
Sometimes i have a problem to call StartActivity or CallSubDelayed2 from my Class.
In my "Main" Activity_Create i Initialize my Class.
I have a Funkton thet calls StartActivity(myActiviti) and it works, but sometimes i get NullPointerException when StartActivity(myActiviti) called
Sombody an idea?
For Example like this code:
B4X:
'Main
Sub Globals
Dim myStops As CStops
end Sub
Sub Activity_Create
myStops.Initialize
end Sub
Sub DoSomething
myStops.DoThings
end Sub
B4X:
'class CStops
Sub DoThings
'some Code...
'some Code...
'some Code...
'open Activity get sometimes NullPointerException
StartActivity(myActiviti)
end Sub
Last edited: