I have created an app using CloudDB. I noticed that when there is no internet, I am getting following error
CloudDBError: java.net.UnknownHostException: Host is unresolved: clouddb.appinventor.mit.edu
To prevent this error I used the CloudDB.ErrorOccured and it worked in companion. But when I built the app, I am getting the error message.
I notice that it usually happens when there is no internet. Is there any way to prevent this error? When this error occur, the only way out is to switch on the internet or uninstall the app. Because it is a toast message and it keep appearing until the internet is on.
There is a classic American vaudeville routine that is something like this.
Patient: Doctor, when I do this with my arm, it hurts.
Doctor: That is easy, to fix. Don't do that!
Thank you , I have used the Net Extension and it gives the message which I have set. But after the set message is shown, it will give me the CloudDB error I mentioned before.
When the network is gone it will automatically go to the new screen. When network is back, it will come to the original screen automatically. So, the problem is solved