Titan
Titan

Reputation: 45

Is this possible to use non-sqlite database in android?

Title says all. Can i use mysql/oracle database in Android application even if it's very slow and bad ?

Upvotes: 1

Views: 140

Answers (3)

grunk
grunk

Reputation: 14938

Remotely by using a webservice yes.

Locally , it's theorically possible but you probably have to :

  • have a rooted phone
  • recompile the source code of your DBMS to support the arm architecture (or whatever your phone use)
  • find/create a driver for java (supported by dalvik) which support this DBMS
  • find/create an api for this DBMS

Long story short , you don't want to do that ! It's cleary not a good solution.

And to be honest using DBMS like oracle on a phone , it is like using a rocket launcher to kill a fly ...

Note : you can have a look on this documentation about berkley DB on android

Upvotes: 2

Asaf Sh.
Asaf Sh.

Reputation: 49

As far as i understand you need local database running on Android. That means MySQL/Oracle are not choice.

As there is only java - you can try to use java based DB. There are few on internet. Of course they have to be ported.

Upvotes: 0

marshallino16
marshallino16

Reputation: 2671

Yes, you can.

You just have to create .php that gonna get informations from the databases and return you a json.

In Android you create a httprequest in wich you target the .php file and analyze the json.

Upvotes: -1

Related Questions