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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:38:22+00:00 2026-05-23T12:38:22+00:00

I want to build an app that talks to a database. Analogy would be

  • 0

I want to build an app that talks to a database.
Analogy would be the youtube app for example. It connects to a secure host (requires login and password), and then returns to user results based on their query.

What I need the app to do is:

  • Get user Login information (preferrably do it in a secure way and not store it unencrypted on the users phone – This is I think easily solved with GetPassword so not worried about this)
  • Once user clicks ‘login’ Authenticate the user on my site (no clue at all how to even research how to do this. I know where the source code for the login page from regular browser is but not sure what to do)
  • How do I do queries based on who the user is? (for example their email, and other related data).

I would love some specific examples as well as general, and if there is a tutorial for a way to get the phone app talking to a server I would love that as well. Or any other related tutorial for that matter.

  • 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-23T12:38:22+00:00Added an answer on May 23, 2026 at 12:38 pm

    You can use HttpPost and HttpGet requests to communicate with a server. HttpGet sends parameters in the url (ex: http://mysite.com/index.html?username=admin&password=cleartext). That is obviously not the preferred method for secure information. The HttpPost sends the data in a packet which is encrypted using https. Here’s an example of sending user entered data to a web page.

        EditText usernameText = (EditText)findViewById(R.id.username);
        EditText passwordText = (EditText)findViewById(R.id.password);
        String postParameters = "u=" + usernameText.getText() + "&p=" + passwordText.getText();
        try {
            DefaultHttpClient kccClient = new DefaultHttpClient();
    
            HttpPost postRequest = new HttpPost("http://www.mywebsite.com/login.php");
            HttpEntity postEntity = new StringEntity(postParameters);
            postRequest.setHeader("Content-Type", "application/x-www-form-urlencoded");
            postRequest.setEntity(postEntity);
    
            HttpResponse postResponse = kccClient.execute(postRequest);
            HttpEntity postResponseEntity = postResponse.getEntity();
    
            responseText.setText(EntityUtils.toString(postResponseEntity));
        } catch(Exception e) {
            responseText.setText(e.getMessage());
        }
    

    To use a secure connection, just change the web url to https://www.mywebsite.com/login.php.

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

Sidebar

Related Questions

I want to build an app that works like custom URL app where I
I want build a sketch pad app on iPhone, I assume that this type
I want to build an application that exports user data of another app. The
I want to build scripts that automatize things for me. Here is an example
I want to build an app that renders events into it's UI but I
Im fairly new to android dev and I want to build an app that
I want to build an app that is basically a subscription service for text
I want to build an app that use in the backend Ruby on Rails.
I want to build an app that uses core data, but all the tutorials
i want to build an app that there is a menu in the app(the

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.