check your system properties - in particular net.dns1 and net.dns2.  I
suspect they are not set.  They normally are set by ConnectivityService.  If
you are faking your network setup (USB?) then you may not be going through
normally channels and getting these set for you.  The best thing to do is
flesh out your implementation with a real NetworkStateTracker for your
particular network, hooked up to the ConnectivityService.  In the shorter
term though you could just "adb shell setprop net.dns1 8.8.8.8".

R

On Wed, Aug 11, 2010 at 10:09 PM, deven <[email protected]> wrote:

> Dear all,
>             I am running the CTS on the Arm based phone. When I tried
> to run the Network related test cases i.e.
>
> android.core.tests.luni.net-->
> org.apache.harmony.luni.tests.java.net.HttpURLConnectionTest--
> test_Permission
>
>
> I am getting the following Error::
> java.net.UnknownHostException: Host is unresolved: news.yahoo.com:80
> at java.net.Socket.connect
>
> I am getting the above error in the "android.core.tests.luni.net" test
> package...
> and due to this error around 179 test cases are getting
> failed....Please help me out..
> Is there any environment setting issue in the setting up the
> target...I have connected the target with the USB to my Fedora system.
> additionally target have the 3G Sim connected with It.
>
> Please Help!!!!
>
> Thanks
> Deven
>
> --
> unsubscribe: 
> [email protected]<android-porting%[email protected]>
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to