Tuesday, May 22, 2012

Sharing the application development experience

Create the application is very easy but create the excellent application is not easy. I want to share the experience for you. If you have any question or other experience you want to share with us, please reply here.

  1. You must understand the usage of the API if you want to use.
    1. At least you should know why you use this API.
    2. If you are in the activity, you must understand the life cycle of activity.
    3. If you are in the service, you must understand the life cycle of service.
    4. If you can not understand the explain from Android official website, you should directly check the source code of framework.
  2. You must consider the ANR problem.
    1. You can refer to http://developer.android.com/guide/practices/design/responsiveness.html.
    2. If you want to do any operation that may consume much time, you must consider it and don’t just do it in main thread.
  3. You can use log more smart.
    1. You should use the flag to control your log.
    2. Log level is very useful.
    3. Just need to show the key log in the shipped software.
  4. You must remove unnecessary code of this application.
    1. Same as item 1, if you don’t understand what you do, the best solution is DON’T USE IT.

1 comment:

  1. Hello, just wanted to say, I loved this blog post. It was practical.
    Keep on posting!

    my site make money online


You can leave any question here and I will make a response to you ASAP. :D