[SOLVED] How to check ubidots connection inside the asynctask

My app crashed in doinBackground method on connection lost.how to handle this

You should check by yourself if you have connection to Internet or not, and then take the necessary measures to handle how your application works without Internet.

Here’s a question in StackOverflow that you may find useful.