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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:40:33+00:00 2026-05-23T08:40:33+00:00

I need to store data on a SQL on the localserver(for now) from an

  • 0

I need to store data on a SQL on the localserver(for now) from an Android application. I wanted to know how this can be done? I have read about “having to use a web service like php for the job” and “google app engine” but have not yet clearly understood the whole process/concept. It would be amazing if anyone out there could provide me start to end tutorials on developing a simple app mentioned below.

An app which has a text input box and when the user enters the message and clicks send the message should be stored in the local server database. Another button called listener which will take the message from the database and show it on the screen.

If you give me guidelines on how to develop the app above it wud be really great.

  • 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-23T08:40:34+00:00Added an answer on May 23, 2026 at 8:40 am

    You definitely want a middle layer out there between the internet and your mySql database. It would be very foolish to allow something from the internet to directly connect into your DB, even if on a limited user.

    My suggestion:

    • Create a very limited user with absolute least priveledges possible.
    • Create a few php pages you can hit with a HttpClient in android, POST to them your username/pw for the limited user acct. You can be even more cautious with security here if you want.
    • Each php page will execute a predefined sql using the supplied username/pw and possibly a parameter (if so, research how to guard against SQL injection!) and return the result in json which is easily parsed in android. (See JSONObject in android)
    • Simply httppost to those url’s when you need the data.

    This is also pretty close to RESTful web implementation, which is nice in it’s own right and will make life easier down the road 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing SQL Server database, where I store data from large specific
We have built an desktop(windows) application that needs SQL Server to store the data.
I have an application which uses Sql Server Express Edition to store data. I
I want to store images into sql using c# application. So I have this
I need to develop an application which stores data in a SQL Server 2005
I have a .Net application which must store all it's local data in isolated
I'm not an expert with either System.Data nor SQL Server, but have a need
I am trying to store the data from my sql database into an array.
I need to store two values, id and name returned from sql query into
I have a situation where I need to store a graph data structure in

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.