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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:44:36+00:00 2026-05-23T11:44:36+00:00

I am attempting to write an Android application that will use the publisher/subscriber model

  • 0

I am attempting to write an Android application that will use the publisher/subscriber model to get data from a database that will be hosted on some remote server. This is a prototype application so I am just going to host the server on my home PC. I am using Ubuntu. I have read and researched this topic but there is a wide array of scattered answers. I have a lot of questions dealing with this but for starters..

  • What is the best method for hosting a server that contains a database, to use with android?
  • does it matter what type of database I use?
  • Can I use the android SQLite APIs for getting data from the database

I read in multiple places that it is not kosher to connect to a database from anything over the internet directly, especially from a mobile device. So I think I need to use some sort of HTTP, REST or something of the sort.

  • 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-23T11:44:36+00:00Added an answer on May 23, 2026 at 11:44 am

    What is the best method for hosting a server that contains a database?

    From the standpoint of server communicating with database, normally there is no difference whether it is Android or any other client. What is important is that you define well protocol of communicating between server and client (Android in your case). The best probably would be some http based protocol (REST may be).

    does it matter what type of database I use?

    For the client it does not matter. Android will be just another client. So it does not matter for you. Choose the one that is easiest to get going and well adopted. MySql, Postgres are good candidates.

    Can I use the android SQLite APIs for getting data from the database.

    No

    I read in multiple places that it is not kosher to connect to a database from anything over the internet directly

    You surely don’t want to do it. More importantly, when you design your server you may want to separate code that talks to the database from code that talks to your client. That would be a basis of service oriented architecture.

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

Sidebar

Related Questions

I'm attempting to write a wrapper so that my C# application can use a
I'm attempting to write a Twitter Powershell script that will use community created interfaces
I am attempting to write an application that uses libCurl to post soap requests
I'm attempting to write a Python C extension that reads packed binary data (it
I am attempting to write a one-line Perl script that will toggle a line
I am attempting to write some code that will expediently process video frames. I
I am attempting to write some JUnit tests for my android application. The application
I am attempting to write an ASP.net web service that will be utilized by
I'm attempting to write a function in assembly that will detect if a longer
I'm attempting to write an app that involves connecting two android devices via bluetooth.

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.