1, online JSON check tool: www.bejson.com
2, Message.what uses static quantities on the handler of the message that is commonly used in the. private static final int msg_successs=0x111;message.what=msg_success;
3,message transfer Optimization, object New way.
Normal: Message msg=new message ();handler.sendmessage (msg);
Modified to:Message msg = Handler.obtainmessage ();handler.sendmessage (msg);
Advantages:returns a new message instance from the entire Messge pool, which is used in many cases because it avoids assigning new objects,Getting the message object by calling the Obtainmessage method avoids creating the object, thereby reducing the overhead of memory.
4: Post a deep study of activity. http://www.imooc.com/view/388
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Optimizer (JSON tool, message new/pass, avtivity deep learning video)