Android Question SQLite in Activity_Pause

mr23

Active Member
Licensed User
Longtime User
I have an app that uses KeyValueStore to save as-yet-unsaved values via KeyValueStore.
If I call it in Activity_Pause, it doesn't always complete the storing. It does when called from elsewhere.
I've added Log messages at a few useful points, and added Try/Catch/Log Exception/EndTry.
No clues so far as to why it doesn't always complete the last store, except... in the unfiltered log I find the following when the store & Log() doesn't complete.

Activity pause timeout for ActivityRecord{41bf4838 <apppath>/.main}​

What is the time limit for Activity_Pause ?
 

mr23

Active Member
Licensed User
Longtime User
Multiple calls to KVS's PutObject. PutInternalObject is manipulating a File per call, not exactly optimized.

I'm just surprised there is a timeout/limit, and that it was silently performed, with loss of data. I looked through the forum including via google and found very little on the timeout. Did I just use poor keywords?

What is the timeout limit?
 
Upvote 0

mr23

Active Member
Licensed User
Longtime User
It was running in debug (legacy) mode in 3.0, but I've seen it in 2.71 as well.
What is the timeout length ?
By loss of data, I mean that the store operation doesn't complete due to apparently the timeout killing off the process. The next load during app startup shows the old value, so I consider that loss of data.
 
Upvote 0

mr23

Active Member
Licensed User
Longtime User
ANR dialogs never came up in these instances.
I'm going to move on and chalk it up to debug mode for now.

Erel, would you consider *not* filtering messages containing the b4a application's path, so message such as this one show in the log, even if "Filter" is checked?
Activity pause timeout for ActivityRecord{41bf4838 <apppath>/.main}​
 
Upvote 0
Top