Skip to content

Commit e5632b6

Browse files
author
unknown
committed
Updated example manifest.
1 parent fb3b19b commit e5632b6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@ And make sure to disconnect from the service in "onPause()" too! Note, this will
6565
unbindService(serviceConnection);
6666

6767
super.onPause();
68-
}
68+
}
69+
70+
Also, you must make sure NOT to forget your AndroidManifest, it's imperative that you make the following two changes!
71+
* Add a <service> tag that points to the Pubsub service, otherwise you can't connect to it.
72+
* Add a <uses-permission> tag with the INTERNET rule.

example/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
android:versionCode="1"
55
android:versionName="1.0">
66
<uses-sdk android:minSdkVersion="4" />
7+
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
78

89
<application android:icon="@drawable/icon" android:label="@string/app_name">
910
<activity android:name=".Pubsub_exampleActivity"
@@ -13,6 +14,7 @@
1314
<category android:name="android.intent.category.LAUNCHER" />
1415
</intent-filter>
1516
</activity>
17+
<service android:name="pubsub.io.android.Pubsub"></service>
1618

1719
</application>
1820
</manifest>

0 commit comments

Comments
 (0)