I’m trying to have three bars that act as a notification to how strong your gps signal is. Three bars for good connection, one bar for weak etc. How do I check the gps signal strength and show the corresponding bars? Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think there is no such thing as strength, but I think you mean accuracy, the bars you see are “blinking”(on the notification bar on the phone) while device is retrieving the coordinates and other data related to your position.
You can measure the accuracy with using
getAccuracy()method, but the accuracy depends on how much satellites cover your area and other factors (Google around), you can collect this information withgetSatellites().For your purpose you can measure the accuracy and display custom number of bars for your custom GPS indicator.
Satellites send raw data package known as
NMEAwhich contains wide range of information (strings). You can read more here:http://aprs.gids.nl/nmea/