Skip to content

Commit cb29b9c

Browse files
Andreas GöranssonAndreas Göransson
authored andcommitted
Added license information. (GPLv3)
1 parent 586d19f commit cb29b9c

File tree

11 files changed

+1553
-11
lines changed

11 files changed

+1553
-11
lines changed

AndroidManifest.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
pubsub.io Android Library
4+
5+
Copyright (C) 2011 Andreas Göransson
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
-->
220
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="pubsub.io.android">
21+
package="pubsub.io.android" >
422

5-
<application>
6-
</application>
23+
<application >
24+
</application>
725

826
</manifest>

bin/pubsub_android.jar

566 Bytes
Binary file not shown.

example/AndroidManifest.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
pubsub.io Android Example
4+
5+
Copyright (C) 2011 Andreas Göransson
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
-->
220
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
321
package="pubsub.io.android.example"
422
android:versionCode="1"
523
android:versionName="1.0">
624
<uses-sdk android:minSdkVersion="4" />
725
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
826
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
27+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
928

1029
<application android:icon="@drawable/icon" android:label="@string/app_name">
1130
<activity android:name=".Pubsub_exampleActivity"

example/gpl-3.0.txt

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

example/res/layout/main.xml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
pubsub.io Android Example
4+
5+
Copyright (C) 2011 Andreas Göransson
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
-->
220
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
321
android:layout_width="fill_parent"
422
android:layout_height="fill_parent"
523
android:orientation="vertical" >
6-
24+
725
<TextView
826
android:id="@+id/textView1"
927
android:layout_width="fill_parent"
@@ -12,6 +30,15 @@
1230
android:text="@string/app_name"
1331
android:textAppearance="?android:attr/textAppearanceLarge" />
1432

33+
<TextView
34+
android:id="@+id/textView4"
35+
android:layout_width="fill_parent"
36+
android:layout_height="wrap_content"
37+
android:layout_marginLeft="5dp"
38+
android:layout_marginRight="5dp"
39+
android:text="@string/filter_target"
40+
android:textAppearance="?android:attr/textAppearanceSmall" />
41+
1542
<Button
1643
android:id="@+id/button1"
1744
android:layout_width="fill_parent"
@@ -32,7 +59,7 @@
3259
android:layout_height="wrap_content"
3360
android:layout_weight="1"
3461
android:text="Publish accelerometer" />
35-
62+
3663
<TextView
3764
android:id="@+id/textView2"
3865
android:layout_width="fill_parent"
@@ -45,7 +72,6 @@
4572
android:gravity="center"
4673
android:text="Large Text"
4774
android:textAppearance="?android:attr/textAppearanceLarge" />
48-
4975
</LinearLayout>
5076

5177
<LinearLayout
@@ -62,7 +88,7 @@
6288
android:layout_margin="0dp"
6389
android:layout_weight="1"
6490
android:text="Publish GPS" />
65-
91+
6692
<TextView
6793
android:id="@+id/textView3"
6894
android:layout_width="fill_parent"
@@ -75,8 +101,7 @@
75101
android:gravity="center"
76102
android:text="Large Text"
77103
android:textAppearance="?android:attr/textAppearanceLarge" />
78-
79-
</LinearLayout>
104+
</LinearLayout>
80105

81106
<ListView
82107
android:id="@+id/listView1"

example/res/values/strings.xml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
pubsub.io Android Example
4+
5+
Copyright (C) 2011 Andreas Göransson
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
-->
220
<resources>
3-
<string name="hello">Hello World, Pubsub_exampleActivity!</string>
4-
<string name="app_name">Pubsub_example</string>
21+
<string name="app_name">pubsub.io example</string>
22+
<string name="filter_target">Listerning to: "version" $gt 0.1</string>
523
</resources>

example/src/pubsub/io/android/example/Pubsub_exampleActivity.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* pubsub.io Android Example
3+
* Copyright (C) 2011 Andreas Göransson
4+
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
119
package pubsub.io.android.example;
220

321
import java.util.ArrayList;

0 commit comments

Comments
 (0)