Lint Report

Check performed at Sun May 14 10:20:52 CEST 2017.
13 errors and 98 warnings found:

Correctness
1Error OnClick: onClick method does not exist
2Error GradleCompatible: Incompatible Gradle Versions
2Warning CommitPrefEdits: Missing commit() on SharedPreference editor
1Warning InconsistentLayout: Inconsistent Layouts
1Warning Registered: Class is not registered in the manifest
3Warning SimpleDateFormat: Implied locale in date format
3Error AppCompatResource: Menu namespace
4Warning InflateParams: Layout Inflation without a Parent
1Warning ManifestOrder: Incorrect order of elements in manifest
5Warning GradleDependency: Obsolete Gradle Dependency
2Warning SpUsage: Using dp instead of sp for text sizes
Correctness:Messages
7Error MissingTranslation: Incomplete translation
Security
1Warning AllowBackup: AllowBackup/FullBackupContent Problems
Performance
6Warning Recycle: Missing recycle() calls
1Warning ObsoleteLayoutParam: Obsolete layout params
3Warning Overdraw: Overdraw: Painting regions more than once
18Warning UnusedResources: Unused resources
Usability:Typography
3Warning TypographyEllipsis: Ellipsis string can be replaced with ellipsis character
Usability:Icons
1Warning IconColors: Icon colors do not follow the recommended visual style
6Warning IconLocation: Image defined in density-independent drawable folder
Usability
2Warning ButtonStyle: Button should be borderless
1Warning GoogleAppIndexingWarning: Missing support for Firebase App Indexing
1Warning AlwaysShowAction: Usage of showAsAction=always
Accessibility
1Warning ClickableViewAccessibility: Accessibility in Custom Views
6Warning ContentDescription: Image without contentDescription
Internationalization
10Warning SetTextI18n: TextView Internationalization
1Warning HardcodedText: Hardcoded text
Internationalization:Bidirectional Text
18Warning RtlHardcoded: Using left/right instead of start/end attributes
Disabled Checks (16)

Correctness
OnClick: onClick method does not exist
../../src/main/res/layout/content_detail.xml:88: Corresponding method handler 'public void changeRating(android.view.View)' not found
  85             style="?android:attr/ratingBarStyleSmall"
  86             android:numStars="5"
  87             android:rating="3.5"
  88 			android:onClick="changeRating" />
  89 
  90     </RelativeLayout>
Priority: 10 / 10
Category: Correctness
Severity: Error
Explanation: onClick method does not exist.
The onClick attribute value should be the name of a method in this View's context to invoke when the view is clicked. This name must correspond to a public method that takes exactly one parameter of type View.

Must be a string value, using '\;' to escape characters such as '\n' or '\uxxxx' for a unicode character.

More info:

To suppress this error, use the issue id "OnClick" as explained in the Suppressing Warnings and Errors section.
GradleCompatible: Incompatible Gradle Versions
../../build.gradle:30: This support library should not use a different version (24) than the compileSdkVersion (25)
  27     compile 'com.android.support:appcompat-v7:25.1.0'
  28     compile 'com.android.support:design:25.1.0'
  29     compile 'com.squareup.picasso:picasso:2.5.2'
  30     compile 'com.android.support:cardview-v7:24.0.0-beta1'
  31     compile 'com.android.support:recyclerview-v7:24.0.0-beta1'
  32 	compile 'de.hdodenhof:circleimageview:2.0.0'
../../build.gradle:31: This support library should not use a different version (24) than the compileSdkVersion (25)
  28     compile 'com.android.support:design:25.1.0'
  29     compile 'com.squareup.picasso:picasso:2.5.2'
  30     compile 'com.android.support:cardview-v7:24.0.0-beta1'
  31     compile 'com.android.support:recyclerview-v7:24.0.0-beta1'
  32 	compile 'de.hdodenhof:circleimageview:2.0.0'
  33     testCompile 'junit:junit:4.12'
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 8 / 10
Category: Correctness
Severity: Error
Explanation: Incompatible Gradle Versions.
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)

More info:

To suppress this error, use the issue id "GradleCompatible" as explained in the Suppressing Warnings and Errors section.
CommitPrefEdits: Missing commit() on SharedPreference editor
../../src/main/java/org/notabug/lifeuser/moviedb/ListActivity.java:315: Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background
 312 				// Temporary fix until I find a way to handle this efficiently.
 313 				prefsEditor.putString(websiteData.getString("id"),
 314 						websiteData.getString("name"));
 315 				prefsEditor.commit();
 316 				}
 317 
../../src/main/java/org/notabug/lifeuser/moviedb/MovieActivity.java:379: Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background
 376 				// Temporary fix until I find a way to handle this efficiently.
 377 				prefsEditor.putString(websiteData.getString("id"),
 378 						websiteData.getString("name"));
 379 				prefsEditor.commit();
 380 				}
 381 
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 6 / 10
Category: Correctness
Severity: Warning
Explanation: Missing commit() on SharedPreference editor.
After calling edit() on a SharedPreference, you must call commit() or apply() on the editor to save the results.

More info:

To suppress this error, use the issue id "CommitPrefEdits" as explained in the Suppressing Warnings and Errors section.
InconsistentLayout: Inconsistent Layouts
../intermediates/exploded-aar/com.android.support/appcompat-v7/25.1.0/res/layout/notification_template_custom_big.xml:26: The id "icon" in layout "notification_template_custom_big" is missing from the following layout configurations: layout-v21 (present in layout, layout-v16)
  23     android:orientation="horizontal"
  24     android:paddingRight="12dp"
  25     android:paddingEnd="12dp">
  26     <ImageView android:id="@+id/icon"
  27         android:layout_width="@dimen/notification_large_icon_width"
  28         android:layout_height="@dimen/notification_large_icon_height"
Priority: 6 / 10
Category: Correctness
Severity: Warning
Explanation: Inconsistent Layouts.
This check ensures that a layout resource which is defined in multiple resource folders, specifies the same set of widgets.

This finds cases where you have accidentally forgotten to add a widget to all variations of the layout, which could result in a runtime crash for some resource configurations when a findViewById() fails.

There are cases where this is intentional. For example, you may have a dedicated large tablet layout which adds some extra widgets that are not present in the phone version of the layout. As long as the code accessing the layout resource is careful to handle this properly, it is valid. In that case, you can suppress this lint check for the given extra or missing views, or the whole layout

More info:

To suppress this error, use the issue id "InconsistentLayout" as explained in the Suppressing Warnings and Errors section.
Registered: Class is not registered in the manifest
../../src/main/java/org/notabug/lifeuser/moviedb/BaseActivity.java:44: The <activity> org.notabug.lifeuser.moviedb.BaseActivity is not registered in the manifest
  41 * nnuuneoi's article was a great help by programming the permissions for API 23 and higher.
  42 * Article: https://inthecheesefactory.com/blog/things-you-need-to-know-about-android-m-permission-developer-edition
  43 */
  44 public class BaseActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
  45 
  46 	// Variables used for searching
Priority: 6 / 10
Category: Correctness
Severity: Warning
Explanation: Class is not registered in the manifest.
Activities, services and content providers should be registered in the AndroidManifest.xml file using <activity>, <service> and <provider> tags.

If your activity is simply a parent class intended to be subclassed by other "real" activities, make it an abstract class.

More info: http://developer.android.com/guide/topics/manifest/manifest-intro.html

