Skip to content

Commit 47efb4b

Browse files
author
River
committed
Init SL4A
0 parents  commit 47efb4b

File tree

202 files changed

+21086
-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.

202 files changed

+21086
-0
lines changed

.classpath

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

.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>QPysl4alib</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>

AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:installLocation="auto"
4+
package="com.hipipal.sl4alib"
5+
android:versionCode="2"
6+
android:versionName="2.0">
7+
8+
<uses-sdk android:minSdkVersion="7" />
9+
</manifest>

assets/android.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var Android = function() {
2+
this._callbacks = [],
3+
this._id = 0,
4+
this._call = function(method, params) {
5+
this._id += 1;
6+
var request = JSON.stringify({'id': this._id, 'method': method, 'params': params});
7+
var response = _rpc_wrapper.call(request);
8+
return eval("(" + response + ")");
9+
},
10+
11+
this.registerCallback = function(event, receiver) {
12+
var id = this._callbacks.push(receiver) - 1;
13+
_callback_wrapper.register(event, id);
14+
},
15+
16+
this._callback = function(id, data) {
17+
var receiver = this._callbacks[id];
18+
receiver(data);
19+
},
20+
21+
this.dismiss = function() {
22+
_rpc_wrapper.dismiss();
23+
}
24+
};

assets/json2.js

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/need_network.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<head>
3+
</head>
4+
<body>
5+
<div style="margin:0 auto;padding:20px 20px 20px;font-size:15px;text-align:center;color:grey">Network is unavailable!</div>
6+
</body>
7+
</html>

assets/splash.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<html>
2+
<body>
3+
</body>
4+
</html>
13.1 KB
Binary file not shown.

libs/guava-r06.jar

912 KB
Binary file not shown.

libs/locale_platform.jar

11 KB
Binary file not shown.

0 commit comments

Comments
 (0)