Lint Report

Check performed at Mon Dec 30 02:13:10 CET 2013.
0 errors and 8 warnings found:

Security
2 ExportedService: Exported service does not require permission
Performance
6 UnusedResources: Unused resources
Disabled Checks (11)

Security
ExportedService: Exported service does not require permission
/home/felix/workspace/controldlna/AndroidManifest.xml:43: Exported service does not require permission
  40   		
  41   		<service android:name="com.github.nutomic.controldlna.upnp.RemotePlayService" />
  42 
  43         <service android:name="com.github.nutomic.controldlna.upnp.ProviderService"
  44                 android:label="sample_media_route_provider_service"
  45                 android:process=":mrp">
/home/felix/workspace/controldlna/AndroidManifest.xml:43: Exported service does not require permission
  40   		
  41   		<service android:name="com.github.nutomic.controldlna.upnp.RemotePlayService" />
  42 
  43         <service android:name="com.github.nutomic.controldlna.upnp.ProviderService"
  44                 android:label="sample_media_route_provider_service"
  45                 android:process=":mrp">
Note: This issue has an associated quickfix operation in Eclipse/ADT 
Priority: 5 / 10
Category: Security
Severity: Warning
Explanation: Checks for exported services that do not require permissions.
Exported services (services which either set exported=true or contain an intent-filter and do not specify exported=false) should define a permission that an entity must have in order to launch the service or bind to it. Without this, any application can use this service.

More info:
To suppress this error, use the issue id "ExportedService" as explained in the Suppressing Warnings and Errors section.
Performance
/home/felix/workspace/controldlna/res/values/dimens.xml:4: The resource R.dimen.activity_horizontal_margin appears to be unused
   1 <resources>
   2 
   3     <!-- Default screen margins, per the Android Design guidelines. -->
   4     <dimen name="activity_horizontal_margin">16dp</dimen>
   5     <dimen name="activity_vertical_margin">16dp</dimen>
   6 


    /home/felix/workspace/controldlna/res/values/dimens.xml:4: The resource R.dimen.activity_horizontal_margin appears to be unused
       1 <resources>
       2 
       3     <!-- Default screen margins, per the Android Design guidelines. -->
       4     <dimen name="activity_horizontal_margin">16dp</dimen>
       5     <dimen name="activity_vertical_margin">16dp</dimen>
       6 
    


      /home/felix/workspace/controldlna/res/values/dimens.xml:5: The resource R.dimen.activity_vertical_margin appears to be unused
         2 
         3     <!-- Default screen margins, per the Android Design guidelines. -->
         4     <dimen name="activity_horizontal_margin">16dp</dimen>
         5     <dimen name="activity_vertical_margin">16dp</dimen>
         6 
         7 </resources>
      
      /home/felix/workspace/controldlna/res/values/dimens.xml:5: The resource R.dimen.activity_vertical_margin appears to be unused
         2 
         3     <!-- Default screen margins, per the Android Design guidelines. -->
         4     <dimen name="activity_horizontal_margin">16dp</dimen>
         5     <dimen name="activity_vertical_margin">16dp</dimen>
         6 
         7 </resources>
      
      /home/felix/workspace/controldlna/res/values/strings.xml:8: The resource R.string.pause appears to be unused
         5     <string name="title_route">Route</string>
         6     <string name="title_server">Server</string>
         7     <string name="play">Play</string>
         8     <string name="pause">Pause</string>
         9     <string name="exit_renderer">Do you really want to exit the renderer? Playback will be stopped.</string>
        10     <string name="previous">Previous</string>
      
      /home/felix/workspace/controldlna/res/values/strings.xml:8: The resource R.string.pause appears to be unused
         5     <string name="title_route">Route</string>
         6     <string name="title_server">Server</string>
         7     <string name="play">Play</string>
         8     <string name="pause">Pause</string>
         9     <string name="exit_renderer">Do you really want to exit the renderer? Playback will be stopped.</string>
        10     <string name="previous">Previous</string>
      
      Severity: Warning
      Explanation: Looks for 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.
      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.

      BackButton
      Severity: Warning
      Explanation: Looks for Back buttons, which are not common on the Android platform.
      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.


      To suppress this error, use the issue id "BackButton" as explained in the Suppressing Warnings and Errors section.
      EasterEgg
      Severity: Warning
      Explanation: Looks for hidden easter eggs.
      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
      Severity: Warning
      Explanation: Suggests replacing uses of getters with direct field access within a class.
      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.


      To suppress this error, use the issue id "FieldGetter" as explained in the Suppressing Warnings and Errors section.
      IconExpectedSize
      Severity: Warning
      Explanation: Ensures that launcher icons, notification icons etc have the correct 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.


      To suppress this error, use the issue id "IconExpectedSize" as explained in the Suppressing Warnings and Errors section.
      RtlCompat
      Severity: Error
      Explanation: Looks for compatibility issues with RTL support.
      API 17 adds a textAlignment attribute to specify text alignment. However, if you are supporting older versions than API 17, you must also specify a gravity or layout_gravity attribute, since older platforms will ignore the textAlignment attribute.

      More info:
      To suppress this error, use the issue id "RtlCompat" as explained in the Suppressing Warnings and Errors section.
      RtlEnabled
      Severity: Warning
      Explanation: Looks for usages of right-to-left text constants without enabling RTL support.
      To enable right-to-left support, when running on API 17 and higher, you must set the android:supportsRtl attribute in the manifest <application> element.
      If you have started adding RTL attributes, but have not yet finished the migration, you can set the attribute to false to satisfy this lint check.

      More info:
      To suppress this error, use the issue id "RtlEnabled" as explained in the Suppressing Warnings and Errors section.
      RtlHardcoded
      Severity: Warning
      Explanation: Looks for hardcoded left/right constants which could be start/end for bidirectional text.
      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.
      SelectableText
      Severity: Warning
      Explanation: Looks for TextViews which should probably allow their text to be selected.
      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
      Severity: Warning
      Explanation: Looks for comment markers of the form //STOPSHIP which indicates that code should not be released yet.
      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
      Severity: Warning
      Explanation: Looks for straight quotes which can be replaced by 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.)


      To suppress this error, use the issue id "TypographyQuotes" as explained in the Suppressing Warnings and Errors section.
      UnusedIds
      Severity: Warning
      Explanation: Looks for unused id's.
      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 a lint.xml configuration file in the project
      4. With a lint.xml configuration file passed to lint via the --config flag
      5. 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 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. (If you use the Eclipse plugin's Lint view, you can suppress errors there via the toolbar and Eclipse will create the lint.xml file for you.).

      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"