Skip to content

Commit

Permalink
init for version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hanq committed May 10, 2014
0 parents commit 2bb88b5
Show file tree
Hide file tree
Showing 96 changed files with 1,370 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Code/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?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 exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions Code/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SensorSDK</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>
4 changes: 4 additions & 0 deletions Code/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
17 changes: 17 additions & 0 deletions Code/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.ldmf.sensorsdk"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</application>

</manifest>
17 changes: 17 additions & 0 deletions Code/bin/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.ldmf.sensorsdk"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</application>

</manifest>
4 changes: 4 additions & 0 deletions Code/bin/R.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
int drawable ic_launcher 0x7f020000
int string app_name 0x7f030000
int style AppBaseTheme 0x7f040000
int style AppTheme 0x7f040001
Binary file not shown.
Binary file added Code/bin/classes/net/ldmf/sensorsdk/MSensor.class
Binary file not shown.
Binary file not shown.
Binary file added Code/bin/classes/net/ldmf/sensorsdk/R$attr.class
Binary file not shown.
Binary file added Code/bin/classes/net/ldmf/sensorsdk/R$drawable.class
Binary file not shown.
Binary file added Code/bin/classes/net/ldmf/sensorsdk/R$string.class
Binary file not shown.
Binary file added Code/bin/classes/net/ldmf/sensorsdk/R$style.class
Binary file not shown.
Binary file added Code/bin/classes/net/ldmf/sensorsdk/R.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Code/bin/res/crunch/drawable-hdpi/ic_launcher.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 Code/bin/res/crunch/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Code/bin/sensorsdk.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions Code/gen/net/ldmf/sensorsdk/BuildConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** Automatically generated file. DO NOT MODIFY */
package net.ldmf.sensorsdk;

public final class BuildConfig {
public final static boolean DEBUG = true;
}
36 changes: 36 additions & 0 deletions Code/gen/net/ldmf/sensorsdk/R.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* 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 net.ldmf.sensorsdk;

public final class R {
public static final class attr {
}
public static final class drawable {
public static int ic_launcher=0x7f020000;
}
public static final class string {
public static int app_name=0x7f030000;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
*/
public static int AppBaseTheme=0x7f040000;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static int AppTheme=0x7f040001;
}
}
Binary file added Code/ic_launcher-web.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 Code/libs/android-support-v4.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions Code/proguard-project.txt
Original file line number Diff line number Diff line change
@@ -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 *;
#}
15 changes: 15 additions & 0 deletions Code/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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-8
android.library=true
Binary file added Code/res/drawable-hdpi/ic_launcher.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 Code/res/drawable-mdpi/ic_launcher.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 Code/res/drawable-xhdpi/ic_launcher.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 Code/res/drawable-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Code/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<resources>

<string name="app_name">SensorSDK</string>

</resources>
20 changes: 20 additions & 0 deletions Code/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<resources>

<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>

</resources>
70 changes: 70 additions & 0 deletions Code/src/net/ldmf/sensorsdk/MSensor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package net.ldmf.sensorsdk;

public class MSensor {

// Field descriptor #8 I API3 加速度传感器
public static final int TYPE_ACCELEROMETER = 1;

// Field descriptor #8 I API3 地磁传感器
public static final int TYPE_MAGNETIC_FIELD = 2;

// Field descriptor #8 I (deprecated) API3 方向传感器
@java.lang.Deprecated
public static final int TYPE_ORIENTATION = 3;

// Field descriptor #8 I API3 陀螺仪传感器
public static final int TYPE_GYROSCOPE = 4;

// Field descriptor #8 I API3 亮度传感器
public static final int TYPE_LIGHT = 5;

// Field descriptor #8 I API3 压力传感器
public static final int TYPE_PRESSURE = 6;

// Field descriptor #8 I (deprecated) API3 温度传感器
@java.lang.Deprecated
public static final int TYPE_TEMPERATURE = 7;

// Field descriptor #8 I API3 近程传感器
public static final int TYPE_PROXIMITY = 8;

// Field descriptor #8 I API9
public static final int TYPE_GRAVITY = 9;

// Field descriptor #8 I API9
public static final int TYPE_LINEAR_ACCELERATION = 10;

// Field descriptor #8 I API9
public static final int TYPE_ROTATION_VECTOR = 11;

// Field descriptor #8 I API14
public static final int TYPE_RELATIVE_HUMIDITY = 12;

// Field descriptor #8 I API14
public static final int TYPE_AMBIENT_TEMPERATURE = 13;

// Field descriptor #8 I API18
public static final int TYPE_MAGNETIC_FIELD_UNCALIBRATED = 14;

// Field descriptor #8 I API15
public static final int TYPE_GAME_ROTATION_VECTOR = 15;

// Field descriptor #8 I API18
public static final int TYPE_GYROSCOPE_UNCALIBRATED = 16;

// Field descriptor #8 I API18
public static final int TYPE_SIGNIFICANT_MOTION = 17;

// Field descriptor #8 I API19
public static final int TYPE_STEP_DETECTOR = 18;

// Field descriptor #8 I API19
public static final int TYPE_STEP_COUNTER = 19;

// Field descriptor #8 I API19
public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20;

// Field descriptor #8 I
public static final int TYPE_ALL = -1;

}
9 changes: 9 additions & 0 deletions Code/src/net/ldmf/sensorsdk/MSensorListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package net.ldmf.sensorsdk;

public interface MSensorListener {

/**
* @category 传感器的值产生了变动
* */
public void onValuesChanged(int type, float x, float y, float z);
}
Loading

0 comments on commit 2bb88b5

Please sign in to comment.