Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I saw your write-up on this before; very cool work. Could you talk a little about the programming side of things and what you had to do to go from your initial mock-up (what did you use for that?) to the Android app, and how that process went? I saw that you'd written it was your first time with Android/Java.


Thanks! And sure, I wrote the initial simulation code in Matlab, which is very simple, just adding 2D arrays which Matlab is fairly quick at.

I then saw the traction the blog post was getting, so wanted to capitalise on that quickly. I had an Android phone, so for simplicity (and ease of monetisation) decided to write an app for that. From zero knowledge of Java it took probably 30 hours over a weekend to get the app out, then perhaps another 10 hours over the next week on a few updates and bug fixes.

Getting the app up and running was relatively simple, most of the time was spent looking up API functions in Google's SDK documentation (and SO!). The only complication was making sure the CPU-intensive parts ran in a separate thread to avoid locking up the UI, and dealing with different device display sizes and resolutions. Everything else (dealing with input, generating images etc.) wasn't particularly difficult, but did take time to implement.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: