Tuesday, December 4, 2012

[android-developers] Re: Handle WifiDirect Invitation Decline

The only way I know that will actually work is building in a timeout on the peer that is having the invitiation declined. If the connection didn't succeed within 30 or 60 seconds for example you can tell the user the connection didn't fail. Unfortunately you won't know the exact reason...

Another way that "might" work is browsing the Android source, checking the Android logs and then using reflection if possible to hack your way into the required information so you know why, when and how connecting failed. But that's the rather challenging option with a chance even then you can't solve it.

I'd go for the first option first, it's inaccurate and not super user friendly, but better than waiting for the connection forever and never telling the user anything.

On Friday, November 23, 2012 5:04:48 PM UTC+1, Zach wrote:
Hi
How to handle if the Group Owner declines the request to join the group? Is there any call back available for the same?
Thanks

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment