Using DNS Lookup

by Breno » Thu, 30 Apr 2009 04:13:59 GMT

Sponsored Links

             Is there any API to use dns lookup in android? my app
connect to a server, and to final user, we don't want that user need
to enter the ip, but a hostname. I found dnsjava, a lib to handle
that, but if Android would have this, it becomes better.

Thanks a lot


Using DNS Lookup

by alan » Thu, 30 Apr 2009 16:29:10 GMT

 If you really need to you can use InetAddress but most of the network
apis will accept a host name and do the dns lookup for you


Sponsored Links

Other Threads

1. Update kernel from 2.6.27 to 2.6.29 ... help?

Nope, sorry, it's more complex than that.

Odds are, it will not :)

good luck,

greg k-h


2. sqlite multithreading

Hi all, i need to use the SqliteDataBase from from multiple threads.
According the the sqlite documentation sqlite is threadsafe if it's
compiled with SQLITE_THREADSAFE = 1 and in android this can be done by
calling SQLiteDatabase.setLockingEnabled(true) ( the default value is
also true so it works even if you don't call it). So i need different
sqlite connection for all threads that will be using the database. How
can i open multiple database connections with getWritableDatabase() i
got Exception -  Leak found ... SQLiteDatabase created and never


3. Magic rasa nexus one

4. BUILD_TINY_ANDROID=true option for building android

5. Enabling DSP Codecs On Zoom2 (Camera Preview Issue)

6. How to run the browser and adbd on OMAP3EVM board

7. string to uppercase not working