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 6134041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:18:21+00:00 2026-05-23T17:18:21+00:00

I am new to android and I want to communicate with the server to

  • 0

I am new to android and I want to communicate with the server to transfer sql data. I have read posts using raw http and also referred Unlocking Android chapter 6. But are there more clearer steps? Like where should I start my reading and what examples I should be looking at?

My end goal is to send and receive data from a sql database on a online server. I know i have to use a medium like php to perform query but my confusion is more on the android side.

  • 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-05-23T17:18:22+00:00Added an answer on May 23, 2026 at 5:18 pm

    Well there are alot of way you could accomplish this. Here is one.

    1. Write a backend in PHP (or the language of your choice) to run SQL queries and then take that data and serialize it into JSON.
    2. Then in the Android app request the Url of the PHP file.
    3. Use GSON or another JSON parser to parse the JSON into objects.
    4. Display the object on App (List, Map …)

    If you are having trouble with the Android side of it I would recommend looking at some documentation.

    EDIT
    Code for building a url using a map where the keys are the get parameters and the values are the value of the get parameters.

    if (vars != null) {
        Iterator<String> itr = vars.keySet().iterator();
        boolean first = true;
    
        // Append them to the url
        while (itr.hasNext()) {
            String key = itr.next();
            if (first) {
                builder.append("?" + key + "=" + vars.get(key));
                first = false;
            } else {
                builder.append("&" + key + "=" + vars.get(key));
            }
        }
    }
    builder.toString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a new developer on Android and I want store user data in
I'm using osmdroid on my new Android project (since I want to be able
i'm new to android.I want to add values to the listview as below.I have
I'm trying to let a (android) client communicate with a server. Sending data client
I have an application that communicates to server. I want my application to READ
im a new in android,I want get data in db to textview. but it
Hi guys I am new to android...I want to display a dynamic list of
Im new to android and I want to create kind of CRUD with SQLite.
I am new to android and i want to import some classes to my
I am a new android app developer and i want to use google map

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.