Skip to content

Commit 8b2f4af

Browse files
author
rj
committed
First round of testing... complete
1 parent 41b4626 commit 8b2f4af

File tree

96 files changed

+12581
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+12581
-0
lines changed

TUIOService/.classpath

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry excluding="android/view/" kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

TUIOService/.project

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>TUIOService</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

TUIOService/AndroidManifest.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.sigmusic.tacchi.tuio"
4+
android:versionCode="1"
5+
android:versionName="1.0">
6+
<uses-sdk android:minSdkVersion="8" />
7+
8+
<application android:icon="@drawable/icon" android:label="@string/app_name">
9+
<activity android:name=".TuioTest"
10+
android:label="@string/app_name">
11+
<intent-filter>
12+
<action android:name="android.intent.action.MAIN" />
13+
<category android:name="android.intent.category.LAUNCHER" />
14+
</intent-filter>
15+
</activity>
16+
<service android:name=".InstHackService" />
17+
18+
</application>
19+
</manifest>

TUIOService/HelloJni.java

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Copyright (C) 2009 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.example.hellojni;
17+
18+
import android.app.Activity;
19+
import android.widget.TextView;
20+
import android.os.Bundle;
21+
22+
23+
public class HelloJni extends Activity
24+
{
25+
/** Called when the activity is first created. */
26+
@Override
27+
public void onCreate(Bundle savedInstanceState)
28+
{
29+
super.onCreate(savedInstanceState);
30+
31+
/* Create a TextView and set its content.
32+
* the text is retrieved by calling a native
33+
* function.
34+
*/
35+
TextView tv = new TextView(this);
36+
tv.setText( stringFromJNI() );
37+
setContentView(tv);
38+
}
39+
40+
/* A native method that is implemented by the
41+
* 'hello-jni' native library, which is packaged
42+
* with this application.
43+
*/
44+
public native String stringFromJNI();
45+
46+
/* This is another native method declaration that is *not*
47+
* implemented by 'hello-jni'. This is simply to show that
48+
* you can declare as many native methods in your Java code
49+
* as you want, their implementation is searched in the
50+
* currently loaded native libraries only the first time
51+
* you call them.
52+
*
53+
* Trying to call this function will result in a
54+
* java.lang.UnsatisfiedLinkError exception !
55+
*/
56+
public native String unimplementedStringFromJNI();
57+
58+
/* this is used to load the 'hello-jni' library on application
59+
* startup. The library has already been unpacked into
60+
* /data/data/com.example.HelloJni/lib/libhello-jni.so at
61+
* installation time by the package manager.
62+
*/
63+
static {
64+
System.loadLibrary("hello-jni");
65+
}
66+
}

TUIOService/bin/TUIO/TuioClient.class

11.5 KB
Binary file not shown.
4.32 KB
Binary file not shown.

TUIOService/bin/TUIO/TuioCursor.class

861 Bytes
Binary file not shown.
351 Bytes
Binary file not shown.

TUIOService/bin/TUIO/TuioObject.class

3.32 KB
Binary file not shown.

TUIOService/bin/TUIO/TuioPoint.class

2.76 KB
Binary file not shown.

0 commit comments

Comments
 (0)