TreKing - i have nerrowed down the problem and its with GPS location. Here is the code which is not working:
_locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria criteria = new Criteria(); _provider = _locationManager.getBestProvider(criteria, false); _location = _locationManager.getLastKnownLocation(_provider); Variable _location is set to null when i test on other device than the one(galaxy s3) i used to developed the app. My understanding is that above code should work on any GPS enabled android device. Any insight why it is not working on device other than my development device? On Saturday, June 28, 2014 10:03:13 AM UTC-4, TreKing wrote: > > > On Fri, Jun 27, 2014 at 11:39 PM, Spica <[email protected] <javascript:>> > wrote: > >> Any idea why it is not working on all the android devices? > > > Because you didn't test and account for all android devices. > > If you want a better answer than that, you need to provide a better > question than this. For example, explaining what "not working" or "failing" > means would help the rest of us who have no idea what you're talking about. > > http://www.catb.org/esr/faqs/smart-questions.html > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

