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


i created small application in javafx , deployed in android device using gluon plugin. 1 of requirements of application store data in sqllite database. know how using android sdk dont have idea on how in javafx. need help!

download , add sqlite jdbc classpath.

following it, create connection :

class.forname("org.sqlite.jdbc");   connection = drivermanager.getconnection("jdbc:sqlite:somefilename.db"); 

you can replace somefilename.db somefilelocation\somefilename.db, if want specify location of database file.

then use connection create statements , resultsets interact database. mentioned in tutorial, @madprogrammer gave you.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -