0

I'm going to attempt to write to an app that needs to access a remote database running on a server. I know you can use jdbc when writing java applications, but can this be done in android too? Or is there a better way. Any direction would be appreciated.

4
  • 2
    possible duplicate of how to connect android to online database? Commented May 24, 2011 at 0:34
  • 3
    This has been asked a million times already. Just search for it. In short: Don't do it. Use a REST service. Commented May 24, 2011 at 0:35
  • possible duplicate of android database Commented May 24, 2011 at 0:41
  • @finnw: That's another duplicate, although it doesn't really have useful answers. Commented May 24, 2011 at 0:43

1 Answer 1

3

I'd recommend implementing services on the server that would behave differently based on input parameters (e.g. userId) rather than try to connect directly through devices. Also, for performance reasons, I'd recommend the response format of json over xml.

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.