Monday, October 27, 2014

Experimenting with the GPS App

Today I installed the GPS Application you mentioned, and fooled around a bit with its functions. I noticed a few things.

  • Not all functions work on all devices. This was expected, as my Nexus 7 doesn't feature all the components of a phone (it's a WiFi version, not a 4G, so it isn't constantly accessing towers, etc.) This results in it being unable to connect to certain GPS servers, and therefore doesn't give full GPS access.
  • Some functions work great. The accelerometer provides information about current speed the device is traveling, as well is pitch, yaw, roll, acceleration, etc. This helps provide information on possibly where the device is being used (in a car, etc.)
  • The SAT finder works and it's pretty interesting. You can use the camera and it'll show dots of nearby satellites, changing their locations relative to where you're looking at with your camera. I'm not quite sure how they do this, but it's definitely interesting.
  • From these observations, I'm able to make a conclusion that although I will make a similar app, mine will have to have some changes. I'll have to work on if and else statements (as well as try/catch statements) often, knowing that not all devices will have the same components and that I will have to try all methods to be able to get locations on all devices. I'll also have to use the LOCATION permissions on Android to keep the app fully supported. As for grabbing web data, I'll be using JSON, with the permission to use data on Android, as most people using the app will not be on WiFi.

1 comment:

  1. Hmm... GPS information comes from satellites, not cell towers (though other geolocation algorithms can sometimes be used when satellite data is unavailable). Your Nexus 7 should have a GPS receiver in it, and you should be able to get information from it. I have a Nexus 7 too, though mine does have 4G data. We need to investigate this further.

    I'm thinking of a simple app called "Where Am I?" that just reports your WG84 coordinates (see http://en.wikipedia.org/wiki/World_Geodetic_System) after reading them from the GPS receiver on the device.

    ReplyDelete