rsouissi Hi, When the midlet is streaming and the connection becomes slow, it switches to polling mode but stays there and doesn't return to streaming even when the connection is better. Any way to have the MIBP library control this and return to streaming as soon as possible ? Thanks A
Alessandro Alinone Hi, The status change from STREAMING to POLLING can happen only after a disconnection. That means the connection doesnt't just get slow, but completely stops for some time, resulting in the following status transitions: STREAMING --> STALLED --> CONNECTING --> POLLING Them if polling works fine, it doesn't switch to streming mode anymore, unless a new disconnection happens and that worflow starts again. To control the transitions in the workflow above, you can act on the ConnectionPolicy object, customizing the timeouts that determine any status transition.
rsouissi Thanks, But I think there is a bug in ConnectionPolicy.setKeepAliveInterval. It always throws an exception regardless of the value you pass in: This is not a valid value for keepAliveMillis: 10000. Please use a positive number