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

  • Home
  • SEARCH
  • 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 7992417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:33:27+00:00 2026-06-04T13:33:27+00:00

I want to access a parameterized url with Android. All it has to do

  • 0

I want to access a parameterized url with Android. All it has to do is “load” the page so that it does what its supposed to do (update database with parameters given).

I was having trouble just loading the url so I watched a video on regular HttpClient activity — just waiting for the response and gathering that information. I figured that it would still be loading the page and therefore also letting that page execute. I can’t even get that to run the page correctly or gather a response.

Here’s the code I used:

String url = "http://www.removed.com?param1="+param1+"&param2="+param2;

        try{
            HttpClient httpclient = new DefaultHttpClient();
            HttpGet httpget = new HttpGet(url);
            HttpResponse response = httpclient.execute(httpget);
            HttpEntity entity = response.getEntity();
            InputStream webs = entity.getContent();
            try{
                BufferedReader reader = new BufferedReader(new InputStreamReader(webs, "iso-8859-1"), 8 );
                test.setText(reader.readLine());
                webs.close();
            }catch(Exception e) {
                Log.e("Error in conversion: ", e.toString());
            }
        }catch(Exception e) {
            Log.e("Error in connection: ", e.toString());
        }

Please let me know what I can do to get this to execute the page and update the database. If I put in the parameters manually into a browser, it works.

  • 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-04T13:33:29+00:00Added an answer on June 4, 2026 at 1:33 pm

    You haven’t posted where you’re running this or what the error is, but the first two things that come to mind are:

    • Do you have INTERNET permissions set in the manifest?
    • If this is Honeycomb, is this running in a separate thread? – As of 3.0 you can’t run HTTP requests in the main display thread.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to access a integer and a string from a class to all
I want to access a MySQL database and I want to read+write data from+to
I want to access the iframe my page is in and resize it. By
I have created sqlite database using phonegap. I am able to access that databse
I want to access/add/read etc google calender from my Android program. I have tried
I want access to a storage folder but its actual location can vary with
I want to access the RootViewController of my App in one of its classes
i have bean that contain method [void return] and want access to this bean
I want to access a repository using both GIT and SVN clients. A way
I want to access the clipboard using Python 3.1. I've obviously come across win32clipboard,

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.