On 08/05/2013, at 12:46 PM, J. Landman Gay wrote: > On 5/7/13 8:29 PM, Terry Judd wrote: >> Hi Jacque (or anyone else?) - I may have misunderstood but I'm not >> getting any messages sent when an app is 'suspended' and 'resumed' on >> Android (4.2.2). No shutdown message on 'suspend' and no opencard >> message on 'resume'. Does the shutdown message only get sent when the >> app 'quits' (when imposed by the OS or the user)? >> >> Looks like I may have to resort to using timers and activity >> monitoring ;( > > That's too bad. I do know you can trap the backKey message but for some > reason we don't get a homeKey message. > > I used to worry about it, but after running a lot of Android apps I've > noticed that most of them just pick up where they left off if they are still > in memory, or else they start over again if they aren't. It must be a common > problem. But that doesn't help you much if you need to do processing no > matter how the user leaves.
Yeah - I need to do two things, submit 'session' data when the user suspends (on iOS I actually have to store this locally and then send it when the user resumes), and logout the user after a given time if the app has been suspended (there are potential security issues with some of the data our users are accessing). I had this all sussed on iOS but it's going to take a major rethink on Android. > > I'm guessing the OS probably doesn't notify the app that it's suspended. Maybe not. I think you can potentially get a list of active processes and determine which one is active. If we could poll that list using an external - if we ever get externals for Android - then we could build our own suspend and resume routine. Terry... > > -- > Jacqueline Landman Gay | [email protected] > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