To suppress this error, use the issue id "Registered" as explained in the Suppressing Warnings and Errors section.
SimpleDateFormat: Implied locale in date format
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:678: To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates.
 675 
 676 		DatePicker datePicker = (DatePicker) dialogView
 677 				.findViewById(R.id.movieDatePicker);
 678 		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("d MMMM yy");
 679 		TextView movieDateChangerExplanation = (TextView) dialogView.findViewById(
 680 				R.id.movieDateChangerExplanation);
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:734: To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates.
 731 				// Get the date from the DatePicker.
 732 				DatePicker datePicker = (DatePicker) dialogView
 733 						.findViewById(R.id.movieDatePicker);
 734 				SimpleDateFormat dateformat = new SimpleDateFormat("d MMMM yy");
 735 				String dateFormat = dateformat.format(new Date(datePicker.getYear(),
 736 						datePicker.getMonth(), datePicker.getDayOfMonth()));
../../src/main/java/org/notabug/lifeuser/moviedb/MovieDatabaseHelper.java:81: To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates.
  78 
  79 			if(path.canWrite()) {
  80 				// Create a simple date format to add to the filename.
  81 				SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd-MM-yy-kk-mm");
  82 
  83 				String currentDBPath = "/data/" + context.getPackageName() +
Priority: 6 / 10
Category: Correctness
Severity: Warning
Explanation: Implied locale in date format.
Almost all callers should use getDateInstance(), getDateTimeInstance(), or getTimeInstance() to get a ready-made instance of SimpleDateFormat suitable for the user's locale. The main reason you'd create an instance this class directly is because you need to format/parse a specific machine-readable format, in which case you almost certainly want to explicitly ask for US to ensure that you get ASCII digits (rather than, say, Arabic digits).

Therefore, you should either use the form of the SimpleDateFormat constructor where you pass in an explicit locale, such as Locale.US, or use one of the get instance methods, or suppress this error if really know what you are doing.

More info: http://developer.android.com/reference/java/text/SimpleDateFormat.html

To suppress this error, use the issue id "SimpleDateFormat" as explained in the Suppressing Warnings and Errors section.
AppCompatResource: Menu namespace
../../src/main/res/menu/database_menu.xml:8: Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto"
   5 	<item 
   6 		android:id="@+id/action_export"
   7 		android:orderInCategory="1"
   8 		android:showAsAction="never"
   9 		app:showAsAction="never"
  10 		android:title="@string/action_export" />
../../src/main/res/menu/database_menu.xml:15: Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto"
  12 	<item
  13 		android:id="@+id/action_import"
  14 		android:orderInCategory="2"
  15 		android:showAsAction="never"
  16 		app:showAsAction="never"
  17 		android:title="@string/action_import" />
../../src/main/res/menu/options_menu.xml:8: Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto"
   5 	<item 
   6 		android:id="@+id/action_search"
   7 		android:orderInCategory="100"
   8 		android:showAsAction="always"
   9 		app:showAsAction="always"
  10 		android:icon="@drawable/ic_search"
Priority: 5 / 10
Category: Correctness
Severity: Error
Explanation: Menu namespace.
When using the appcompat library, menu resources should refer to the showAsAction in the app: namespace, not the android: namespace.

Similarly, when not using the appcompat library, you should be using the android:showAsAction attribute.

More info:

To suppress this error, use the issue id "AppCompatResource" as explained in the Suppressing Warnings and Errors section.
InflateParams: Layout Inflation without a Parent
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:401: Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
 398 			final AlertDialog.Builder ratingDialog = new AlertDialog.Builder(this);
 399 			ratingDialog.setTitle("Movie Rating:");
 400 			LayoutInflater inflater = getLayoutInflater();
 401 			final View dialogView = inflater.inflate(R.layout.ratingbar, null);
 402 			ratingDialog.setView(dialogView);
 403 
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:605: Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
 602 						ratingDialog.setTitle(getString(R.string.change_movie_rating));
 603 						LayoutInflater inflater = getLayoutInflater();
 604 						final View dialogView = inflater.inflate(
 605 								R.layout.ratingbar, null);
 606 						ratingDialog.setView(dialogView);
 607 
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:666: Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
 663 				R.style.AppTheme));
 664 
 665 		LayoutInflater inflater = getLayoutInflater();
 666 		final View dialogView = inflater.inflate(R.layout.date_change_dialog, null);
 667 		dateDialog.setView(dialogView);
 668 
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:781: Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
 778 
 779 		LayoutInflater inflater = getLayoutInflater();
 780 		final View dialogView = inflater.inflate(
 781 				R.layout.rewatch_change_dialog, null);
 782 		rewatchedDialog.setView(dialogView);
 783 
Priority: 5 / 10
Category: Correctness
Severity: Warning
Explanation: Layout Inflation without a Parent.
When inflating a layout, avoid passing in null as the parent view, since otherwise any layout parameters on the root of the inflated layout will be ignored.

More info: http://www.doubleencore.com/2013/05/layout-inflation-as-intended

To suppress this error, use the issue id "InflateParams" as explained in the Suppressing Warnings and Errors section.
ManifestOrder: Incorrect order of elements in manifest
../../src/main/AndroidManifest.xml:34: <uses-permission> tag appears after <application> tag
  31 			android:theme="@style/AppTheme.NoActionBar" />
  32     </application>
  33 
  34     <uses-permission android:name="android.permission.INTERNET" />
  35 	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  36 
Priority: 5 / 10
Category: Correctness
Severity: Warning
Explanation: Incorrect order of elements in manifest.
The <application> tag should appear after the elements which declare which version you need, which features you need, which libraries you need, and so on. In the past there have been subtle bugs (such as themes not getting applied correctly) when the <application> tag appears before some of these other elements, so it's best to order your manifest in the logical dependency order.

More info:

To suppress this error, use the issue id "ManifestOrder" as explained in the Suppressing Warnings and Errors section.
GradleDependency: Obsolete Gradle Dependency
../../build.gradle:5: Old buildToolsVersion 25.0.2; recommended version is 25.0.3 or later
   2 
   3 android {
   4     compileSdkVersion 25
   5     buildToolsVersion "25.0.2"
   6     defaultConfig {
   7         applicationId "org.notabug.lifeuser.moviedb"
../../build.gradle:27: A newer version of com.android.support:appcompat-v7 than 25.1.0 is available: 25.3.1
  24     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  25         exclude group: 'com.android.support', module: 'support-annotations'
  26     })
  27     compile 'com.android.support:appcompat-v7:25.1.0'
  28     compile 'com.android.support:design:25.1.0'
  29     compile 'com.squareup.picasso:picasso:2.5.2'
../../build.gradle:28: A newer version of com.android.support:design than 25.1.0 is available: 25.3.1
  25         exclude group: 'com.android.support', module: 'support-annotations'
  26     })
  27     compile 'com.android.support:appcompat-v7:25.1.0'
  28     compile 'com.android.support:design:25.1.0'
  29     compile 'com.squareup.picasso:picasso:2.5.2'
  30     compile 'com.android.support:cardview-v7:24.0.0-beta1'
../../build.gradle:30: A newer version of com.android.support:cardview-v7 than 24.0.0-beta1 is available: 25.3.1
  27     compile 'com.android.support:appcompat-v7:25.1.0'
  28     compile 'com.android.support:design:25.1.0'
  29     compile 'com.squareup.picasso:picasso:2.5.2'
  30     compile 'com.android.support:cardview-v7:24.0.0-beta1'
  31     compile 'com.android.support:recyclerview-v7:24.0.0-beta1'
  32 	compile 'de.hdodenhof:circleimageview:2.0.0'
