0

I wrote a ruby on rails app that I host on heroku and is used as a tool for creating data and storing it in the postresql heroku database

How do I do connect to it from an Android app for fetching data?

1 Answer 1

1

The approach for this should be to use REST services to perform CRUD operations on your data, not directly connect from Android to the `database.

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

4 Comments

Which JDBC driver is best for android, 3 or 4?
@eoghanm as specified in the answer, you shouldn't connect to the database from android. Write a REST API app and deploy on Heroku and have your Android app interact with the REST API instead of the database.
Why can't we directly connect to the database ?
that's how you do this kind of stuff. mobile OSes don't have drivers to connect to remote databases

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.