Skip to content

Commit

Permalink
Adding Android source code
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian committed Feb 1, 2010
1 parent c879c3d commit 39ae3c2
Show file tree
Hide file tree
Showing 40 changed files with 2,892 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>UPM-Android</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
55 changes: 55 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.u17od.upm"
android:versionCode="1"
android:versionName="1.0">

<application android:icon="@drawable/upm"
android:label="@string/app_name_short"
android:debuggable="false"
android:name="UPMApplication">

<activity android:name=".EnterMasterPassword"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

<activity android:name=".FullAccountList">
<meta-data android:name="android.app.default_searchable"
android:value=".SearchResults" />
</activity>

<activity android:name=".ViewAccountDetails">
</activity>

<activity android:name=".CreateNewDatabase">
</activity>

<activity android:name=".AddEditAccount">
</activity>

<activity android:name=".ChangeMasterPassword">
</activity>

<activity android:name=".SearchResults"
android:label="@string/search_results"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.SEARCH"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>

<receiver android:name=".RestartApp"/>

</application>

<uses-sdk android:minSdkVersion="3"/>

</manifest>
13 changes: 13 additions & 0 deletions default.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=android-3
Binary file added res/drawable/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/upm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions res/layout/add_edit_account_details.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/accountScrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="10dip">

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/account_name"/>

<EditText android:id="@+id/account_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:layout_marginBottom="10dip"/>

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/userid"/>

<EditText android:id="@+id/account_userid"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:layout_marginBottom="10dip"/>

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/password"/>

<EditText android:id="@+id/account_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textVisiblePassword"
android:layout_marginBottom="10dip"/>

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/url"/>

<EditText android:id="@+id/account_url"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:layout_marginBottom="10dip"/>

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notes"/>

<EditText android:id="@+id/account_notes"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:layout_marginBottom="10dip"
android:lines="3"/>

<Button android:id="@+id/save_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/save"
android:layout_gravity="center"
android:paddingLeft="20dip"
android:paddingRight="20dip"/>

</LinearLayout>

</ScrollView>
51 changes: 51 additions & 0 deletions res/layout/change_master_password.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_vertical|center_horizontal"
android:paddingLeft="20dip"
android:paddingRight="20dip">

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/existing_master_password"
android:layout_marginBottom="10dip"/>

<EditText android:id="@+id/existing_master_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:layout_marginBottom="40dip"/>

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/new_password"
android:layout_marginBottom="10dip"/>

<EditText android:id="@+id/new_master_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:layout_marginBottom="10dip"/>

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/new_password_confirm"
android:layout_marginBottom="10dip"/>

<EditText android:id="@+id/new_master_password_confirm"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:layout_marginBottom="20dip"/>

<Button android:id="@+id/change_master_password_ok_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ok_label"
android:layout_gravity="center"
android:paddingLeft="20dip"
android:paddingRight="20dip"/>

</LinearLayout>
12 changes: 12 additions & 0 deletions res/layout/dialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="6dip">

<TextView android:id="@+id/dialogText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="12sp"/>

</ScrollView>
29 changes: 29 additions & 0 deletions res/layout/enter_master_password.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_vertical|center_horizontal"
android:paddingLeft="20dip"
android:paddingRight="20dip">

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_master_password"
android:layout_marginBottom="20dip"/>

<EditText android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:layout_marginBottom="20dip"/>

<Button android:id="@+id/master_password_open_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/open_label"
android:layout_gravity="center"
android:paddingLeft="20dip"
android:paddingRight="20dip"/>

</LinearLayout>
17 changes: 17 additions & 0 deletions res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

<TextView android:id="@android:id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/no_accounts"
android:gravity="center"/>

</LinearLayout>
27 changes: 27 additions & 0 deletions res/layout/master_password_dialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="10dip">

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/message"
android:layout_marginBottom="20dip"/>

<EditText android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"/>

<Button android:id="@+id/master_password_ok_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ok_label"
android:layout_gravity="center"
android:paddingLeft="20dip"
android:paddingRight="20dip"
android:layout_marginTop="20dip"/>

</LinearLayout>
33 changes: 33 additions & 0 deletions res/layout/new_master_password_dialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dip">

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/message"
android:text="@string/request_new_master_password"
android:layout_marginBottom="20dip"/>

<EditText android:id="@+id/password1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"/>

<EditText android:id="@+id/password2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"/>

<Button android:id="@+id/new_master_password_ok_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ok_label"
android:layout_gravity="center"
android:paddingLeft="20dip"
android:paddingRight="20dip"
android:layout_marginTop="20dip"/>

</LinearLayout>
17 changes: 17 additions & 0 deletions res/layout/search_results.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

<TextView android:id="@android:id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/no_accounts_found"
android:gravity="center"/>

</LinearLayout>
Loading

0 comments on commit 39ae3c2

Please sign in to comment.