Android App crashes when inactive due to wrong function call in AlarmPingSender [message #1705899] |
Wed, 19 August 2015 18:04  |
Eclipse User |
|
|
|
Hey there,
So I have the MqttService running and everything goes smoothly. I can connect, publish and subscribe without any problems. When if I stay inactive for a few minutes, the app crashes.
I know where the problem is. Its in the AlarmPingSender.java file. In the onReceive function there is a function call which goes like this:
MqttToken token = AlarmPingSender.this.comms.checkForActivity(pingCallback);
where comms is a ClientComms object. Now, in the ClientComms class there is a function checkForActivity() which does not take any arguments.
So how do I fix this?
I have downloaded the source and when I export it as a jar using Eclipse it does not work in my app. I get resolution errors for android.supportv4. I've added the required libraries for android.supportv4 but it still doesn't work.
Any help would be really appreciated. Thanks!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07263 seconds