Why is 0dp considered a performance enhancement?

First of all you have this, <ListView android:id=”@android:id/list” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_weight=”1″> </ListView> Never take the ListView’s height as wrap_content, that will lead into troubles. Here is the reason for that and this answer. Further more, I searched around but haven’t found anything that really explains why Android Lint as well as some Eclipse hints suggests … Read more

Lint: How to ignore ” is not translated in ” errors?

Android Studio: “File” > “Settings” and type “MissingTranslation” into the search box Eclipse: Windows/Linux: In “Window” > “Preferences” > “Android” > “Lint Error Checking” Mac: “Eclipse” > “Preferences” > “Android” > “Lint Error Checking” Find the MissingTranslation line, and set it to Warning as seen below:

This Handler class should be static or leaks might occur: IncomingHandler

If IncomingHandler class is not static, it will have a reference to your Service object. Handler objects for the same thread all share a common Looper object, which they post messages to and read from. As messages contain target Handler, as long as there are messages with target handler in the message queue, the handler … Read more