../../build.gradle:31: A newer version of com.android.support:recyclerview-v7 than 24.0.0-beta1 is available: 25.3.1
  28     compile 'com.android.support:design:25.1.0'
  29     compile 'com.squareup.picasso:picasso:2.5.2'
  30     compile 'com.android.support:cardview-v7:24.0.0-beta1'
  31     compile 'com.android.support:recyclerview-v7:24.0.0-beta1'
  32 	compile 'de.hdodenhof:circleimageview:2.0.0'
  33     testCompile 'junit:junit:4.12'
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 4 / 10
Category: Correctness
Severity: Warning
Explanation: Obsolete Gradle Dependency.
This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find.

More info:

To suppress this error, use the issue id "GradleDependency" as explained in the Suppressing Warnings and Errors section.
SpUsage: Using dp instead of sp for text sizes
../../src/main/res/layout/content_cast.xml:42: Should use "sp" instead of "dp" for text sizes
  39             android:layout_width="match_parent"
  40             android:layout_height="wrap_content"
  41             android:layout_marginTop="10dp"
  42             android:textSize="25dp"
  43             android:textStyle="bold"
  44             android:textColor="@color/colorBlack" />
../../src/main/res/layout/content_detail.xml:40: Should use "sp" instead of "dp" for text sizes
  37             android:layout_width="match_parent"
  38             android:layout_height="wrap_content"
  39             android:layout_toRightOf="@id/moviePoster"
  40             android:textSize="25dp"
  41             android:textStyle="bold"
  42             android:textColor="@color/colorBlack" />
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 3 / 10
Category: Correctness
Severity: Warning
Explanation: Using dp instead of sp for text sizes.
When setting text sizes, you should normally use sp, or "scale-independent pixels". This is like the dp unit, but it is also scaled by the user's font size preference. It is recommend you use this unit when specifying font sizes, so they will be adjusted for both the screen density and the user's preference.

There are cases where you might need to use dp; typically this happens when the text is in a container with a specific dp-size. This will prevent the text from spilling outside the container. Note however that this means that the user's font size settings are not respected, so consider adjusting the layout itself to be more flexible.

More info: http://developer.android.com/training/multiscreen/screendensities.html

To suppress this error, use the issue id "SpUsage" as explained in the Suppressing Warnings and Errors section.
Correctness:Messages
MissingTranslation: Incomplete translation
../../src/main/res/values/strings.xml:14: "no_permission_dialog_message" is not translated in "ja" (Japanese)
  11 	<string name="title_activity_list_watched">Watched List</string>
  12 
  13 	<!-- BaseActivity -->
  14 	<string name="no_permission_dialog_message">You need to allow write access to the external storage</string>
  15 	<string name="no_permission_dialog_ok">OK</string>
  16 	<string name="no_permission_dialog_cancel">Cancel</string>
../../src/main/res/values/strings.xml:56: "write_to_external_storage_as" is not translated in "ja" (Japanese)
  53 	<string name="change_rewatched_cancel">Cancel</string>
  54 
  55 	<!-- MovieDatabaseHelper -->
  56 	<string name="write_to_external_storage_as">"Saved as: "</string>
  57 	<string name="write_to_external_storage_failed">It\'s not possible to write to the external storage.</string>
  58 	<string name="choose_file">Choose which file to import:</string>
../../src/main/res/values/strings.xml:57: "write_to_external_storage_failed" is not translated in "ja" (Japanese)
  54 
  55 	<!-- MovieDatabaseHelper -->
  56 	<string name="write_to_external_storage_as">"Saved as: "</string>
  57 	<string name="write_to_external_storage_failed">It\'s not possible to write to the external storage.</string>
  58 	<string name="choose_file">Choose which file to import:</string>
  59 	<string name="import_cancel">Cancel</string>
../../src/main/res/values/strings.xml:58: "choose_file" is not translated in "ja" (Japanese)
  55 	<!-- MovieDatabaseHelper -->
  56 	<string name="write_to_external_storage_as">"Saved as: "</string>
  57 	<string name="write_to_external_storage_failed">It\'s not possible to write to the external storage.</string>
  58 	<string name="choose_file">Choose which file to import:</string>
  59 	<string name="import_cancel">Cancel</string>
  60 
../../src/main/res/values/strings.xml:59: "import_cancel" is not translated in "ja" (Japanese)
  56 	<string name="write_to_external_storage_as">"Saved as: "</string>
  57 	<string name="write_to_external_storage_failed">It\'s not possible to write to the external storage.</string>
  58 	<string name="choose_file">Choose which file to import:</string>
  59 	<string name="import_cancel">Cancel</string>
  60 
  61 	<!-- search_bar -->
../../src/main/res/values/strings.xml:65: "action_export" is not translated in "ja" (Japanese)
  62 	<string name="hint_search">Search...</string>
  63 
  64 	<!-- database_menu -->
  65 	<string name="action_export">Export</string>
  66 	<string name="action_import">Import</string>
  67 
../../src/main/res/values/strings.xml:66: "action_import" is not translated in "ja" (Japanese)
  63 
  64 	<!-- database_menu -->
  65 	<string name="action_export">Export</string>
  66 	<string name="action_import">Import</string>
  67 
  68 	<!-- activity_default_drawer -->
Note: This issue has an associated quickfix operation in Eclipse/ADT
Priority: 8 / 10
Category: Correctness:Messages
Severity: Fatal
Explanation: Incomplete translation.
If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.

If the string should not be translated, you can add the attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute.

By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS.

