Welcome Page

Disclaimer dialog. Accept takes you to the next page and decline takes you back. They are in a control group.
Get Coordinates Page: Custom button icon. Right now the button pops up with an alert that says ‘Click’ so I knew it was working.
Timeout: I have GPS option set to time out after a few seconds so that means the method is being called…it just times out every time. The permissions appear to be correct, the plugin was there, and I made sure the code reflected what was on the cordova site. I wrote other apps using the GPS that worked with the emulator just fine, not sure why this wouldn’t work. It might be me, but I’m low on time and out of ideas. I’ll edit this if I find a way to make it work.
Your Coordinates page: Basically if the GPS worked it would put the coordinates in these labels. It really didn’t need to be on a separate page, but I needed one more.
]]>(picture courtesy of original droid hardware :)
I’ll never claim to be much of an artist, but I did make everything roughly to scale.
]]>To open a Cache click on the item in the ListView (must click the text, couldn’t figure out why clicking anywhere in the row didn’t work), this sends you over to the CacheActivity where it queries the database for the cache coordinates and displays them in the EditTexts on top. These coordinates can be altered and automatically saved if either EditText changes focus or a button is pressed (except the delete button), but will not do so if either of them are blank as that would cause problems. This activity also has buttons for “Update Calculations” and “Delete Cache”. The Update Calculations button gets your current coordinates from the phone’s GPS and displays them in TextViews. It also calculates a compass bearing to the cache and displays it. These items are safe for screen orientation changes, and the entire activity is in a ScrollView so nothing is ‘lost’. The “Delete Cache” button removes the cache’s row from the database and sends the user back to the MainActivity. (Note: The app will die horribly if you remove all the caches from the database….so don’t do that)
This app could use a little polish before I would want the general public to use it, but it is usable as is.
]]>The purpose of this app is to get your current coordinates using the phone’s GPS. The app can calculate a compass bearing to a set of coordinates that the user gives it. A compass can be opened as a second activity. In making this app I used a total of eight Textbox’s, two EditText’s (will only let the user input numerical values, negatives, and decimals), and three Button’s. I also thought to include analog and a digital clocks. I won’t claim to have written the compass or the class I used to get the GPS working as they were pretty complicated and I thought they were a bit out of scope of the goals of this assignment. I did do some of the math associated with calculating the the angles and the bearing. This was my first real attempt at an android app outside of class so I learned quite a bit about handlers, resources, and xml layouts. I look forward to implementing what I learned writing this app into a more featured application. Oh, and this app has support for Spanish as well.
(Note: The button to open the compass on the bottom appears cut off on these screenshots of the emulator, but it appears correctly on my phone.)
]]>Here are the five apps I would like to be able to program before the end of the semester:
]]>