¡@

Home 

2014/10/16 ¤W¤È 08:26:05

android Programming Glossary: textview.append

How to store images in sqlite database on click event of button?

http://stackoverflow.com/questions/6041202/how-to-store-images-in-sqlite-database-on-click-event-of-button

openOrCreateDatabase sdcard Nick MyWeatherDB.db Context.MODE_PRIVATE null myDb.execSQL MySQL String s myDb.getPath textView.append r n s r n myDb.execSQL delete from emp1 ContentValues newValues new ContentValues newValues.put fio ванов е Се гееви insert.. BufferedInputStream bif new BufferedInputStream instream byteImage1 new byte bif.available bif.read byteImage1 textView.append r n byteImage1.length r n newValues.put picture byteImage1 long ret myDb.insert emp1 null newValues if ret 0 textView.append.. r n byteImage1.length r n newValues.put picture byteImage1 long ret myDb.insert emp1 null newValues if ret 0 textView.append r n Error add blob filed r n catch IOException e textView.append r n Error e r n Read data Cursor cur myDb.query emp1..