AndroidPushNotificationsDemo
AndroidPushNotificationsDemo copied to clipboard
A example of an android app that receives push notifications using MQTT.
``` 12-05 13:02:04.201: ERROR/com.app.service.PushService(5696): MqttException com.ibm.mqtt.MqttException at com.ibm.mqtt.MqttBaseClient.doConnect(Unknown Source) at com.ibm.mqtt.MqttBaseClient.connect(Unknown Source) at com.ibm.mqtt.MqttClient.connect(Unknown Source) at com.ibm.mqtt.MqttClient.connect(Unknown Source) at com.app.service.PushService$MQTTConnection.(PushService.java:446) at com.app.service.PushService.connect(PushService.java:284) at com.app.service.PushService.reconnectIfNecessary(PushService.java:378) at com.app.service.PushService.onStartCommand(PushService.java:191) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2490) at android.app.ActivityThread.access$1900(ActivityThread.java:130)...
this is the latest modify
Hi, I want to subscribe from topic. How can I subscribe from topic ? Best Regards,
In keepAlive() function in PushService line 292, as we can see: if "mConnection.sendKeepAlive();" this line throws a MqttException Exception and catched by the exception block, we will cancle both KEEP_ALIVE...
I used wmqtt.jar in my android app,but it throws noclassdef found javax.micoredition.io.Connector. Did you encounter that problem?How to deal with that? ## sorry,I solve that. I used the wrong jar...