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:

AppCompatActivity.onCreate can only be called from within the same library group

As previous responses highlighted, it is bug. I recommend not to disable the specific lint warning project-wide, but for that method only. Annotate your method as follows: @SuppressLint(“RestrictedApi”) @Override public void setupDialog(Dialog dialog, int style) { super.setupDialog(dialog, style); //your code here }

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