Skip to content

Commit 81a405f

Browse files
author
devendram
committed
Update README.md
1 parent 1a8f1c2 commit 81a405f

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

‎android/README.md‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,35 @@ C2DM is hard to implement, and it imposes artificial limits for you to reach you
1616
C2DM is not recommended as it is a "broadcast" mechanism according to Google. C2DM is Slow, and limited to 1 message at a time.
1717
Use PubNub Instead!
1818

19+
1920
##### PubNub Android Sample App
2021

2122
This is a full android sample app with the ability to Subscribe and UnSubscribe from PubNub channels.
2223
By UnSubscribing from channels, you can save resources and ultimately save billing costs.
2324

2425
Checkout the example app for examples on how to use the API!
25-
It can be found at in the 3.4/examples/PubnubExample directory.
26+
It can be found in 3.4/examples/PubnubExample directory.
27+
28+
29+
##### Pubnub Android Sample App ( Subscribes at Boot )
30+
This is a sample app which subscribes to channel **"hello_world"** on receiving **android.intent.action.BOOT_COMPLETED** .
31+
The user is alerted about events like connect, message received etc. by notifications.
32+
33+
Code for the app can be found in 3.4/examples/SubscribeAtBoot directory.
34+
35+
36+
### Building Pubnub library jar :
37+
Pubnub library jar can be built by running following commands. ( Jar is already present in repository )
38+
```
39+
$ ant clean
40+
$ ant
41+
```
42+
43+
Pubnub library jar with debug messages enabled can be built by running following commands
44+
```
45+
$ ant clean
46+
$ and debug-build
47+
```
2648

2749
##Durability - Reconnecting / Resuming when a connection is lost or changed
2850
As the mobile device loses a connection, changes IP, etc, any current in-process subscribe operations can be forced

0 commit comments

Comments
 (0)