Closed GoogleCodeExporter closed 8 years ago
Update: I found new information in the Log.
The code goes through the init function into the login function.
it throws the error: java.net.UnknownHostException: www.google.com
I am using the virtual android device to test on. Even though the virtual
device is able to access the internet just fine, perhaps it is causing problems
for the app resolving the domain name.
Original comment by jereme.g...@gmail.com
on 18 Oct 2012 at 1:37
Update: real phone did not resolve the issue.
I stepped through the code in debug mode, but did not find any new information.
The UnknownHostException for (www.google.com) is tripped deep inside the
HttpsURLConnectionImpl$HttpsEngine. I tried looking at the URL as it was being
built and passed into the functions, but I could not find anything wrong with
it.
So far I am still stumped.
Original comment by jereme.g...@gmail.com
on 20 Oct 2012 at 3:00
Resolution: I feel like an idiot now. Turns out I forgot to request Internet
privileges. The following link guided me to the solution:
http://stackoverflow.com/questions/3557996/android-httprequest-java-net-unknownh
ostexception
I added this line:
<uses-permission
android:name="android.permission.INTERNET" />
To the AndroidManifest.xml file and all was good in the world again.
Original comment by jereme.g...@gmail.com
on 20 Oct 2012 at 11:00
Closing bug. Thank you!
Original comment by teisentr...@gmail.com
on 11 Dec 2012 at 11:31
Original issue reported on code.google.com by
jereme.g...@gmail.com
on 18 Oct 2012 at 1:11