Fixed various lint issues
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -15,23 +15,21 @@
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" >
|
||||
</uses-permission>
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="4"
|
||||
android:targetSdkVersion="14" />
|
||||
|
||||
<application android:label="@string/app_name" >
|
||||
<service
|
||||
android:name="SkyHookService"
|
||||
android:name="com.TwentyCodes.android.SkyHook.SkyHookService"
|
||||
android:process=":locationservice" >
|
||||
</service>
|
||||
|
||||
<receiver
|
||||
android:name="com.TwentyCodes.android.location.ServiceWakeUpReceiver"
|
||||
android:process=":startinglocationservice" >
|
||||
</receiver>
|
||||
|
||||
<service
|
||||
android:name="com.TwentyCodes.android.location.LocationService"
|
||||
android:name="LocationService"
|
||||
android:process=":locationservice" >
|
||||
</service>
|
||||
|
||||
<activity android:name="Splash" >
|
||||
<activity android:name="com.TwentyCodes.android.SkyHook.Splash" >
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,40 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="#ffffff">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/skyhook_img"
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_margin="20dip"
|
||||
android:src="@drawable/skyhook_logo_alpha_small"
|
||||
/>
|
||||
android:layout_height="fill_parent"
|
||||
android:background="#ffffff"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<TextView
|
||||
android:text="Powered By:"
|
||||
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_height="wrap_content"
|
||||
android:id="@+id/text"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/skyhook_img"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_margin="20dip"
|
||||
android:src="@drawable/skyhook_logo_alpha_small" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
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
|
||||
android:id="@+id/tc_img"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:src="@drawable/logoidea3"
|
||||
android:layout_above="@id/text"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/tc_img"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/text"
|
||||
android:layout_alignParentTop="true"
|
||||
android:src="@drawable/logoidea3" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -1,6 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">SkyHookLib</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="powered_by">Powered By:</string>
|
||||
|
||||
</resources>
|
||||
@@ -222,9 +222,9 @@ public class CompassSensor{
|
||||
*/
|
||||
public void setDeclination(final Location location){
|
||||
if (location != null) {
|
||||
final GeomagneticField geomagneticField = new GeomagneticField(new Double(location.getLatitude()).floatValue(),
|
||||
new Double(location.getLongitude()).floatValue(),
|
||||
new Double(location.getAltitude()).floatValue(),
|
||||
final GeomagneticField geomagneticField = new GeomagneticField(Double.valueOf(location.getLatitude()).floatValue(),
|
||||
Double.valueOf(location.getLongitude()).floatValue(),
|
||||
Double.valueOf(location.getAltitude()).floatValue(),
|
||||
System.currentTimeMillis());
|
||||
mDelination = geomagneticField.getDeclination();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user