Android Dev Challenge
I made it! I'm so tired. I think I'm going to sleep for the next 12 hours and then take a break from coding tomorrow.
I submitted two apps:- Brain Combustion: Multiples (bcmult.apk)
- Clouds (clouds.apk).
I made it! I'm so tired. I think I'm going to sleep for the next 12 hours and then take a break from coding tomorrow.
I submitted two apps:
Here's a video of my Android game working on the G1. Currently the game has no sound because there's a bug in my sound-playing code that makes the app crash. Hopefully there will be boings whenever you click in the real version.
I'm open to ideas about how to make better use of the Android's sensors in the app. I was thinking that it could give you hints when you shake the phone. E.g. all the multiples of 4 would fall to the left side when you shook it to the left (at a 20-point penalty). This is just the development version. I'll announce it's real title when it's officially out, which is something new that I came up with last night.
Comments [4]
In my (XUI) on click handler, I have this:
navigator.notification.beep(2);
Comments [3]
I'm renting a G1 from someone for a few days to test my app. The Android docs don't mention how to install the G1 on Ubuntu Jaunty (9.04). What I did to install it:
$ cd /etc/udev/rules.d/SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"then:Comments [0]
I'm making great progress with the app. I wrote the code entirely from scratch tonight. And the app mostly works now. You click on boxes that match a specified condition to earn points. The faster you do it, the more bonus points you get.
I spent over an hour trying to figure out how to get the text from a DOM element with XUI. It must be something like x$('#foo').text() or x$('#foo').html().nodeValue. I tried a million things and couldn't figure it out. I know that x$('#foo').html() returns a Javascript object because I printed it in an alert, but then I don't know what to do with the object. If only I could run the app in Firefox and use Firebug, then I could inspect it. I did try loading just the html file in Firefox and commenting out the link to phonegap.js, but that didn't work. Tomorrow:Comments [2]
PhoneGap is awesome.
I'm using Eclipse Ganymede, Ubuntu 9.04. To do:Comments [0]
Comments [0]