1. Download our Official Android App: Forums for Android!

Apps Load URL from remote server

Discussion in 'Android Development' started by aptgopal, Dec 7, 2010.

  1. aptgopal

    aptgopal Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    22
    Joined:
    Dec 7, 2010

    Dec 7, 2010
    22
    0
    15
    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 Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    313
    Joined:
    Aug 12, 2010

    Aug 12, 2010
    313
    51
    53
    Norway
    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...