Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8434507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:40:31+00:00 2026-06-10T06:40:31+00:00

I am developing an android application and i need to access the server side

  • 0

I am developing an android application and i need to access the server side which is done as web pages in asp.net

below is the web page URL :

theWebPageURL?action=methodName&email=theEmail

i don’t know what methods shall i use to access this URL and send the email parameter to it and get the response.

i searched alot and none worked

can anyone help me please ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:40:33+00:00Added an answer on June 10, 2026 at 6:40 am

    I would recommend reviewing these two similar qustions:

    Make an HTTP request with android

    How to add parameters to a HTTP GET request in Android?


    UPDATE

    The below code is a working sample I put together based off of the answers in the two links above; if this helps you, be sure to thank them.

    For demonstration, the uri in this sample is being constructed into http://www.google.com/search?q=android.

    public class MainActivity extends Activity {
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
    
            // Construct the URI
            String uri = "http://www.google.com/search?";       
            List<NameValuePair> params = new LinkedList<NameValuePair>();       
            params.add(new BasicNameValuePair("q", "android"));             
            uri += URLEncodedUtils.format(params, "utf-8");
    
            // Run the HTTP request asynchronously
            new RequestTask().execute(uri);    
        }
    
        class RequestTask extends AsyncTask<String, String, String>{
    
            @Override
            protected String doInBackground(String... uri) {
                HttpClient httpclient = new DefaultHttpClient();
                HttpResponse response;
                String responseString = null;
                try {
                    response = httpclient.execute(new HttpGet(uri[0]));
                    StatusLine statusLine = response.getStatusLine();
                    if(statusLine.getStatusCode() == HttpStatus.SC_OK){
                        ByteArrayOutputStream out = new ByteArrayOutputStream();
                        response.getEntity().writeTo(out);
                        out.close();
                        responseString = out.toString();
                    } else{
                        //Closes the connection.
                        response.getEntity().getContent().close();
                        throw new IOException(statusLine.getReasonPhrase());
                    }
                } catch (ClientProtocolException e) {
                    //TODO Handle problems..
                } catch (IOException e) {
                    //TODO Handle problems..
                }
                return responseString;
            }
    
            @Override
            protected void onPostExecute(String result) {
                super.onPostExecute(result);                
                // result contains the response string.    
            }
        }
    }
    

    And, of course, don’t forget to add this to your manifest:

    <uses-permission android:name="android.permission.INTERNET" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am developing an android application in which the server side execution is done
I am developing an Android application which rely on .NET web service for dynamic
I am developing an android application in which I need to launch an Fragment
I am developing an android application and I need to display HTML page. I
I'm developing an android application. I need connect to sql server. I wrote a
I am developing an android application in which i need to give some features
I am developing an android application and i need to read words from a
I'm developing android application for CAR usage and I need that in phone or
I started developing an Android application that record a video and I need to
I am developing an android application where in each activity i need to pass

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.