Can麓t set the emulator麓s dns servers on windows

by Brion Emde » Mon, 05 Apr 2010 09:54:47 GMT


Sponsored Links
 That's a funny looking DNS that you're entering. How are you finding
your DNS?

I'm not saying those are not right, but I suspect that if they were
right, I your emulator would work.





--



Can麓t set the emulator麓s dns servers on windows

by Gabriel Sim玫es » Mon, 05 Apr 2010 10:39:00 GMT


 Actualy 8.8.8.8 is googles open DNS
The second should be 8.8.4.4





--


Sponsored Links


Can麓t set the emulator麓s dns servers on windows

by Gabriel Sim玫es » Tue, 06 Apr 2010 06:24:48 GMT


 Well,

Running the emulator manually with parameters -dns-server and -
verbose, I found out that the emulator complains it could not resolve
the DNS server specified (which is an IP for Google DNS, or any other
dns you want).
It says its going to use the default DNS but seems not to find any
defaut dns.
When I open the emulators browser, obviously no DNS can be resolved,
but all the websites work if I use their IP.

isnt there a way to force the emulator to use an IP address as a dns
server?
Is there anything I can do or will I be forced to develop on linux (so
everytime I go back and forth systems I face problems with accents and
special caracters on my source code).

Thanks






--



Can麓t set the emulator麓s dns servers on windows

by Brion Emde » Tue, 06 Apr 2010 07:04:15 GMT


 I think that you need to find out what your DNS servers are for your
ISP. There are instructions on the internet for Window, Mac and Unix
on how to do this.

On a windows machine, you run ipconfig /all and look for nameserver or
DNS lines and copy those IP addresses.

For example, my DNS servers are:

68.87.85.102 and 68.87.69.150

so I set them for the emulator, like this:

-dns-server 68.87.85.102,68.87.69.150









--



Can麓t set the emulator麓s dns servers on windows

by Bob Kerns » Tue, 06 Apr 2010 09:18:15 GMT


 ou don't generally have to use your ISP's DNS servers, you can use
any DNS servers you want.

I use OpenDNS myself, and ignore Comcast's.

However, occasionally some firewall or other security software will
block DNS to other servers. So this is worth a try.

On Apr 5, 4:03pm, Brion Emde <brione2...@gmail.com> wrote:

--



Can麓t set the emulator麓s dns servers on windows

by Gabriel Sim玫es » Tue, 06 Apr 2010 11:35:13 GMT


 hats up Bob? hehehehe

Well, adding -dns-server (my actual dns) on Eclipse doesnt solve the
problem: I still get "no network connection" when I open the browser.
Using the same machine and the same network connection, everything
works great on linux. Unfortunately linux is not my main OS, hehehe.

On 5 abr, 22:17, Bob Kerns <r...@acm.org> wrote:

--



Can麓t set the emulator麓s dns servers on windows

by vhagerty » Wed, 21 Apr 2010 09:51:28 GMT


 After wrestling with this for several days and following quite a few
wrong suggestions, I found a solution that not only made a little
sense, more importantly it actually worked, assuming this problem is
occurring on a wireless connection.

Here's the source of this solution:

 http://blog.creativeworkline.com/2010/03/android-emulator-cannot-resolve-dns.html 

Bottom line: The emulator apparently uses the same DNS settings used
by the LAN card, which probably isn't going work if you're on a
wireless connection. Simply disable your LAN connection in Internet
Connections and suddenly everything's groovy.

Should've occurred to me when I noticed it worked fine on the company
network but not at all on wireless.

Hope this helps.

-Vaughn




--



Other Threads

1. alarm setting

i am facing issues for  setting alarm through android code.
I  gone through  most of the documents  on net  about alarmmanager and
how to use it but  nothing worked.

please  find  the code am using  ,is it the right way for  setting
alarm .
for  eg: i  am setting it for  8 AM morning .but  its not  working  i
am strugling on it for 3 hrs.
i am testing it on emulator(emulator time 7.50am).
the alarm  is not starting at  8 am its  just  satrting at the
apllication lauch time itself without waiting 10mnts
:(
Calendar calendar = new GregorianCalendar(); or // Calendar calendar =
new Calendar();
calendar.setTimeInMillis(System.currentTimeMillis());
calendar.set(Calendar.HOUR_OF_DAY,8);
 alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
pendingIntent);

Thanks  you

-- 

2. setting alarm

calendar.set(Calendar.HOUR_OF_DAY,1);
calendar.set(Calendar.MINUTE,12);

This is 1:12am, not 8am.

Also:

-- Use Calendar.getInstance()
-- Do not forget that if it is after 1:12am today (which is to say,
the bulk of the day), this time will be in the past






-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!

-- 

3. setting alarm

4. ImageView change image

5. OutofMemoryError on Thunderbolt: HttpClient.execute

6. Low latency audio

7. Monkeyrunner error for device