Hi I am working on android app in which I have integrated BigQuery. I see we are getting a lot of exception sometimes while inserting records in BigQuery tables. We are not
This Exception Thrown to indicate that the IP address of a host could not be determined.
This exception is also raised when you are connected to a valid wifi but router does not receive the internet. Its very easy to reproduce this:
Connect to a valid wifi Now remove the cable from the router while router is pluged-in
You will observe this error!!
You can't really solve this, You can only notify the user gracefully. (something like - "Unable to make a connection")
also make sure you have added the permission in AndroidManifest.xml
.
<uses-permission android:name="android.permission.INTERNET" />
Have you added the INTERNET permission to your manifest file.
If not, add below line outside the application tag in your AndroidManifest.xml
:
<uses-permission android:name="android.permission.INTERNET" />