Skip to content

Commit

Permalink
完成基础构架
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphinboy committed Jul 16, 2012
0 parents commit dca32fb
Show file tree
Hide file tree
Showing 58 changed files with 972 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>birdway</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>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
11 changes: 11 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
48 changes: 48 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.birdway.mobile"
android:versionCode="1"
android:versionName="1.0" >

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

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>

<uses-permission android:name="android.permission.RECORD_AUDIO"/>


<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name="org.dolphinboy.birdway.BirdwayActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="org.dolphinboy.birdway.service.GPSService" />

<receiver android:name="org.dolphinboy.birdway.receiver.BirdwayReceiver">
<intent-filter>
<action android:name="android.intent.action.CAMERA_BUTTON" />
</intent-filter>
</receiver>

</application>



</manifest>
48 changes: 48 additions & 0 deletions bin/AndroidManifest.xml
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.birdway.mobile"
android:versionCode="1"
android:versionName="1.0" >

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

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>

<uses-permission android:name="android.permission.RECORD_AUDIO"/>


<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name="org.dolphinboy.birdway.BirdwayActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="org.dolphinboy.birdway.service.GPSService" />

<receiver android:name="org.dolphinboy.birdway.receiver.BirdwayReceiver">
<intent-filter>
<action android:name="android.intent.action.CAMERA_BUTTON" />
</intent-filter>
</receiver>

</application>



</manifest>
Binary file added bin/birdway.apk
Binary file not shown.
Binary file added bin/classes.dex
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/BuildConfig.class
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/R$attr.class
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/R$drawable.class
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/R$id.class
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/R$layout.class
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/R$string.class
Binary file not shown.
Binary file added bin/classes/org/birdway/mobile/R.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/jarlist.cache
@@ -0,0 +1,3 @@
# cache for current jar dependecy. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
Binary file added bin/res/drawable-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-ldpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-xhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/resources.ap_
Binary file not shown.
6 changes: 6 additions & 0 deletions gen/org/birdway/mobile/BuildConfig.java
@@ -0,0 +1,6 @@
/** Automatically generated file. DO NOT MODIFY */
package org.birdway.mobile;

public final class BuildConfig {
public final static boolean DEBUG = true;
}
38 changes: 38 additions & 0 deletions gen/org/birdway/mobile/R.java
@@ -0,0 +1,38 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package org.birdway.mobile;

public final class R {
public static final class attr {
}
public static final class drawable {
public static final int ic_launcher=0x7f020000;
}
public static final class id {
public static final int enterbut=0x7f050000;
public static final int loginbut=0x7f050001;
}
public static final class layout {
public static final int main=0x7f030000;
public static final int showinfo=0x7f030001;
}
public static final class string {
public static final int app_name=0x7f040000;
public static final int enter=0x7f040005;
public static final int format=0x7f040007;
public static final int latitudeitem=0x7f040008;
public static final int latitudevalue=0x7f040009;
public static final int login=0x7f040006;
public static final int longitudeitem=0x7f04000a;
public static final int longitudevalue=0x7f04000b;
public static final int password=0x7f040003;
public static final int passwordtip=0x7f040004;
public static final int username=0x7f040001;
public static final int usernametip=0x7f040002;
}
}
3 changes: 3 additions & 0 deletions lint.xml
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
</lint>
20 changes: 20 additions & 0 deletions proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
14 changes: 14 additions & 0 deletions project.properties
@@ -0,0 +1,14 @@
# 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 edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt

# Project target.
target=android-10
Binary file added res/drawable-hdpi/ic_launcher.png
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-ldpi/ic_launcher.png
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-mdpi/ic_launcher.png
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-xhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions res/layout/main.xml
@@ -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="left">
<TextView
android:layout_width="40dp"
android:textSize="15sp"
android:layout_height="wrap_content"
android:text="@string/username" />
<EditText
android:hint="@string/usernametip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLength="25"
android:singleLine="true"/>
<TextView
android:layout_width="40dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:text="@string/password" />
<EditText
android:hint="@string/passwordtip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLength="16"
android:inputType="textPassword"
android:singleLine="true"/>

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:gravity="center_horizontal">
<Button
android:id="@+id/enterbut"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="@string/enter" />

<Button
android:id="@+id/loginbut"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="@string/login" />
</LinearLayout>

</LinearLayout>
29 changes: 29 additions & 0 deletions res/layout/showinfo.xml
@@ -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="left">

<TextView
android:layout_width="40dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:text="@string/latitudeitem" />
<TextView
android:layout_width="80dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:text="@string/latitudevalue" />
<TextView
android:layout_width="40dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:text="@string/longitudeitem" />
<TextView
android:layout_width="80dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:text="@string/longitudevalue" />

</LinearLayout>
25 changes: 25 additions & 0 deletions res/values/strings.xml
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Birdway</string>

<string name="username">帐号</string>
<string name="usernametip">邮箱或用户名</string>

<string name="password">密码</string>
<string name="passwordtip">6到16位</string>

<string name="enter">登录</string>
<string name="login">注册</string>

<string name="format">dd.mm.sss</string>



<string name="latitudeitem">纬度</string>
<string name="latitudevalue">显示纬度</string>

<string name="longitudeitem">经度</string>
<string name="longitudevalue">显示经度</string>


</resources>

0 comments on commit dca32fb

Please sign in to comment.