Official website for Linux User & Developer
FOLLOW US ON:
Jul
20

Android Development – five deadly sins

by Kunal Deo

Committing these sins will cause you to burn in Android hell and you will have no place in the Market. Kunal Deo reveals all and he really means business…

This article originally appeared in issue 89 of Linux User & Developer magazine. Subscribe and save more than 30% and receive our exclusive money back guarantee – click here to find out more.

Get your first digital copy of the magazine for iPhone and iPad free – just search for ‘Linux User’ on the Apple App Store now! twitter follow us

Committing these sins will cause you burn in Android hell and you will have no place in the Android Market.

1 Poor Performance
If your application is not responsive enough, your users will receive an ugly ANR (Application Not Responding) message. An ANR is thrown when your application is not able to respond to user input within five seconds, or the Broadcast Receiver does not complete in ten seconds.
An ANR message allows the user to either close the application or wait for it to respond. You know what most users will do, so optimise your application for performance. Or else.

2 Using Excessive System Resources
Always keep in mind that you are programming for low-powered handhelds and not desktop-class systems. There are far more important applications running on the device and you need to play fair. If you are not using system resources responsibly, you will slow down the whole system and the user will banish your application from their device. And so they should.

3 creating a Weird User Interface
People use applications on their smartphones because they are easy to use. Do not try to hijack their user experience. Always provide a consistent user interface.  For example, the Back button should always cause the application to show the previous screen or you should go back to the drawing board. Simple.

4 Using undocumented APIs
Never use an undocumented API, no matter how interesting it looks. Undocumented APIs tend to break applications between OS releases. They are also not tested for third-party usage. Using undocumented APIs can cause all sort of problems including performance issues and compatibility.

5 Designing for One Device (or only a small sub-set)
Android is not just about one smartphone, but a whole range of devices. If you design for all of them, you will have a larger marketplace. The Android SDK provides many APIs to support writing device-neutral applications. Use them.

Makes sure you check out our advanced Android development guide. Better yet, follow us on Twitter and get updates the minute they hit the net…

  • Tell a Friend
  • Follow our Twitter to find out about all the latest Linux news, reviews, previews, interviews, features and a whole more.
    • http://www.wearepharaoh.com Jonah Dempcy

      Good to know. Basically, quality quality quality. It’s better to take longer to release the app and to have less features as long as they are high quality!