How to debug a db4o database running on an Android app - java

I have an Android app that uses a db4o database, and I would like to query this database while running my application. I have already installed OME (ObjectManager Enterprise) plugin on Eclipse, but I don't know how to connect it to my Android db4o database.
Has anyone been able to do this successfully? I'm not even sure if there is a way to access my Android app's data while the program is running.

I am afraid, there is no direct way to do this. You have to copy database from your android emulator to your machine and then query the db using OME
http://tracker.db4o.com/browse/OMJ-184

i am using "db4o object manager 7.4". you can download https://code.google.com/p/db4o-om/downloads/detail?name=%24objectmanager-%207.4-java.zip&can=2&q=

Related

MongoDB with Android Studio

ALL questions I saw here is too old for understanding so I'm asking a new one.
Im building a social media app that stores data, and will ,at the end, send notification even when the app is offline.
Is MongoDB is a good choice to use with Android Studio to my project ?
I understood that I need first to connect it to Realm and by Realm I use MongoDB.
Do you think its a good DB to use with Android? if it is, do you have any good guides for it?
If not, is there any other DB to use that is easy to learn\use?
PS
I dont want to use Firebase, because of its pricing.
Thank you .
MongoDB is also available for android
The only problem is that it does not have well-structured documentation for android..
I recently managed to connect my android application to the remote database
here is a sample unit application
https://github.com/i-sachinkumar/MongoDB-for-Android
Its readme file contains all the steps to be followed in the back-end as well as in the android studio
Enjoy

How to store data in SqlLite database (JavaFX on Android)

I created a small application in JavaFX and deployed it in my Android device using Gluon Plugin. One of the requirements of my application is to store data in SqlLite database. I know how to do it using Android SDK but I dont have any idea on how to do it in JavaFX. Need help!
Download and add the SQLite JDBC to your classpath.
Following it, create a connection :
Class.forName("org.sqlite.JDBC");
connection = DriverManager.getConnection("jdbc:sqlite:somefilename.db");
You can replace somefilename.db with somefilelocation\somefilename.db, if you want to specify the location of the database file.
Then use the connection to create Statements and ResultSets to interact with the database. Everything is mentioned in the tutorial, #MadProgrammer just gave you.

Manage sqlite on real device with eclipse

I'm using galaxy note with rooted software but I'm retying to find some way to test and manage and browse all my sqlite contents values and tables via eclipse
I have used com.questoid.sqlitebrowser_1.2.0.jar plugin but it give me disabled button in DDMS
note : I'm deploying my app on real device not emulator
I'm not sure if this gonna helps you. But, i had the same problem with questoid and the problem was that i tried to access a database file that wasn't closed by my application.
I also was using WAL Sqlite database. If you are using a WAL sqlite database and then you found 2 files with extension .shm and .wal, then your database file is not closed.

Cannot read database on actual android device

I create an application that is using SQLite in Android. I have no problem when launching it using the Android Virtual Device, everything was fine and all recorded data could be loaded.
Right now, I'm trying to install it on my phone. But, I don't know why, the data can't be loaded. Should I do any configuration on it, or should I put my database file in my project somehow?
In addition, my database name is dbtaxi, and my package name is com.syariati.finalProject.

Import Android SQLite database with Java desktop program

For the program I am developing, I need for a Java application to be able to access a database stored in the android /data/data/package/databases folder. Is there any way that this could be done automatically, or the database has to be imported manually ?
Thanks in advance for your answers.
My investigation lead to the conclusion that one cannot access the /data directory in Android. So, my solution to the problem will be (because I still have not implemented it) to store the database in the SDCard and then access it from the Java application (which I believe will be straightforward).

Categories

Resources