Re: [android-developers] UnknownHostException is not logged

2013-02-05 Thread BoD
FYI there was already an open bug for this: http://code.google.com/p/android/issues/detail?id=21436 I really think this change should be reverted, instead of 'fixing' the javadoc. Seriously, the logger should not decide for the developer what is an important exception or not - this doesn't make

Re: [android-developers] UnknownHostException is not logged

2013-02-05 Thread b0b
On Tuesday, 5 February 2013 11:46:42 UTC+1, BoD wrote: FYI there was already an open bug for this: http://code.google.com/p/android/issues/detail?id=21436 I really think this change should be reverted, instead of 'fixing' the javadoc. Seriously, the logger should not decide for the

Re: [android-developers] UnknownHostException is not logged

2013-01-28 Thread Robert Greenwalt
I think a case could also be made for logging the UnknownHostException without the stack trace (just the server name) as an in between step. Thanks for the bugreport. On Fri, Jan 25, 2013 at 3:08 PM, Boris Burtin bbur...@gmail.com wrote: Thanks for responding. I can see the reasoning. Just

[android-developers] UnknownHostException is not logged

2013-01-25 Thread Boris Burtin
I was racking my brain, trying to figure out why one of my users was having trouble connecting and nothing was in the logs. Finally I looked at the Android source and realized that the logging code explicitly ignores UnknownHostException. Even worse, the Javadoc doesn't specify this

Re: [android-developers] UnknownHostException is not logged

2013-01-25 Thread Robert Greenwalt
I think the log was getting quite full of these exceptions (mobile devices often don't have a network and apps aren't so good at checking that first) so we stopped logging them. If you look at the blame for this code you can see the reasoning. On Fri, Jan 25, 2013 at 2:31 PM, Boris Burtin

Re: [android-developers] UnknownHostException is not logged

2013-01-25 Thread Robert Greenwalt
You can always do the dns lookup yourself and log an error if it's invalid. The DNS cache will ensure it's not wasted effort. On Fri, Jan 25, 2013 at 2:39 PM, Robert Greenwalt rgreenw...@google.comwrote: I think the log was getting quite full of these exceptions (mobile devices often don't

Re: [android-developers] UnknownHostException is not logged

2013-01-25 Thread Boris Burtin
Thanks for responding. I can see the reasoning. Just seems weird that the behavior isn't documented, and that there's no way for me to override it. I'll file a bug for updating the Javadoc. On Friday, January 25, 2013 2:40:10 PM UTC-8, Robert Greenwalt wrote: You can always do the dns

[android-developers] UnknownHostException

2011-03-08 Thread vani reddy
Hi , Why do i keep getting UnknownHostException when i run application in emulator and device,Please tell me how to resolve the asap,its too urgent.. -- Regards, Vani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] UnknownHostException

2011-03-08 Thread Kostya Vasilyev
Did you add internet permission to the manifest? 08.03.2011 12:49 пользователь vani reddy vani.redd...@gmail.com написал: Hi , Why do i keep getting UnknownHostException when i run application in emulator and device,Please tell me how to resolve the asap,its too urgent.. -- Regards, Vani

Re: [android-developers] UnknownHostException

2011-03-08 Thread vani reddy
yes,and now its working in emulator but its not working on device. i am getting the below err msg java.net.UnknownHostException: Host is unresolved: beemediahive.sitesystems.ca:80 at java.net.Socket.connect(Socket.java:1037) 2011/3/8 Kostya Vasilyev kmans...@gmail.com Did you add internet

Re: [android-developers] UnknownHostException

2011-03-08 Thread vani reddy
In emulator it started working after i referred this http://www.storm-frandsen.dk/jesper/pages/How_to_fix_java.net.UnknownHostException_on_Android.php 2011/3/8 vani reddy vani.redd...@gmail.com yes,and now its working in emulator but its not working on device. i am getting the below err msg

Re: [android-developers] UnknownHostException

2011-03-08 Thread Kostya Vasilyev
Try going to that URL from the device's browser, if you're still having problems, it's not your program, it's how the device and your cellular network are set up. 08.03.2011 13:30 пользователь vani reddy vani.redd...@gmail.com написал: yes,and now its working in emulator but its not working on

Re: [android-developers] UnknownHostException

2011-03-08 Thread vani reddy
OK .. 2011/3/8 Kostya Vasilyev kmans...@gmail.com Try going to that URL from the device's browser, if you're still having problems, it's not your program, it's how the device and your cellular network are set up. 08.03.2011 13:30 пользователь vani reddy vani.redd...@gmail.com написал:

[android-developers] UnknownHostException in Android Emulator

2010-06-23 Thread apekshag
Hi, I am trying to run the 'Google Buzz API Sample for Android' sample and I get the error 'java.net.UnknownHostException: www.google.com' on the last line: GoogleOAuthGetTemporaryToken temporaryToken = new GoogleOAuthGetTemporaryToken(); temporaryToken.signer =

[android-developers] UnknownHostException

2010-04-23 Thread ls02
From time to time I get java.net.UnknownHostException when calling HttpURLConnection.connect. Obviously the server does exist and I can successfully execute the same URL on my PC browser. The problem does not happen always, only sometimes. But if it does happen ussually I need to restart the app

[android-developers] UnknownHostException

2009-07-22 Thread Guru
I saw this thread(since it is a dead thread--starting a new one): http://groups.google.com/group/android-developers/browse_thread/thread/cd5be36a07ad1a3d/ba559f2e2ff06e32#ba559f2e2ff06e32 I have also encountered such problems in the emulator. What I was interested in knowing is that ,is this an

[android-developers] UnKnownHostException

2009-07-13 Thread senthil sen
Hi friends, I am also facing the same issue.. When i run my application for sometime, suddenly the network is getting disconnected and i am getting the unknownhostexception in my application. In that case if i check the browser, the same exception occurs.I don't know why internet is getting

[android-developers] unknownhostexception in my app on device

2009-07-12 Thread ravi
Hi All, I have installed my application for picasa on G1 device and is trying to login to google through googl API. Sometime I am able to login but sometime it gives me IOException java.net.UnknownHostException: Host is unresolved: www.google.com:443 my code is static AndroidHttpClient

[android-developers] UnknownHostException on 1.5 emulator

2009-05-21 Thread Peter Jeffe
If I leave the 1.5 emulator running for a while (overnight, maybe less) it starts getting unknown host errors like this: 05-21 18:03:23.618 2663 2683 I InetAddress: Unknown host www.google.com, throwing UnknownHostException It doesn't matter what app is trying to access the net, it always

[android-developers] UnknownHostException while Connecting to URL

2009-01-27 Thread Mathias
Hi, I'm trying to read a file via http. (http://www-lehre.inf.uos.de/ ~mmenning/balingen.ts). I wrote a Connector Class: package gip.android.ogl; import java.io.IOException; import java.io.InputStream; import java.net.URL; import android.util.Log; public class DataConnectorTS {