Fixed various lint issues

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-06-02 17:05:34 -04:00
parent b211c3d829
commit 4f1ff722ae
5 changed files with 47 additions and 50 deletions

View File

@@ -15,23 +15,21 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE" > <uses-permission android:name="android.permission.READ_PHONE_STATE" >
</uses-permission> </uses-permission>
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="14" />
<application android:label="@string/app_name" > <application android:label="@string/app_name" >
<service <service
android:name="SkyHookService" android:name="com.TwentyCodes.android.SkyHook.SkyHookService"
android:process=":locationservice" > android:process=":locationservice" >
</service> </service>
<receiver
android:name="com.TwentyCodes.android.location.ServiceWakeUpReceiver"
android:process=":startinglocationservice" >
</receiver>
<service <service
android:name="com.TwentyCodes.android.location.LocationService" android:name="LocationService"
android:process=":locationservice" > android:process=":locationservice" >
</service> </service>
<activity android:name="Splash" > <activity android:name="com.TwentyCodes.android.SkyHook.Splash" >
</activity> </activity>
</application> </application>

Binary file not shown.

View File

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:background="#ffffff"> android:background="#ffffff"
tools:ignore="ContentDescription" >
<ImageView <ImageView
android:id="@+id/skyhook_img" android:id="@+id/skyhook_img"
@@ -12,29 +12,25 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_margin="20dip" android:layout_margin="20dip"
android:src="@drawable/skyhook_logo_alpha_small" android:src="@drawable/skyhook_logo_alpha_small" />
/>
<TextView <TextView
android:text="Powered By:" android:id="@+id/text"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="20dip"
android:layout_above="@id/skyhook_img"
android:layout_marginLeft="10dip"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text" android:layout_above="@id/skyhook_img"
/> android:layout_marginLeft="10dip"
android:text="@string/powered_by"
android:textColor="#000000"
android:textSize="20dip"
android:textStyle="bold" />
<ImageView <ImageView
android:id="@+id/tc_img" android:id="@+id/tc_img"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:src="@drawable/logoidea3"
android:layout_above="@id/text" android:layout_above="@id/text"
/> android:layout_alignParentTop="true"
android:src="@drawable/logoidea3" />
</RelativeLayout> </RelativeLayout>

View File

@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<string name="app_name">SkyHookLib</string> <string name="app_name">SkyHookLib</string>
<string name="gps_fix">GPS Fix</string> <string name="gps_fix">GPS Fix</string>
<string name="sorry_theres_trouble">We are having issues finding your location. Please be patient as we continue to try in the background.</string> <string name="sorry_theres_trouble">We are having issues finding your location. Please be patient as we continue to try in the background.</string>
<string name="powered_by">Powered By:</string>
</resources> </resources>

View File

@@ -222,9 +222,9 @@ public class CompassSensor{
*/ */
public void setDeclination(final Location location){ public void setDeclination(final Location location){
if (location != null) { if (location != null) {
final GeomagneticField geomagneticField = new GeomagneticField(new Double(location.getLatitude()).floatValue(), final GeomagneticField geomagneticField = new GeomagneticField(Double.valueOf(location.getLatitude()).floatValue(),
new Double(location.getLongitude()).floatValue(), Double.valueOf(location.getLongitude()).floatValue(),
new Double(location.getAltitude()).floatValue(), Double.valueOf(location.getAltitude()).floatValue(),
System.currentTimeMillis()); System.currentTimeMillis());
mDelination = geomagneticField.getDeclination(); mDelination = geomagneticField.getDeclination();
} else { } else {