Date in cloud e check internet

33 views
Skip to first unread message

Carlos Andre

unread,
Nov 13, 2019, 7:15:35 PM11/13/19
to MIT App Inventor Forum
I need to store a date in the cloud and my app should fetch that date only when there is an internet connection. I tried with cloudb but when there is no internet generates constant errors. Can you do it?

Chris Ward

unread,
Nov 14, 2019, 1:55:28 AM11/14/19
to MIT App Inventor Forum
Hello Carlos

Well of course, if your App attempts to download from anywhere on the Internet and there is no connection, that will trigger an error message. Generally speaking, as an App User, you would want that information so that you could then do something to fix it, such as enabling a WiFi or Data connection.

We would need to see your blocks, but I'm guessing you get constant error messages because your app is constantly trying to download? App Inventor can catch error messages, so you might like to try that if you don't want to keep the App User informed:

ignore error message.png






Carlos Andre

unread,
Nov 14, 2019, 5:08:01 PM11/14/19
to MIT App Inventor Forum
Hello Chris!
did not work. The screen displays the message "ClouDBError.java.net.UnknownHostexception: cloudb.appinventor.edu". does not generate screen error

Chris Ward

unread,
Nov 14, 2019, 5:23:37 PM11/14/19
to MIT App Inventor Forum
Hi Carlos

There is a free code snippet on my website - that should reveal the error number to suppress.



Carlos Andre

unread,
Nov 18, 2019, 9:06:31 AM11/18/19
to MIT App Inventor Forum
Thank you for your help. I managed to solve it like this:

blocks.png


Reply all
Reply to author
Forward
0 new messages