Android OrmLite pre-populate database?

Good one Joe. I think your idea of the executeRaw() is close but use updateRaw() instead. Update handles INSERT DELETE and UPDATE statements.

Good one Joe. I think your idea of the executeRaw() is close but use updateRaw() instead. Update handles INSERT, DELETE, and UPDATE statements.

ormlite.com/docs/raw-update You should call TableUtils to create your schema first of course: http://ormlite.com/docs/tableUtils Hope this helps. You may want to use the mailing list for questions in the future: http://groups.google.com/group/ormlite-user.

Thanks a bunch, Gray. Works great. – Joe Goble Feb 20 at 20:25.

Just wanted to post my solution for anyone who might need it try { tableDAO. UpdateRaw("DELETE FROM table"); InputStream is = getResources(). OpenRawResource(R.raw.

Populate_db); DataInputStream in = new DataInputStream(is); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while ((strLine = br.readLine())! = null) { tableDAO. UpdateRaw(strLine); } in.close(); } catch (Exception e) { e.printStackTrace(); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions