Google API Client connect method is freezing the UI when no Internet connection

Viewed 689

I read in the documentations that the connect method "returns immediately, and connects to the service in the background." But I don't think it's the case, at least for me.

I even create a separate thread for the connect method but the UI still freezes every time onStart method (where I'm trying to connect) is called.

NOTE: This happens only when there is no internet connection.

So how do I get around this? Thanks

1 Answers
Related