Advertisement
Guest User

Untitled

a guest
May 7th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ok as requested a more detailed description of the problem
  2.  
  3. I have a cordova application (html + javascripts)
  4. in a the application i use navigator.watchposition() which gets called when the gps location changes
  5. i then do some logic and store the data in a websql database (on the device itself), as far as i know this database is only accesible from within a webview
  6.  
  7. now the point of this application is that it you start it at the morning and stop it in the evening (for example lets say say active for 10 hours from start to finish) you dont need to see the application, and the screen doesnt need to be on
  8.  
  9. i got the stay active part working for when android never ran out of memory
  10.  
  11. so what i need to do to get to my problem is start the application -> press the home button -> start about 10 different application (to simulate normal use of a phone), the number 10 can vary on different phones with different ram sizes -> after opening enough other applications my phone will run out of ram memory so then android kills some apps and eventually will kill my app
  12.  
  13. this is not good for our application at it tracks time at a location and needs to do this fairly accurately
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement