Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old September 22nd, 2010, 09:05 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 16
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Smile Broadcast action for GPS state changed

I create a app that i want to catch the GPS on/off event.How do i find out the GPS device enable through GPS_EVENT_STARTED and GPS_EVENT_STOPED.Is there the broadcast action for GPS state changed?
Thank for your reading!

Advertisements
duonginfo is offline  
Reply With Quote
sponsored links
Old September 23rd, 2010, 02:25 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 12
Thanked 2 Times in 2 Posts
Default

I didn't see this ability, but you can make a service that contains GPS listener with overridden next method

public void onProviderEnabled(String provider)
public void onProviderDisabled(String provider)

and you can send broadcasts yourself from them
vladimirov is offline  
Reply With Quote
The Following User Says Thank You to vladimirov For This Useful Post:
duonginfo (September 24th, 2010)
Old September 24th, 2010, 04:23 AM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 16
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

thank you vladimirov.It's helpful.
duonginfo is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:20 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.