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. Oot: Kenapa hrs pake email addrs

As per subject...kaenya msh bnyk yg from field msh pake email addrs n kadang
ada yg sulit to pronounce, kadang ada nyeleneh, ada yg bikin mesem2.
Up to masing2 sich...tapi khan enakan make nama or mungkin well known alias
spt Sir Jakontil or Sir Lesjaw....
Supaya gampang ajah diinget disebut n biar cepet ngakrab getohhh.

Sekedar ala kadarnya dari sayah

Rgds

Venomously Brilliant
Cyanogen Mod
mypin 2191044D

-- 
"Indonesian Android Community [id-android]" 

2. Animation and ListView

Hi

Im using a listview to display some self defined objects. this works great.
then i wrote an animation to smoothly slide down the list:

 *Code:*
public static void downFromTopAnimation(ViewGroup panel, Context ctx) {

  AnimationSet set = new AnimationSet(true);

  Animation animation = new AlphaAnimation(0.0f, 1.0f);
  animation.setDuration(100);
  set.addAnimation(animation);

  animation = new TranslateAnimation(
      Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f,
      Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f
  );
  animation.setDuration(500);
  set.addAnimation(animation);

  LayoutAnimationController controller =
      new LayoutAnimationController(set, 0.25f);
  panel.setLayoutAnimation(controller);

}


i call this with downFromTopAnimation(listview, context); This works really
great, but if a expand the list with more objects, the whole list is slide
down with the animation but i'd like to change it so that only the new items
slide down smoothly.

has anybody any hint how to do this??

thanks!!!!

-- 

3. Is there a way to force deletion of User Data on Application upgrade?

4. Is there a way to force deletion of User Data on Application upgrade?

5. Progress Bar in every row of ListView

6. PMessenger di Iphone Uhuiii .... di N1 Sebel ...

7. Steps to transfer a simple object from server to android using XML