init commit

Change-Id: Ib96d43f22db2bdf360d1d1e0693f6aa5e3aa50ab
This commit is contained in:
2012-02-03 10:51:05 -05:00
commit 202fa24d8d
25 changed files with 1919 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
DroidFinder/res/drawable/user.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#505050">
<!-- first we attach this table to the top of the screen
this table layout is used to display the current distance from car and the current GPS accuracy
by setting the TableLayout background is black and the table rows are grey. and then adding a margin between the 2 rows,
we get a devider line drawn -->
<TableLayout
android:id="@+id/table"
android:layout_alignParentTop="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="0"
android:background="#000000">
<!-- distance display -->
<TableRow
android:background="#505050"
android:layout_marginBottom="2dip">
<TextView
android:layout_column="0"
android:id="@+id/tvDistance"
android:text="Distance"
android:enabled="false"
android:textSize="22sp"
android:gravity="left"
android:textColor="#FFFFFF"
android:textStyle="bold"
/>
<TextView android:layout_column="1"
android:id="@+id/tvDistance2"
android:gravity="right"
android:text="0"
android:enabled="false"
android:textColor="#FFFFFF"
android:textSize="26sp"
/>
</TableRow>
<!-- accuracy display -->
<TableRow android:background="#505050">
<TextView android:layout_column="0"
android:id="@+id/tvAccuracy"
android:text="Accuracy"
android:enabled="false"
android:textSize="22sp"
android:gravity="left"
android:textColor="#FFFFFF"
android:textStyle="bold"/>
<TextView android:layout_column="1"
android:id="@+id/tvAccuracy2"
android:gravity="right"
android:text="0"
android:enabled="false"
android:textColor="#FFFFFF"
android:textSize="26sp"/>
</TableRow>
</TableLayout>
<!-- after the table we draw the mapview
warren debug key
0fQa27WZuSpscM1yDbnjrDOPs3rgB78Sc8vWsaA
ricky debug api key
0rKmsWMM0D-Ii4Y4GcF-0jomwFM4YYOyLVnH0vw
twenty codes api key
0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q
-->
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0rKmsWMM0D-Ii4Y4GcF-0jomwFM4YYOyLVnH0vw"
android:layout_below="@id/table"
android:layout_alignParentBottom="true"/>
</RelativeLayout>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</LinearLayout>
</TabHost>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="layers">
<item>Satellite View</item>
<item>Map View</item>
</string-array>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="unit">
<item>Standard</item>
<item>Metric</item>
</string-array>
</resources>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, DroidFinder!</string>
<string name="app_name">Droid Finder</string>
</resources>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="Locating Options">
<CheckBoxPreference
android:title="Enable"
android:summary="Enable Transmitting phone's location though SMS messages"
android:defaultValue="false"
android:key="locate_enabled"
/>
<EditTextPreference
android:summary="locate"
android:defaultValue="locate"
android:title="Pass Phrase"
android:key="locate_pass"
android:dependency="locate_enabled" />
</PreferenceCategory>
<PreferenceCategory
android:title="Locking Options">
<CheckBoxPreference
android:title="Enable"
android:summary="Enable Locking the phone remotely though SMS messages"
android:defaultValue="false"
android:key="lock_pattern_enabled" />
<EditTextPreference
android:summary="lock"
android:defaultValue="lock"
android:title="Pass Phrase"
android:key="lock_pattern_pass"
android:dependency="lock_pattern_enabled"/>
</PreferenceCategory>
<PreferenceCategory
android:title="Map Settings">
<CheckBoxPreference
android:title="Stay Awake"
android:summary="Prevent the phone from sleeping"
android:defaultValue="false"
android:key="stay_awake" />
<ListPreference
android:title="Measurement Unit"
android:summary="Standard"
android:key="measurement_unit"
android:entries="@array/unit"
android:entryValues="@array/unit"/>
<ListPreference android:dialogTitle="Layers"
android:entryValues="@array/layers"
android:entries="@array/layers"
android:key="layers"
android:title="Layers"></ListPreference>
</PreferenceCategory>
<PreferenceCategory
android:title="System Settings">
<Preference
android:title="Back Up"
android:summary="Backs up current system settings that could be modified"
android:key="backup"
/>
<Preference
android:title="Restore"
android:summary="Restores system settings that were changed, from the backup"
android:key="restore"
/>
</PreferenceCategory>
</PreferenceScreen>