Try to listen for a gps update and see if you get one? You can also register a passive provider and listen for updates, you can also do a LocationManager.getGpsStatus to find out what the state of the provider is at a given time (this is probably what you want).
Or are you wondering how to detect if the device even *has* gps? (Is this in the requirements? Perhaps, but otherwise I would assume that the getSystemService call would simply return null...) kris On Tue, Jan 17, 2012 at 2:44 AM, Sumedh <[email protected]> wrote: > hello, > > i have android device zinglife e-pad. > want to run my application which require GPS enabled > > i have enabled the GPS from the settings, but it doesnt show any > indication for GPS enabled, > (as we can see in other devices that a disk at the top) > neither my application is executing. > > is there any way to test for GPS connection > > plz help me > > Sumedh > > -- > 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 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

