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?

5
  • @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... Commented Dec 17, 2014 at 5:03
  • 1
    There is no PostgreSQL port for Android. So no. Commented Dec 17, 2014 at 5: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. Commented Dec 17, 2014 at 5: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... Commented Dec 17, 2014 at 6:05
  • What GIS features does your app need? Commented Dec 17, 2014 at 11:18

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.