Done much mobile phone development?
In an attempt to fix that I put a day aside to write an Android app with the theme decided by my imaginative housemate. Can-can cat was born.
It turns out than in a day you can;
- Install eclipse and the relevant Android Develeopment Tools (ADT) plugin.
- Learn the basics (Activities, the various xml Android files and resources) to get started
- Write a simple Android mobile app with animation and music
- Upload it to the Android Market
There are very useful resources on how to get started. So instead here are some of the good parts of the experience;
- Its Java. Its obvious but for me this makes the barrier for entry so minimal you can be productive as soon as your IDE is configured.
- The documentation is great and there are loads of familiar resources like stackoverflow out there if you get stuck at any point.
- The Android Market is open, in minutes you can upload an app and it be available. Great for a developer… less so as an Android user (there are too many helloworld and stupid apps like mine on there)
Here are some of the gotchas that slowed me down;
- The built in Mediaplayer seems flaky, or at least overly complex with error and status handlers all over the place. I kept it simple and created/destroyed rather than reusing players.
- If you get an eclipse error complaining about http://schemas.android.com not being available…. try selecting your Activity class when running.
That slightly unintuitive error means you have one of the many xml files selected and its trying to run a transform instead of your app…
- Its not required for a valid android manifest but make sure you include a minimum SDK or you can’t upload to the Android Market :
<uses-sdk android:minSdkVersion=”7″ />
- The Android Market is not web browsable, you need to be using an Android mobile to access it… why?
Other than that its all quite painless. What to make to check out the next platform? Disco Dog? Polka Pig?