Load URL from remote server


Last Updated:

  1. aptgopal

    aptgopal Member This Topic's Starter

    Joined:
    Dec 7, 2010
    Messages:
    22
    Likes Received:
    0
    Hi

    Please any one help me to load the URL from my remote server
    Also check my internet connection it is available means load the web view in the run time not in design time the internet connection not available means don't load the web view
    please any one help me with code

    Thanks in Advance
     

    Advertisement
  2. miXer

    miXer Well-Known Member

    Joined:
    Aug 12, 2010
    Messages:
    313
    Likes Received:
    51
    You can use this code to check if you have a connection:
    Code (Text):
    1. ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
    2. cm.getActiveNetworkInfo().isConnected()
     

Share This Page

Loading...