2

I want to use mysql in my app. But my app is offline app not online app. Can I do this? Do I use JSON? If I use JSON my app must connect to internet? I want to use mysql but my app isn't require internet connection.

tvkanters
  • 3,519
  • 4
  • 29
  • 45
AndikaK
  • 137
  • 1
  • 15
  • You don't need an internet connection to use a sql db on android. Please explain better what you are trying to do. – Xaver Kapeller Mar 23 '14 at 11:46
  • I want to add mysql (not sqlite) in my app. But I don't know how. If I use JSON, as i know the app is must use internet connection. – AndikaK Mar 23 '14 at 11:48

1 Answers1

0

You should run an instance of the Data Base locally in the device.

Even if I don't know of any MySQL I can advice you to use CouchDB: see here and other similar question. With couched you can use JSON data and noSQL capability.

Community
  • 1
  • 1
nkint
  • 11,513
  • 31
  • 103
  • 174
  • JSON is a data format.. what are you meaning with this? It is like to say: "Can I use English?" and the answer is "Yes you can use English both in writing book (offline) and in phone calls (connected to the network)" – nkint Mar 23 '14 at 11:55
  • I think JSON always need internet. I don't know what JSON is. If I hear JSON, I always think if I use JSON.. the app/website must connect internet – AndikaK Mar 23 '14 at 11:57
  • But, I want to use mysql. So, I need other answer – AndikaK Mar 23 '14 at 12:01
  • It is better to understand a little bit what you are asking before to ask. Good luck! – nkint Mar 23 '14 at 12:08