java - Cannot get information to be shown when added to a SQLite Database -
i using sqlite expert personal need (create, add together , delete) db. not want putting in info manually, since db getting larger , changing. able hold of api game play can retrieve info need not have manually set info in.
i able add together db , see within of app when open db sqlite expert personal alter not show there. looked around see find these links (and others):
http://www.youtube.com/watch?v=warqrxpribe
own database in assets folder on android eclipse project
access mysql database in eclipse using java
and have far:
mainactivity.java ... //testing adding database///////////////////////////// databasehelper db = new databasehelper(this); db.addrole(new role("warrior")); ...
also,
databasehelper.java ... // adding new role public void addrole(role role) { sqlitedatabase db = this.getwritabledatabase(); contentvalues values = new contentvalues(); values.put(key_name, role.getname()); // role name // inserting row db.insert(table_role, null, values); db.close(); // closing database connection } ...
so curious on is, possible me create changes via code (like above) , have them shown when open db through sqlite expert personal? if so, have tutorial link or can maybe shed lite on please?
java android sqlite
No comments:
Post a Comment