You can tell lint (and other tools) which language is the default language in your res/values/ folder by specifying tools:locale="languageCode" for the root <resources> element in your resource file. (The tools prefix refers to the namespace declaration http://schemas.android.com/tools.)

More info:

To suppress this error, use the issue id "MissingTranslation" as explained in the Suppressing Warnings and Errors section.
Security
AllowBackup: AllowBackup/FullBackupContent Problems
../../src/main/AndroidManifest.xml:5: On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute android:fullBackupContent to specify an @xml resource which configures which files to backup. More info: https://developer.android.com/training/backup/autosyncapi.html
   2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
   3     package="org.notabug.lifeuser.moviedb">
   4 
   5     <application
   6         android:allowBackup="true"
   7         android:icon="@mipmap/ic_launcher"
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ & Eclipse/ADT
Priority: 3 / 10
Category: Security
Severity: Warning
Explanation: AllowBackup/FullBackupContent Problems.
The allowBackup attribute determines if an application's data can be backed up and restored. It is documented at http://developer.android.com/reference/android/R.attr.html#allowBackup

By default, this flag is set to true. When this flag is set to true, application data can be backed up and restored by the user using adb backup and adb restore.

This may have security consequences for an application. adb backup allows users who have enabled USB debugging to copy application data off of the device. Once backed up, all application data can be read by the user. adb restore allows creation of application data from a source specified by the user. Following a restore, applications should not assume that the data, file permissions, and directory permissions were created by the application itself.

Setting allowBackup="false" opts an application out of both backup and restore.

To fix this warning, decide whether your application should support backup, and explicitly set android:allowBackup=(true|false)".

If not set to false, and if targeting API 23 or later, lint will also warn that you should set android:fullBackupContent to configure auto backup.

More info:

To suppress this error, use the issue id "AllowBackup" as explained in the Suppressing Warnings and Errors section.
Performance
Recycle: Missing recycle() calls
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:284: This Cursor should be freed up after use with #close()
 281 
 282 			databaseHelper.onCreate(database);
 283 
 284 			Cursor cursor = database.rawQuery("SELECT * FROM " + 
 285 					MovieDatabaseHelper.TABLE_MOVIES + 
 286 					" WHERE " + MovieDatabaseHelper.COLUMN_MOVIES_ID + 
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:391: This Cursor should be freed up after use with #close()
 388 		databaseHelper.onCreate(database);
 389 
 390 		// Check if the movie is already in the database.
 391 		Cursor cursor = database.rawQuery("SELECT * FROM " + 
 392 				MovieDatabaseHelper.TABLE_MOVIES + 
 393 				" WHERE " + MovieDatabaseHelper.COLUMN_MOVIES_ID + 
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:592: This Cursor should be freed up after use with #close()
 589 					database = databaseHelper.getWritableDatabase();
 590 
 591 					databaseHelper.onCreate(database);
 592 					Cursor cursor = database.rawQuery("SELECT * FROM " + 
 593 							MovieDatabaseHelper.TABLE_MOVIES + 
 594 							" WHERE " + MovieDatabaseHelper.COLUMN_MOVIES_ID + 
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:670: This Cursor should be freed up after use with #close()
 667 		dateDialog.setView(dialogView);
 668 
 669 		// Set the date for the DatePicker & set the dialog title
 670         Cursor cursor = database.rawQuery("SELECT * FROM " +
 671 				MovieDatabaseHelper.TABLE_MOVIES + " WHERE " +
 672 				MovieDatabaseHelper.COLUMN_MOVIES_ID + "='" +
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:790: This Cursor should be freed up after use with #close()
 787 		numberPicker.setMaxValue(9999); // Only set because it is mandatory.
 788 
 789 		// Set the default value
 790         Cursor cursor = database.rawQuery("SELECT * FROM " + 
 791 				MovieDatabaseHelper.TABLE_MOVIES + " WHERE " + 
 792 				MovieDatabaseHelper.COLUMN_MOVIES_ID + "='" + movieId + 
../../src/main/java/org/notabug/lifeuser/moviedb/ListActivity.java:132: This Cursor should be freed up after use with #close()
 129 
 130 				// Check if it is a movie or a series.
 131 				try {
 132 					Cursor cursor = database.rawQuery("SELECT * FROM " +
 133 							databaseHelper.TABLE_MOVIES + " WHERE " +
 134 							databaseHelper.COLUMN_MOVIES_ID + "=" +
Priority: 7 / 10
Category: Performance
Severity: Warning
Explanation: Missing recycle() calls.
Many resources, such as TypedArrays, VelocityTrackers, etc., should be recycled (with a recycle() call) after use. This lint check looks for missing recycle() calls.

More info:

To suppress this error, use the issue id "Recycle" as explained in the Suppressing Warnings and Errors section.
ObsoleteLayoutParam: Obsolete layout params
../../src/main/res/layout/date_change_dialog.xml:19: Invalid layout param in a LinearLayout: layout_below
  16 		android:id="@+id/movieDateChangerExplanation"
  17 		android:layout_width="wrap_content"
  18 		android:layout_height="wrap_content"
  19 		android:layout_below="@id/movieDatePicker"
  20 		android:layout_marginLeft="10dp" />
  21 </LinearLayout>
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ & Eclipse/ADT
Priority: 6 / 10
Category: Performance
Severity: Warning
Explanation: Obsolete layout params.
The given layout_param is not defined for the given layout, meaning it has no effect. This usually happens when you change the parent layout or move view code around without updating the layout params. This will cause useless attribute processing at runtime, and is misleading for others reading the layout so the parameter should be removed.

More info:

To suppress this error, use the issue id "ObsoleteLayoutParam" as explained in the Suppressing Warnings and Errors section.
Overdraw: Overdraw: Painting regions more than once
../../src/main/res/layout/content_cast.xml:7: Possible overdraw: Root element paints background #FFFFFF with a theme that also paints a background (inferred theme is @style/AppTheme_NoActionBar)
   4     xmlns:tools="http://schemas.android.com/tools"
   5     android:layout_width="match_parent"
   6     android:layout_height="match_parent"
   7 	android:background="#FFFFFF"
   8     app:layout_behavior="@string/appbar_scrolling_view_behavior"
   9     tools:context="org.notabug.lifeuser.moviedb.CastActivity"
../../src/main/res/layout/content_detail.xml:9: Possible overdraw: Root element paints background #FFFFFF with a theme that also paints a background (inferred theme is @style/AppTheme_NoActionBar)
   6     android:layout_height="match_parent"
   7 	android:focusable="true"
   8 	android:focusableInTouchMode="true"
   9 	android:background="#FFFFFF"
  10     app:layout_behavior="@string/appbar_scrolling_view_behavior"
  11     tools:context="org.notabug.lifeuser.moviedb.DetailActivity"
../../src/main/res/layout/content_list.xml:10: Possible overdraw: Root element paints background @color/colorLightGrey with a theme that also paints a background (inferred theme is @style/AppTheme_NoActionBar)
   7     app:layout_behavior="@string/appbar_scrolling_view_behavior"
   8     tools:context="org.notabug.lifeuser.moviedb.ListActivity"
   9     tools:showIn="@layout/app_bar_list"
  10     android:background="@color/colorLightGrey">
  11 
  12     <ListView
Priority: 3 / 10
Category: Performance
Severity: Warning
Explanation: Overdraw: Painting regions more than once.
If you set a background drawable on a root view, then you should use a custom theme where the theme background is null. Otherwise, the theme background will be painted first, only to have your custom background completely cover it; this is called "overdraw".

NOTE: This detector relies on figuring out which layouts are associated with which activities based on scanning the Java code, and it's currently doing that using an inexact pattern matching algorithm. Therefore, it can incorrectly conclude which activity the layout is associated with and then wrongly complain that a background-theme is hidden.

If you want your custom background on multiple pages, then you should consider making a custom theme with your custom background and just using that theme instead of a root element background.

Of course it's possible that your custom drawable is translucent and you want it to be mixed with the background. However, you will get better performance if you pre-mix the background with your drawable and use that resulting image or color as a custom theme background instead.

More info:

To suppress this error, use the issue id "Overdraw" as explained in the Suppressing Warnings and Errors section.
UnusedResources: Unused resources
../../src/main/res/menu/cast.xml:2: The resource R.menu.cast appears to be unused
   1 <?xml version="1.0" encoding="utf-8"?>
   2 <menu xmlns:android="http://schemas.android.com/apk/res/android"
   3     xmlns:app="http://schemas.android.com/apk/res-auto">
   4     <item
../../src/main/res/values/colors.xml:9: The resource R.color.colorWhite appears to be unused
   6     <color name="colorAccent">#FF4081</color>
   7 
   8     <!-- Custom colors -->
   9     <color name="colorWhite">#FFFFFF</color>
  10     <color name="colorLightGrey">#F5F5F5</color>
  11     <color name="colorLightGreyShadow">#E9E9E9</color>
../../src/main/res/values/colors.xml:13: The resource R.color.colorYellow appears to be unused
  10     <color name="colorLightGrey">#F5F5F5</color>
  11     <color name="colorLightGreyShadow">#E9E9E9</color>
  12     <color name="colorBlack">#000000</color>
  13     <color name="colorYellow">#ffff00</color>
  14 	<color name="colorGreen">#009900</color>
  15 
../../src/main/res/values/dimens.xml:3: The resource R.dimen.nav_header_vertical_spacing appears to be unused
   1 <resources>
   2     <!-- Default screen margins, per the Android Design guidelines. -->
   3     <dimen name="nav_header_vertical_spacing">16dp</dimen>
   4     <dimen name="nav_header_height">160dp</dimen>
   5     <!-- Default screen margins, per the Android Design guidelines. -->
../../src/main/res/values/dimens.xml:8: The resource R.dimen.fab_margin appears to be unused
   5     <!-- Default screen margins, per the Android Design guidelines. -->
   6     <dimen name="activity_horizontal_margin">16dp</dimen>
   7     <dimen name="activity_vertical_margin">16dp</dimen>
   8     <dimen name="fab_margin">16dp</dimen>
   9 </resources>
  10 
Priority: 3 / 10
Category: Performance
Severity: Warning
Explanation: Unused resources.
Unused resources make applications larger and slow down builds.

More info:

To suppress this error, use the issue id "UnusedResources" as explained in the Suppressing Warnings and Errors section.
Usability:Typography
TypographyEllipsis: Ellipsis string can be replaced with ellipsis character
../../src/main/res/values-ja/strings.xml:52: Replace "..." with ellipsis character (…, &#8230;) ?
  49 	<string name="change_rewatched_cancel">キャンセル</string>
  50 
  51 	<!-- search_bar -->
  52 	<string name="hint_search">検索...</string>
  53 
  54 	<!-- activity_default_drawer -->
../../src/main/res/values-nl/strings.xml:59: Replace "..." with ellipsis character (…, &#8230;) ?
  56 	<string name="import_cancel">Annuleren</string>
  57 
  58 	<!-- search_bar -->
  59 	<string name="hint_search">Zoeken...</string>
  60 
  61 	<!-- database_menu -->
../../src/main/res/values/strings.xml:62: Replace "..." with ellipsis character (…, &#8230;) ?
  59 	<string name="import_cancel">Cancel</string>
  60 
  61 	<!-- search_bar -->
  62 	<string name="hint_search">Search...</string>
  63 
  64 	<!-- database_menu -->
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ & Eclipse/ADT
Priority: 5 / 10
Category: Usability:Typography
Severity: Warning
Explanation: Ellipsis string can be replaced with ellipsis character.
You can replace the string "..." with a dedicated ellipsis character, ellipsis character (…, &#8230;). This can help make the text more readable.

More info: http://en.wikipedia.org/wiki/Ellipsis

To suppress this error, use the issue id "TypographyEllipsis" as explained in the Suppressing Warnings and Errors section.
Usability:Icons
IconColors: Icon colors do not follow the recommended visual style
../../src/main/res/drawable/ic_menu_tmdb.png: Action Bar icons should use a single gray color (#333333 for light themes (with 60%/30% opacity for enabled/disabled), and #FFFFFF with opacity 80%/30% for dark themes
Priority: 6 / 10
Category: Usability:Icons
Severity: Warning
Explanation: Icon colors do not follow the recommended visual style.
Notification icons and Action Bar icons should only white and shades of gray. See the Android Design Guide for more details. Note that the way Lint decides whether an icon is an action bar icon or a notification icon is based on the filename prefix: ic_menu_ for action bar icons, ic_stat_ for notification icons etc. These correspond to the naming conventions documented in http://developer.android.com/guide/practices/ui_guidelines/icon_design.html

More info: http://developer.android.com/design/style/iconography.html

To suppress this error, use the issue id "IconColors" as explained in the Suppressing Warnings and Errors section.
IconLocation: Image defined in density-independent drawable folder
../../src/main/res/drawable/ic_menu_popular.png: Found bitmap drawable res/drawable/ic_menu_popular.png in densityless folder
../../src/main/res/drawable/ic_menu_recommended.png: Found bitmap drawable res/drawable/ic_menu_recommended.png in densityless folder
../../src/main/res/drawable/ic_menu_settings.png: Found bitmap drawable res/drawable/ic_menu_settings.png in densityless folder
../../src/main/res/drawable/ic_menu_tmdb.png: Found bitmap drawable res/drawable/ic_menu_tmdb.png in densityless folder
../../src/main/res/drawable/ic_menu_to_watch.png: Found bitmap drawable res/drawable/ic_menu_to_watch.png in densityless folder
../../src/main/res/drawable/ic_menu_watched.png: Found bitmap drawable res/drawable/ic_menu_watched.png in densityless folder
Priority: 5 / 10
Category: Usability:Icons
Severity: Warning
Explanation: Image defined in density-independent drawable folder.
The res/drawable folder is intended for density-independent graphics such as shapes defined in XML. For bitmaps, move it to drawable-mdpi and consider providing higher and lower resolution versions in drawable-ldpi, drawable-hdpi and drawable-xhdpi. If the icon really is density independent (for example a solid color) you can place it in drawable-nodpi.

More info: http://developer.android.com/guide/practices/screens_support.html

To suppress this error, use the issue id "IconLocation" as explained in the Suppressing Warnings and Errors section.
Usability
ButtonStyle: Button should be borderless
../../src/main/res/layout/content_detail.xml:115: Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?android:attr/buttonBarStyle on the parent)
 112         android:layout_below="@id/movieDescription"
 113         android:gravity="center_horizontal">
 114 
 115         <Button
 116             android:id="@+id/watchButton"
 117             android:layout_width="wrap_content"
../../src/main/res/layout/content_detail.xml:123: Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?android:attr/buttonBarStyle on the parent)
 120             android:text="@string/watch_list"
 121             android:onClick="addMovieToToWatchList"/>
 122 
 123         <Button
 124             android:id="@+id/watchedButton"
 125             android:layout_width="wrap_content"
Priority: 5 / 10
Category: Usability
Severity: Warning
Explanation: Button should be borderless.
Button bars typically use a borderless style for the buttons. Set the style="?android:attr/buttonBarButtonStyle" attribute on each of the buttons, and set style="?android:attr/buttonBarStyle" on the parent layout

More info: http://developer.android.com/design/building-blocks/buttons.html

To suppress this error, use the issue id "ButtonStyle" as explained in the Suppressing Warnings and Errors section.
GoogleAppIndexingWarning: Missing support for Firebase App Indexing
../../src/main/AndroidManifest.xml:5: App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details.
   2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
   3     package="org.notabug.lifeuser.moviedb">
   4 
   5     <application
   6         android:allowBackup="true"
   7         android:icon="@mipmap/ic_launcher"
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 5 / 10
Category: Usability
Severity: Warning
Explanation: Missing support for Firebase App Indexing.
Adds URLs to get your app into the Google index, to get installs and traffic to your app from Google Search.

More info: https://g.co/AppIndexing/AndroidStudio

To suppress this error, use the issue id "GoogleAppIndexingWarning" as explained in the Suppressing Warnings and Errors section.
AlwaysShowAction: Usage of showAsAction=always
../../src/main/res/menu/options_menu.xml:8: Prefer "ifRoom" instead of "always"
   5 	<item 
   6 		android:id="@+id/action_search"
   7 		android:orderInCategory="100"
   8 		android:showAsAction="always"
   9 		app:showAsAction="always"
  10 		android:icon="@drawable/ic_search"


Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 3 / 10
Category: Usability
Severity: Warning
Explanation: Usage of showAsAction=always
Using showAsAction="always" in menu XML, or MenuItem.SHOW_AS_ACTION_ALWAYS in Java code is usually a deviation from the user interface style guide.Use ifRoom or the corresponding MenuItem.SHOW_AS_ACTION_IF_ROOM instead.

If always is used sparingly there are usually no problems and behavior is roughly equivalent to ifRoom but with preference over other ifRoom items. Using it more than twice in the same menu is a bad idea.

This check looks for menu XML files that contain more than two always actions, or some always actions and no ifRoom actions. In Java code, it looks for projects that contain references to MenuItem.SHOW_AS_ACTION_ALWAYS and no references to MenuItem.SHOW_AS_ACTION_IF_ROOM.

More info: http://developer.android.com/design/patterns/actionbar.html

To suppress this error, use the issue id "AlwaysShowAction" as explained in the Suppressing Warnings and Errors section.
Accessibility
ClickableViewAccessibility: Accessibility in Custom Views
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:584: org/notabug/lifeuser/moviedb/DetailActivity$3#onTouch should call View#performClick when a click is detected
 581 		// Listen to clicks on the RatingBar.
 582 		movieRating.setOnTouchListener(new OnTouchListener() {
 583 			@Override
 584 			public boolean onTouch(View v, MotionEvent event) {
 585 				if(event.getAction() == MotionEvent.ACTION_UP) {
 586 
Priority: 6 / 10
Category: Accessibility
Severity: Warning
Explanation: Accessibility in Custom Views.
If a View that overrides onTouchEvent or uses an OnTouchListener does not also implement performClick and call it when clicks are detected, the View may not handle accessibility actions properly. Logic handling the click actions should ideally be placed in View#performClick as some accessibility services invoke performClick when a click action should occur.

More info:

To suppress this error, use the issue id "ClickableViewAccessibility" as explained in the Suppressing Warnings and Errors section.
ContentDescription: Image without contentDescription
../../src/main/res/layout/activity_movie.xml:30: [Accessibility] Missing contentDescription attribute on image
  27 			android:layout_height="wrap_content"
  28 			android:layout_gravity="bottom"
  29 			android:clickable="true">
  30 			<ImageView
  31 				android:id="@+id/TMDbLogo"
  32 				android:layout_width="32dp"
../../src/main/res/layout/content_cast.xml:12: [Accessibility] Missing contentDescription attribute on image
   9     tools:context="org.notabug.lifeuser.moviedb.CastActivity"
  10     tools:showIn="@layout/app_bar_cast">
  11 
  12     <ImageView
  13         android:id="@+id/actorImage"
  14         android:layout_width="match_parent"
../../src/main/res/layout/content_detail.xml:15: [Accessibility] Missing contentDescription attribute on image
  12     tools:showIn="@layout/app_bar_detail">
  13 	<requestFocus />
  14 
  15     <ImageView
  16         android:id="@+id/movieImage"
  17         android:layout_width="match_parent"
../../src/main/res/layout/content_detail.xml:29: [Accessibility] Missing contentDescription attribute on image
  26         android:layout_below="@id/movieImage"
  27         android:layout_margin="16dp">
  28 
  29         <ImageView
  30             android:id="@+id/moviePoster"
  31             android:layout_width="75dp"
../../src/main/res/layout/movie_card.xml:16: [Accessibility] Missing contentDescription attribute on image
  13             android:layout_height="wrap_content"
  14             android:layout_margin="16dip" >
  15 
  16             <ImageView
  17                 android:id="@+id/movieImage"
  18                 android:layout_width="170dip"
../../src/main/res/layout/movie_cell.xml:8: [Accessibility] Missing contentDescription attribute on image
   5     android:padding="6dip"
   6     android:background="@drawable/custom_card_layout">
   7 
   8     <ImageView
   9         android:id="@+id/icon"
  10         android:layout_width="100dp"
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ & Eclipse/ADT
Priority: 3 / 10
Category: Accessibility
Severity: Warning
Explanation: Image without contentDescription
Non-textual widgets like ImageViews and ImageButtons should use the contentDescription attribute to specify a textual description of the widget such that screen readers and other accessibility tools can adequately describe the user interface.

Note that elements in application screens that are purely decorative and do not provide any content or enable a user action should not have accessibility content descriptions. In this case, just suppress the lint warning with a tools:ignore="ContentDescription" attribute.

Note that for text fields, you should not set both the hint and the contentDescription attributes since the hint will never be shown. Just set the hint. See http://developer.android.com/guide/topics/ui/accessibility/checklist.html#special-cases.

More info:

To suppress this error, use the issue id "ContentDescription" as explained in the Suppressing Warnings and Errors section.
Internationalization
SetTextI18n: TextView Internationalization
../../src/main/java/org/notabug/lifeuser/moviedb/CastActivity.java:158: Do not concatenate text displayed with setText. Use resource string with placeholders.
 155 			// If the place of birth is different in the new dataset, change it.
 156 			if(actorObject.has("place_of_birth") && !actorObject.getString("place_of_birth").equals(actorPlaceOfBirth
 157 						.getText().toString())) {
 158 				actorPlaceOfBirth.setText(getString(R.string.place_of_birth) + actorObject.getString("place_of_birth"));
 159 			}
 160 
../../src/main/java/org/notabug/lifeuser/moviedb/CastActivity.java:164: Do not concatenate text displayed with setText. Use resource string with placeholders.
 161 			// If the birthday is different in the new dataset, change it.
 162 			if(actorObject.has("birthday") && !actorObject.getString("birthday").equals(actorBirthday
 163 						.getText().toString())) {
 164 				actorBirthday.setText(getString(R.string.birthday) + actorObject.getString("birthday"));
 165 			}
 166 
../../src/main/java/org/notabug/lifeuser/moviedb/CastActivity.java:173: Do not concatenate text displayed with setText. Use resource string with placeholders.
 170 					actorBiography.getText().toString())) {
 171 				actorBiography.setText(actorObject.getString("biography"));
 172 				if(actorObject.getString("biography").equals("")) {
 173 					actorBiography.setText(getString(R.string.no_biography) + actorObject.getString("name") + ".");
 174 				}
 175 			}
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:300: Do not concatenate text displayed with setText. Use resource string with placeholders.
 297 				// If the database has a start date, use it, otherwise print unknown.
 298 				if(cursor.getString(cursor.getColumnIndex(
 299 						MovieDatabaseHelper.COLUMN_PERSONAL_START_DATE)) != null) {
 300 					movieStartDate.setText(getString(R.string.start_date) + cursor.getString(
 301 							cursor.getColumnIndex(MovieDatabaseHelper
 302 							.COLUMN_PERSONAL_START_DATE)));
../../src/main/java/org/notabug/lifeuser/moviedb/DetailActivity.java:310: Do not concatenate text displayed with setText. Use resource string with placeholders.
 307 				// If the database has a finish date, use it, otherwise print unknown.
 308 				if(cursor.getString(cursor.getColumnIndex(
 309 						MovieDatabaseHelper.COLUMN_PERSONAL_FINISH_DATE)) != null) {
 310 					movieFinishDate.setText(getString(R.string.finish_date) + cursor.getString(
 311 							cursor.getColumnIndex(MovieDatabaseHelper
 312 							.COLUMN_PERSONAL_FINISH_DATE)));
Priority: 6 / 10
Category: Internationalization
Severity: Warning
Explanation: TextView Internationalization.
When calling TextView#setText
* Never call Number#toString() to format numbers; it will not handle fraction separators and locale-specific digits properly. Consider using String#format with proper format specifications (%d or %f) instead.
* Do not pass a string literal (e.g. "Hello") to display text. Hardcoded text can not be properly translated to other languages. Consider using Android resource strings instead.
* Do not build messages by concatenating text chunks. Such messages can not be properly translated.

More info: http://developer.android.com/guide/topics/resources/localization.html

To suppress this error, use the issue id "SetTextI18n" as explained in the Suppressing Warnings and Errors section.
HardcodedText: Hardcoded text
../../src/main/res/menu/options_menu.xml:11: [I18N] Hardcoded string "Search", should use @string resource
   8 		android:showAsAction="always"
   9 		app:showAsAction="always"
  10 		android:icon="@drawable/ic_search"
  11 		android:title="Search" />
  12 </menu>
  13 
Note: This issue has an associated quickfix operation in Eclipse/ADT
Priority: 5 / 10
Category: Internationalization
Severity: Warning
Explanation: Hardcoded text.
Hardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait)you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup.

More info:

To suppress this error, use the issue id "HardcodedText" as explained in the Suppressing Warnings and Errors section.
Internationalization:Bidirectional Text
RtlHardcoded: Using left/right instead of start/end attributes
../../src/main/res/layout/activity_movie.xml:43: Consider adding android:layout_alignParentEnd="true" to better support right-to-left layouts
  40 				android:id="@+id/footer_item"
  41 				android:layout_width="wrap_content"
  42 				android:layout_height="48dp"
  43 				android:layout_alignParentRight="true"
  44 				android:layout_toRightOf="@id/TMDbLogo"
  45 				android:text="@string/text_tmdb_credits" />
../../src/main/res/layout/activity_movie.xml:44: Consider adding android:layout_toEndOf="@id/TMDbLogo" to better support right-to-left layouts
  41 				android:layout_width="wrap_content"
  42 				android:layout_height="48dp"
  43 				android:layout_alignParentRight="true"
  44 				android:layout_toRightOf="@id/TMDbLogo"
  45 				android:text="@string/text_tmdb_credits" />
  46 		</RelativeLayout>
../../src/main/res/layout/content_detail.xml:33: Consider adding android:layout_marginEnd="10dp" to better support right-to-left layouts
  30             android:id="@+id/moviePoster"
  31             android:layout_width="75dp"
  32             android:layout_height="120dp"
  33             android:layout_marginRight="10dp" />
  34 
  35         <TextView
../../src/main/res/layout/content_detail.xml:39: Consider adding android:layout_toEndOf="@id/moviePoster" to better support right-to-left layouts
  36             android:id="@+id/movieTitle"
  37             android:layout_width="match_parent"
  38             android:layout_height="wrap_content"
  39             android:layout_toRightOf="@id/moviePoster"
  40             android:textSize="25dp"
  41             android:textStyle="bold"
../../src/main/res/layout/content_detail.xml:49: Consider adding android:layout_toEndOf="@id/moviePoster" to better support right-to-left layouts
  46             android:layout_width="match_parent"
  47             android:layout_height="wrap_content"
  48             android:layout_below="@id/movieTitle"
  49             android:layout_toRightOf="@id/moviePoster" />
  50 
  51 		<TextView
Priority: 5 / 10
Category: Internationalization:Bidirectional Text
Severity: Warning
Explanation: Using left/right instead of start/end attributes.
Using Gravity#LEFT and Gravity#RIGHT can lead to problems when a layout is rendered in locales where text flows from right to left. Use Gravity#START and Gravity#END instead. Similarly, in XML gravity and layout_gravity attributes, use start rather than left.

For XML attributes such as paddingLeft and layout_marginLeft, use paddingStart and layout_marginStart. NOTE: If your minSdkVersion is less than 17, you should add both the older left/right attributes as well as the new start/right attributes. On older platforms, where RTL is not supported and the start/right attributes are unknown and therefore ignored, you need the older left/right attributes. There is a separate lint check which catches that type of error.

(Note: For Gravity#LEFT and Gravity#START, you can use these constants even when targeting older platforms, because the start bitmask is a superset of the left bitmask. Therefore, you can use gravity="start" rather than gravity="left|start".)

More info:

To suppress this error, use the issue id "RtlHardcoded" as explained in the Suppressing Warnings and Errors section.
Disabled Checks
The following issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories.

AppLinksAutoVerifyError
Disabled By: Default
Priority: 5 / 10
Category: Correctness
Severity: Error
Explanation: App Links Auto Verification Failure.
Ensures that app links are correctly set and associated with website.

More info: https://g.co/appindexing/applinks

To suppress this error, use the issue id "AppLinksAutoVerifyError" as explained in the Suppressing Warnings and Errors section.
AppLinksAutoVerifyWarning
Disabled By: Default
Priority: 5 / 10
Category: Correctness
Severity: Warning
Explanation: Potential App Links Auto Verification Failure.
Ensures that app links are correctly set and associated with website.

More info: https://g.co/appindexing/applinks

To suppress this error, use the issue id "AppLinksAutoVerifyWarning" as explained in the Suppressing Warnings and Errors section.
BackButton
Disabled By: Default
Priority: 6 / 10
Category: Usability
Severity: Warning
Explanation: Back button.
According to the Android Design Guide,

"Other platforms use an explicit back button with label to allow the user to navigate up the application's hierarchy. Instead, Android uses the main action bar's app icon for hierarchical navigation and the navigation bar's back button for temporal navigation."
This check is not very sophisticated (it just looks for buttons with the label "Back"), so it is disabled by default to not trigger on common scenarios like pairs of Back/Next buttons to paginate through screens.

More info: http://developer.android.com/design/patterns/pure-android.html

To suppress this error, use the issue id "BackButton" as explained in the Suppressing Warnings and Errors section.
EasterEgg
Disabled By: Default
Priority: 6 / 10
Category: Security
Severity: Warning
Explanation: Code contains easter egg.
An "easter egg" is code deliberately hidden in the code, both from potential users and even from other developers. This lint check looks for code which looks like it may be hidden from sight.

More info:

To suppress this error, use the issue id "EasterEgg" as explained in the Suppressing Warnings and Errors section.
FieldGetter
Disabled By: Default
Priority: 4 / 10
Category: Performance
Severity: Warning
Explanation: Using getter instead of field.
Accessing a field within the class that defines a getter for that field is at least 3 times faster than calling the getter. For simple getters that do nothing other than return the field, you might want to just reference the local field directly instead.

NOTE: As of Android 2.3 (Gingerbread), this optimization is performed automatically by Dalvik, so there is no need to change your code; this is only relevant if you are targeting older versions of Android.

More info: http://developer.android.com/guide/practices/design/performance.html#internal_get_set

To suppress this error, use the issue id "FieldGetter" as explained in the Suppressing Warnings and Errors section.
GoogleAppIndexingApiWarning
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Disabled By: Default
Priority: 5 / 10
Category: Usability
Severity: Warning
Explanation: Missing support for Firebase App Indexing Api.
Adds URLs to get your app into the Google index, to get installs and traffic to your app from Google Search.

More info: https://g.co/AppIndexing/AndroidStudio

To suppress this error, use the issue id "GoogleAppIndexingApiWarning" as explained in the Suppressing Warnings and Errors section.
IconExpectedSize
Disabled By: Default
Priority: 5 / 10
Category: Usability:Icons
Severity: Warning
Explanation: Icon has incorrect size.
There are predefined sizes (for each density) for launcher icons. You should follow these conventions to make sure your icons fit in with the overall look of the platform.

More info: http://developer.android.com/design/style/iconography.html

To suppress this error, use the issue id "IconExpectedSize" as explained in the Suppressing Warnings and Errors section.
LogConditional
Disabled By: Default
Priority: 5 / 10
Category: Performance
Severity: Warning
Explanation: Unconditional Logging Calls.
The BuildConfig class (available in Tools 17) provides a constant, "DEBUG", which indicates whether the code is being built in release mode or in debug mode. In release mode, you typically want to strip out all the logging calls. Since the compiler will automatically remove all code which is inside a "if (false)" check, surrounding your logging calls with a check for BuildConfig.DEBUG is a good idea.

If you really intend for the logging to be present in release mode, you can suppress this warning with a @SuppressLint annotation for the intentional logging calls.

More info:

To suppress this error, use the issue id "LogConditional" as explained in the Suppressing Warnings and Errors section.
MangledCRLF
Note: This issue has an associated quickfix operation in Eclipse/ADT
Disabled By: Default
Priority: 2 / 10
Category: Correctness
Severity: Error
Explanation: Mangled file line endings.
On Windows, line endings are typically recorded as carriage return plus newline: \r\n.

This detector looks for invalid line endings with repeated carriage return characters (without newlines). Previous versions of the ADT plugin could accidentally introduce these into the file, and when editing the file, the editor could produce confusing visual artifacts.

More info: https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421

To suppress this error, use the issue id "MangledCRLF" as explained in the Suppressing Warnings and Errors section.
MissingRegistered
Disabled By: Default
Priority: 8 / 10
Category: Correctness
Severity: Error
Explanation: Missing registered class.
If a class is referenced in the manifest or in a layout file, it must also exist in the project (or in one of the libraries included by the project. This check helps uncover typos in registration names, or attempts to rename or move classes without updating the manifest file properly.

More info: http://developer.android.com/guide/topics/manifest/manifest-intro.html

To suppress this error, use the issue id "MissingRegistered" as explained in the Suppressing Warnings and Errors section.
NegativeMargin
Disabled By: Default
Priority: 4 / 10
Category: Usability
Severity: Warning
Explanation: Negative Margins.
Margin values should be positive. Negative values are generally a sign that you are making assumptions about views surrounding the current one, or may be tempted to turn off child clipping to allow a view to escape its parent. Turning off child clipping to do this not only leads to poor graphical performance, it also results in wrong touch event handling since touch events are based strictly on a chain of parent-rect hit tests. Finally, making assumptions about the size of strings can lead to localization problems.

More info:

To suppress this error, use the issue id "NegativeMargin" as explained in the Suppressing Warnings and Errors section.
NewerVersionAvailable
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Disabled By: Default
Priority: 4 / 10
Category: Correctness
Severity: Warning
Explanation: Newer Library Versions Available.
This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the GradleDependency check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also much slower.

More info:

To suppress this error, use the issue id "NewerVersionAvailable" as explained in the Suppressing Warnings and Errors section.
SelectableText
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Disabled By: Default
Priority: 7 / 10
Category: Usability
Severity: Warning
Explanation: Dynamic text should probably be selectable.
If a <TextView> is used to display data, the user might want to copy that data and paste it elsewhere. To allow this, the <TextView> should specify android:textIsSelectable="true".

This lint check looks for TextViews which are likely to be displaying data: views whose text is set dynamically. This value will be ignored on platforms older than API 11, so it is okay to set it regardless of your minSdkVersion.

More info:

To suppress this error, use the issue id "SelectableText" as explained in the Suppressing Warnings and Errors section.
StopShip
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Disabled By: Default
Priority: 10 / 10
Category: Correctness
Severity: Warning
Explanation: Code contains STOPSHIP marker.
Using the comment // STOPSHIP can be used to flag code that is incomplete but checked in. This comment marker can be used to indicate that the code should not be shipped until the issue is addressed, and lint will look for these.

More info:

To suppress this error, use the issue id "StopShip" as explained in the Suppressing Warnings and Errors section.
TypographyQuotes
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ & Eclipse/ADT
Disabled By: Default
Priority: 5 / 10
Category: Usability:Typography
Severity: Warning
Explanation: Straight quotes can be replaced with curvy quotes.
Straight single quotes and double quotes, when used as a pair, can be replaced by "curvy quotes" (or directional quotes). This can make the text more readable.

Note that you should never use grave accents and apostrophes to quote, `like this'.

(Also note that you should not use curvy quotes for code fragments.)

More info: http://en.wikipedia.org/wiki/Quotation_mark

To suppress this error, use the issue id "TypographyQuotes" as explained in the Suppressing Warnings and Errors section.
UnusedIds
Disabled By: Default
Priority: 1 / 10
Category: Performance
Severity: Warning
Explanation: Unused id.
This resource id definition appears not to be needed since it is not referenced from anywhere. Having id definitions, even if unused, is not necessarily a bad idea since they make working on layouts and menus easier, so there is not a strong reason to delete these.

More info:

To suppress this error, use the issue id "UnusedIds" as explained in the Suppressing Warnings and Errors section.
Suppressing Warnings and Errors
Lint errors can be suppressed in a variety of ways:

1. With a @SuppressLint annotation in the Java code
2. With a tools:ignore attribute in the XML file
3. With ignore flags specified in the build.gradle file, as explained below
4. With a lint.xml configuration file in the project
5. With a lint.xml configuration file passed to lint via the --config flag
6. With the --ignore flag passed to lint.

To suppress a lint warning with an annotation, add a @SuppressLint("id") annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources" or {"UnusedResources","UnusedIds"}, or it can be "all" to suppress all lint warnings in the given scope.

To suppress a lint warning in an XML file, add a tools:ignore="id" attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android declaration:
xmlns:tools="http://schemas.android.com/tools"

To suppress a lint warning in a build.gradle file, add a section like this:

android {
    lintOptions {
        disable 'TypographyFractions','TypographyQuotes'
    }
}

Here we specify a comma separated list of issue id's after the disable command. You can also use warning or error instead of disable to change the severity of issues.

To suppress lint warnings with a configuration XML file, create a file named lint.xml and place it at the root directory of the project in which it applies.

The format of the lint.xml file is something like the following:

<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <!-- Disable this given check in this project -->
    <issue id="IconMissingDensityFolder" severity="ignore" />

    <!-- Ignore the ObsoleteLayoutParam issue in the given files -->
    <issue id="ObsoleteLayoutParam">
        <ignore path="res/layout/activation.xml" />
        <ignore path="res/layout-xlarge/activation.xml" />
    </issue>

    <!-- Ignore the UselessLeaf issue in the given file -->
    <issue id="UselessLeaf">
        <ignore path="res/layout/main.xml" />
    </issue>

    <!-- Change the severity of hardcoded strings to "error" -->
    <issue id="HardcodedText" severity="error" />
</lint>

To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/path

For more information, see http://g.co/androidstudio/suppressing-lint-warnings