Using DNS Lookup

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


Sponsored Links
 Hi,

             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

Breno
--~--~---------~--~----~------------~-------~--~----~



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. gallery question

Hi all,

I'm working with the Gallery (which is terrific btw), and I have a
simple question.  Right now, in order to scroll left and right in the
gallery via the keypad, I have to move my cursor down to the gallery
before I do anything.

I want to make it so that regardless where the cursor is, pressing
DPAD_LEFT or DPAD_RIGHT will scroll the gallery left and right.  I've
been able to do this through overriding onKeyDown(), but that takes
away the default scrolling animation.  How do I do this and keep the
scrolling animation in?

Thanks,

James


                    case KeyEvent.KEYCODE_DPAD_LEFT:
                                int position;
                                if ((position = 
f_gallery.getSelectedItemPosition())>0);
                                {
 
f_gallery.setSelection(position-1);
                                        f_gallery.invalidate();
                                }
                                return true;
                        case KeyEvent.KEYCODE_DPAD_RIGHT:
                                if ((position =
f_gallery.getSelectedItemPosition())<(f_gallery.getCount()-1));
                                {
                                        f_gallery.setSelection(position
+1);
                                        f_gallery.invalidate();
                                }
--~--~---------~--~----~------------~-------~--~----~

2. Android SDK lacks files in the /tools folder?

Dear all
I'm trying to get going with Android...however, I seem to have run
aground...

I've installed the SDK and the Eclipse ADT plugin. However, I'm unable
to configure the SDK from the Eclipse ADT preferences, as the SDK
doesn't seem to have any command line tools in the <SDK_Install>/tools
folder. There is only one folder called 'images' which seems to
contain some UI files.

I am using android-sdk_m5-rc15_linux-x86 on Ubuntu Gutsy and Eclipse
Europa 3.3.2. I'd be grateful for any pointers.

TIA

Satish



--~--~---------~--~----~------------~-------~--~----~

3. Does Android support IMS and SIP?

4. Device owner/user info

5. Mocking the Camera in M5

6. Running Background Process

7. How to connect to the net through android emulator.?