Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java DB / Apache Derby with Android

Can I integrate Java DB or Apache Derby in my Android application? Or any inline or embedded database. Can anyone suggest code for it? I need some code because i have to make examples, not in theory.

Anyone knows if this databases is supported or not?

I thinks these are the inMobile DB, but i didn't find any related information in Google.

like image 429
djk Avatar asked Dec 16 '10 04:12

djk


2 Answers

Sorry, Derby does not work in Android. See this issue for some more details: https://issues.apache.org/jira/browse/DERBY-4458

like image 154
Bryan Pendleton Avatar answered Sep 21 '22 18:09

Bryan Pendleton


Android includes SQLite, so this is normal choice.

There is an embedded Java database that supports the Android platform: the H2 database. However, support for Android is relatively new, and you probably shouldn't use it, unlike you really need features that SQLite doesn't support.

like image 26
Thomas Mueller Avatar answered Sep 21 '22 18:09

Thomas Mueller