Skip to content

Commit cfdf5fb

Browse files
author
devendram
committed
fixed the example code which was using old api
1 parent 9e49a3a commit cfdf5fb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • blackberry/examples/PubnubExample/src/com/pubnub/examples/blackberry

‎blackberry/examples/PubnubExample/src/com/pubnub/examples/blackberry/Subscribe.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ protected void initScreen() {
3131

3232
public void fieldChanged(Field field, int context) {
3333
Hashtable args = new Hashtable();
34-
args.put("channel", txtChannel.toString());
3534

3635
try {
37-
_pubnub.subscribe(args, new Callback() {
36+
_pubnub.subscribe(txtChannel.toString(), new Callback() {
3837
public void connectCallback(String channel) {
3938
notifyUser("CONNECT on channel:" + channel);
4039
}

0 commit comments

Comments
 (0)