10 Android App Performance Tips For Developers

Oct 21, 2014
1. Good Coding Practices

It doesn't matter what language you're writing your code in, following good coding practices is always important. These practices make your code clean, bug free and easy to understand.

2. Block Operations Off the Main UI Thread

It is important to keep your simple and less resource intensive. You need to make use of things like thread, Asynctask or a custom background service.

3. Use Latest Android SDK, APIs and Best Practices

The Android platform evolves at a very fast pace and it is important to be in sync with the developments.

4. Strict Mode

Many haven't even heard of this one. Strict Mode is an API that you can use for Android development. It identifies good coding practices.

5. Minimise Debugging and Diagnostics Before Publication

Logging and debugging during development affects the performance of the code. You need to do these things right before publication.

6. Simple, Elegant, and Shallow layouts

Contrary to what many may have told you, simple designs are what users want. Complex UIs make complicated apps and no one likes those.

7. Tailor Your Resources To The Target Devices

When you're building your app, you should have the target audiences and their devices in your mind. It is important to use resources that are made for your target devices.

8. Hierarchy Viewer

This is a tool that helps you debug your applications and provides other very valuable information about your apps.

9. Layoutopt Tool

This tool lets you streamline your app and keep it slim. You can learn ways to collapse your layout etc.

10. Traceview

This is a profiling tool for Android applications. Traceview isn't the only one though, there are many other profiling tools that you can use. 

No comments:

Post a Comment