initial commit - working version with current location and 3 initial hotspots - next will put target in middle and use sin/cos and bearingTo stuff to put other points on
Committing APK - moved version control to bitbucket and checked it out
in Eclipse
Moved business logic of calculating relative hotspot coordinates to the
Hotspot class itself, as well as added the draw method there, and some
more info about the hotspot (ssid, password, mac address). Also set up
an ontouch listener on radarview to detect clicking on hotspots.
Wondering if there's a better way to detect clicks than calculating
sqrt(A^2 + B^2) for each hotspot - seems expensive
The latest in the app - I have some TextViews displaying what's up, and
it should be fully working coordinate system but something is goofy and
making it jumpy. Not sure what it is just yet..
Moving relativeLocation function to RadarView where it belongs (because
RadarView has all of the relative data). Adding some textviews and
details to keep track of how many updates there have been. Also added a
yellow line to track the history of where you've been. Hopefully this
helps.
using FLAG_KEEP_SCREEN_ON instead of storing a wakelock
SUCCESS!!! Big aha moment when I realized that Math.sin() and Math.cos()
take radians as parameters, not degrees. With that fixed, I went for a
test walk, which proved that everything was working properly. The next
step was making the direction change based on which direction you're
walking in so that up doesn't always mean north. I think this will be
more helpful for finding your way, but I'll have to test that out...
Added a BroadcastReciever for receiving network updates, set up an
intent filter for receiving those updates, and log some details about
the result when it happens. Just some initial snooping to see what kind
of data is available to us...
The latest hot fire - it now looks for hotspots that you're near, asks
you if you want to connect to them, and actually connects to them!!!
Wowowow!!! Next steps will be putting the hotspots in a DB, then adding
to that DB, and then later network operations to sync between app and
API (which hasn't been written yet)
Hotspots in a DB!!!
Added functionality to add new hotspots! And it works! There are a few
kinks that need working out, but in general I think we're in business
here! Created a whole new Activity for entering in WiFi data. A few more
DB functions including adding and updating. Some sanity checks in place
to verify that we actually have a device that has WiFi and things, and a
few other changes.
Check for a current WiFi connection once the RadarView loads and ask to
add it instead of ONLY on new connections (via BroadcastReceiver).
Average 3 previous locations together to get current location. Hopefully
this helps for smoothing.
Modifications to insert Ljubljana sample data into the project. That
includes use of this open source CSV reader and some generalizations of
some classes such as Hotspot, as well as a new Notes table for holding
Foursquare tips about venues that might have wifi
Added accuracy bubble and fixed foursquare info to actually show up
(it wasn't being populated from the DB, oops)
new manifest in bin
Merge remote-tracking branch 'github/master'