Forum: Android

Here is a forum space for SDK: Android.

220. Methods on PTTChannel all return -1

I'm developing a custom Android mobile application based on the SDK.
There are no issues when I'm using the PTTClient object, we can login, retrieve channels...
However all operations we do on a PTTChannel object (like join() or sendPublicMessage()) fail with a result of -1.
Occasionally those methods will work fine but we do not really what is the scenario to make them work.
Is there a way to retrieve a more complete error message than "-1" ?

Thanks

Jun 14 '21 at 07:05 (GMT0) created by Olivier Vanekem

 
Dear Olivier,
Could you tell me what your SDK version is?
Regards,
ProPTT2

Jun 14 '21 at 14:09 (GMT0) created by ProPTT2 dev

 
 
I'm using SDK version 3.0.1.

Jun 14 '21 at 15:00 (GMT0) created by Olivier Vanekem

 
 
Please try to use SDK 4.0.x.
Currently we are supporting only 4.0.x.
And please check the sample HelloPTT.
Whether it work or not like your app.
Regards,
ProPTT2

Jun 14 '21 at 15:23 (GMT0) created by ProPTT2 dev