1

I want to store some app data in a local Postgres database. I don't need it to be accessible through internet or anything. I could use sqlite but I need Postgres's GIS features for my application.

Is it possible for an app to do this? (without rooting the phone)

or Can you compile the Postgres source code to work on Android?

Optimus
  • 2,716
  • 4
  • 29
  • 49
  • @mr.incognito this link does not answer my question, as you can see the workaround provided is for sqlite, and it has no information on weather you can compile postgres on android... – Optimus Dec 17 '14 at 05:03
  • 1
    There is no PostgreSQL port for Android. So no. – Craig Ringer Dec 17 '14 at 05:13
  • PostgreSQL cannot be compiled for Android. And it really would make very little sense: PostgreSQL is particularly suited to large databases and multi-user access. Also, it is unlikely that you need PostGIS's functionality on an Android device. There are multiple database / spatial data apps out there; or develop your own from available toolkits. – Patrick Dec 17 '14 at 05:15
  • @Patrick a little more research shows me that it can be done with a lot of hackery, effectively porting it myself... But I am not sure I am capable of doing that right now... – Optimus Dec 17 '14 at 06:05
  • What GIS features does your app need? – mlinth Dec 17 '14 at 11:18

1 Answers1

2

Are you aware of Spatialite? It's an extension to SQLite very similar to PostGIS. AFAIK it's available for Android and may have the features you require.

dericke
  • 290
  • 4
  • 13