Android Question library not working in service module

walmo

Active Member
Licensed User
Longtime User
Hi
I need to use the Hotspotlib when app in background. So tried to add it to Starter module in Process_Globals , but says this is activity object.
so i moved it to a sub in starter before i call the function of the library, but there is java.lang.NullPointerExeption error.
If i move it to Activity module(Main) it works until the screen goes to sleep, What is my options here.
Thanks
 

walmo

Active Member
Licensed User
Longtime User
Took the long path , did
B4X:
wake.ReleaseKeepAlive
wake.KeepAlive(False)
before calling Hotspotlib
thx
 
Upvote 0
Top