Commits

M Haidar Hanif committed d3209ca

Prepare for Android lint hardcoded debug mode

Comments (0)

Files changed (3)

 <?xml version="1.0" encoding="utf-8"?>
+
+<!--suppress AndroidLintHardcodedDebugMode -->
+
 <manifest
     xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.mhaidarhanif.android.kargu"
         android:minSdkVersion="10"
         android:targetSdkVersion="16" />
 
+    <!--suppress AndroidLintHardcodedDebugMode -->
+
     <application
         android:debuggable="true"
         android:allowBackup="true"
+<?xml version="1.0" encoding="UTF-8"?>
+
+<lint>
+    <!-- List of issues to configure -->
+</lint>

src/com/mhaidarhanif/android/kargu/MainActivity.java

 package com.mhaidarhanif.android.kargu;
 
-import android.app.ActionBar;
 import android.app.Activity;
 import android.content.Intent;
 import android.graphics.drawable.Drawable;
-import android.os.Build;
 import android.os.Bundle;
 import android.view.Menu;
 import android.view.View;
 
     // Initialize member TextView
     mTextView = (TextView) findViewById(R.id.about_title);
-
-    // Check minimum API level number to use ActionBar API
-    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
-        // Make sure app icon in action bar does not behave as a button
-        ActionBar actionBar = getActionBar();
-        actionBar.setHomeButtonEnabled(false);
-    }
   }
 
   @Override