Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I want to know if the gps is active and able to report fixes. (basically the gps icon is solid and not blinking). I checked other answers on SO but I was wondering why this answer wouldve work (or would it). Basically every second I request location and if the timestamp of the current location is equal to the last one then there is no fix. Otherwise the timestamp will keep increasing right?
Comments?
The right way to do it is to request gps status updates, and implement the onStatusChanged function. The status GPS_EVENT_FIRST_FIX will be passed as soon as you have enough sattelites to calculate the location.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
If I were to write a mobile app that recorded the GPS location of the device, how certain can I be that the GPS location hasn't been tampered?
To avoid confusion, I'm not concerned with the resolution/accuracy of the GPS, I'm more concerned with security. Can the GPS coordinates be hacked so that my app records an incorrect location?
Can I demonstrate that the GPS coordinates recorded by the app can be relied upon?
Yes, it can be hacked. On Android there's a debugging system that allows fake locations. Or they could always use a custom build of Android that just lies. Never trust ANY data from a client you don't control to be accurate. Even if they couldn't fake the GPS data, they could alter your app and make it upload bad data.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I work on an indoor tracking project using android.I used Gps to detect location but it does not work correctly at indoor tracking
How can I solve this problem?
If you GPS signal is bad there are 2 things you can do.
One is: improve you reception (e.g. remove the roof, good outside, replace roof with glass). Now this might be a little ... tricky
The other one is: use a different technique. Bluetooth tracking (BLE beacon) for instance.
You cannot 'amplify' GPS signal. The system works by finding out how long it takes a singal to go from several satallites to your phone. If you 'repeat' or amplify the system it is going to give false results. So you can not do stuff like "put an antenna on the roof", as all your locations would return the location of the antenna.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Actually I want that when 1 meter covered by the device a toast notification appears and it shows One meter has been covered.Similarly when again one meter will be cover the toast notification again appears.This phenomena continues further.Please help me to sort out the problem.Please provide me a sample code to do that...Thanks in Advance!!!
There is no location technology with one-meter resolution available to Android devices. Hence, what you want is not possible, sorry.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new at android and I am trying to make an android app which takes from you the time and sends a message to user at that time. Can someone tell me the steps to follow so I can make this app.
This is actually pretty simple. One way to do this (may not be the simplist but would give you good experience with a bunch of the android framework:
Register a BroadcastReceiver
Gather the information (message, destination, time) from the user using UI elements.
Send an intent to the BroadcastReciever with the time specified.
Send the sms from the BroadcastReceiver, using SmsManager.
This would also give you a lot of opportunity to add to this app, you can learn to use Content Providers to keep track of the current 'Pending Messages' and give the user an option to view and edit them.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I read somewhere that body temperature can be measured through touch screen since different body temperature induces different charge on the capacitive screen.Is it possible? If yes,how can the value be recorded and converted to corresponding temperature?
Different charge for device means different coordinates. So you can't say exactly - is it temperature changed, or user just move his finger.
Actually, charge doesn't depends on temperature so much.