Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it necessary for network based (cell tower) location to be enabled at install time for an android app using permission ACCESS_COARSE_LOCATION?
    text
    copied!<p>OK, this is a little obscure, and my first question on stackoverflow.. I have searched around for an answer to this, but couldn't find anything about this very specific issue. Here goes:</p> <p>I have created a very simple app which will run as a service in the background, every once in a while it will add latitude &amp; longitude entries to an sqlite database table. It uses course location information (without checking whether it is available).</p> <p>I have installed the app (from an apk) on my device and never had issues with it. However, I installed it on my mother's droid and kept getting "unexpectedly quit" errors each time I ran it. Realizing that she may not have had cell-tower based location enabled and that my app was not designed with best practices in mind (to have checked for that), I quickly enabled that option in her device settings and re-ran the app. I still got a force quit..so I rebooted.. re-ran.. no dice.</p> <p>Then, on a weird hunch, I decided to install the app again, but this time the course-location was enabled at install time. To my surprise, the app worked flawlessly after that.</p> <p>So.. I've not confirmed any of these "theories" but thought the great community at stackoverflow would be my best bet for some ideas:</p> <ol> <li><p>Somehow, it matters at install time that my app has course-network enabled..although, that would seem to be a glaring bug and not likely (because so many apps would have this problem otherwise) unless somehow installing from market and installing from an apk will yield different results.</p></li> <li><p>Somehow, my app, written with bad practices, corrupted something in its installed location and was wiped upon reinstall...</p></li> </ol> <p>If someone could shed light on this, by sharing some of what they know about these two ideas (or maybe point out an entirely different idea that would explain this behavior) that would be awesome.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload