Android Question Activity_Create And The FirstTime Boolean Value

bocker77

Active Member
Licensed User
Longtime User
I am sort of sure that I am understanding when FirstTime can get set to True but then again most probably not. My program utilizes a foreground service that sends Main GPS coordinates almost continuously except when it gets throttled for a short time when Main is doing something. The service sets locks with PartialLock and KeepAlive(False) to cutdown on battery usage. In Main FirstTime I set a couple of values in an integer that forces a CustomListview to get populated. I have to drive in my car to fully test the app. Anyway I noticed that the CustomListview went blank and started to repopulate. This tells me that FirstTime ran again. My app only runs in Porttrait mode. I tried testing this out by rotating another app that is running and FirstTime code didn't run. I also received a text message when the program was running and no FirstTime then either. I am trying to understand how in what instances our boy Android would run FirstTime code again so that I can debug it. After reading Erel's post on StateManager I am thinking that this would not help me out. But then again maybe it can.
 

bocker77

Active Member
Licensed User
Longtime User
I will look into B4XPages and see what it will take to convert my app. From your comment it sounds like this would solve this particular issue.

Thanks Lucas,
Greg
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…