Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android OS and postgreSQL

We are undertaking an Android project but need to connect to postgreSQL server which we use throughout our other projects. Any suggestions on a starting point for this? Is there anything out there (paid or unpaid) that will allow us to achieve this?

I realize that this is a pretty general question, and although we have extensive experience with writing desktop client/server apps, we have little experience with programming for mobile devices.

like image 572
NeoPOS Avatar asked Feb 25 '10 01:02

NeoPOS


People also ask

Can I use PostgreSQL on Android?

Install and configure PostgreSQL on Termux Once you have successfully installed this set of scripts, you can use your Android tablet or smartphone as a PostgreSQL clone database server.

What OS does PostgreSQL run on?

PostgreSQL is available for the following operating systems: Linux (all recent distributions), 64-bit x86 installers available and tested for macOS (OS X) version 10.6 and newer – Windows (with installers available and tested for 64-bit Windows Server 2019 and 2016; some older PostgreSQL versions are tested back to ...

Is PostgreSQL good for mobile apps?

PostgreSQL Unlike other SQL databases, PostgreSQL is also compatible with JSON, so it accommodates more data types than just structured data. PostgreSQL is commonly used when developing a database for mobile apps that are more simple and straightforward in their design and data schema.

Can PostgreSQL run on Raspberry Pi?

Can you run PostgreSQL on Raspberry Pi? The PostgreSQL can easily be installed on the Raspberry Pi just like in any other Debian-based distribution. In this write-up, PostgreSQL installation has been explained in detail.


2 Answers

I would write a RestFUL API or WebService to be used as front end for your Android device to connect to your PostgreSQL backend.

I don't think you will be able to connect directly your Android App to a PostgreSQL database.

like image 170
Pablo Santa Cruz Avatar answered Oct 12 '22 23:10

Pablo Santa Cruz


I'd go with a lightweight REST interface that would talk to PostgreSQL in the backend. Have a look at Simple.

like image 40
yanchenko Avatar answered Oct 13 '22 01:10

yanchenko