What I had not known in OpenStreetMap, I’ve done with Google Maps, in five lines. branches = server.getBranches(); for(int i = 0; i < branches.size(); i++) { OverlayItem item = new OverlayItem(new GeoPoint(branches.get(i).getLatitudeE6(), branches.get(i).getLongitudeE6()), branches.get(i).getStoreName() + ” ” + branches.get(i).getBranchName(), “”); poundsOverlay.addOverlay(item); }
I’ve been crawling around the Internet for journals and blogs (and blogs who have other neat references cited), and I’m currently looking on the following: How Advertising has Changed in 140 Characters or Less. Retrieved 13 January 2011. This one’s got a lot of handy references. Why Mobile Phone Advertising When Twitter is Free?. Retrieved [...]
Instead of Android’s built-in location service I use (which locates the devices and gives back the longitude and latitude), I’m trying to use this technology, SkyHook, which gets the device’s location (even more?) accurately. Problem is, it doesn’t work with the emulator. I have yet to test on an actual Android device. Hope it works. [...]
I got no words for it. I’m just plain happy. *sniff* (Thanks to the OSM, OSMDroid, NavUP source code for reference.) Next up — map overlays (of store information), and geofencing (filtering stores based on location and given a radius). I still have a long way to go.
Thanks to this and EWness (Joel Acuin and I’s CS 174 Android project), I remembered that when writing to a file, one must use native Android functions, and not the Java ones. /* FileWriter fileWriter = new FileWriter(“update.xml”); PrintWriter printWriter = new PrintWriter(fileWriter); printWriter.println(xmlFileContents); printWriter.flush(); printWriter.close(); */ FileOutputStream fileOutputStream = context.openFileOutput(“update”, Context.MODE_PRIVATE); fileOutputStream.write(xmlFileContents.getBytes()); Behold, the [...]