Android Development tips for Beginners
Learning Android is not a difficult task. There are many tutorials avialble that you can read.
But here are a few tips that you should follow.
1. Choice of IDE
Most of the Android development is centered around Eclipse, although I coded a few applications using IntelliJ IDEA's Community Edition without any problem. Personally, I don't care much about Eclipse's UI drag-and-drop interface. which is anything but impressive. Way more work needs to be done here.
. Develop for the masses
All of us would just love to use the latest Android version with all the cool new stuff. Unfortunately, the Android smartphones on the market don't exactly follow the speed of official version releases. So before diving into coding, do a preliminary check. An application written for the older versions works with the newer ones, but the reverse is of course not true. At this time, version 2.3 (Gingerbread) is still the dominant one. so you might want to wait a while before biting into an ice-cream sandwich.
3. Forget the Emulator, get the Real Deal
Forget the emulator. It's painfully slow, and you can only test a limited number of things on it. I use it only to test how my apps look like on bigger screen sizes, and that's about it. So, if you want to save time, use a real device connected via USB. I'd say you actually need two devices, since odds are, you'll have to test things like SMS, Bluetooth, and anything else requiring device-to-device communication. Even better if your second device has a different screen size. The more different the devices, the better you can test your app.
4. Don't like XML? Too bad
All of Android's UI is based on XML, which caused most of my initial headaches when I started. Although there are some tools that can assist you with some aspects of the UI, like Action Bar generators (such as the Sherlock, or the one from Johannilsson on Github), I am not aware of a complete GUI builder at this time, that would do all the low-level work and not be a Leaky abstraction . All the visual editing tools I tested were buggy or incomplete. If you happen to know a decent one, please let us XML-wary folks know.
5. Use modular UI structure
The amount of XML needed to build a decent UI can become quickly...daunting. Therefore, build components for reuse between different layouts as much as you can, using includes and fragments. Fragments were introduced in version 3.0, but you can download support libraries if you are developing for earlier versions.
Comments
Post a Comment