한국어

네트워킹

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


http://stackoverflow.com/questions/10808357/own-database-in-assets-folder-on-android-eclipse-project



http://mobile-development-tutorial.blogspot.jp/2012/12/android-external-sqlite-database.html



private static String DB_PATH = "/data/data/com.demo.databaseDemo/databases/";
 private static String DB_NAME = "myDatabase.db";   
 private void copyDataBase() throws IOException{

            //Open your local db as the input stream
            InputStream myInput = _myContext.getAssets().open(DB_NAME);

            // Path to the just created empty db
            String outFileName = DB_PATH + DB_NAME;

            //Open the empty db as the output stream
            OutputStream myOutput = new FileOutputStream(outFileName);

            //transfer bytes from the inputfile to the outputfile
            byte[] buffer = new byte[1024];
            int length;
            while ((length = myInput.read(buffer))>0){
                myOutput.write(buffer, 0, length);
            }

            //Close the streams
            myOutput.flush();
            myOutput.close();
            myInput.close();

        }//end of copyDataBase() method
조회 수 :
33746
등록일 :
2014.02.14
21:43:41 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38761&act=trackback&key=790
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38761
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
37 Android SQLite Database with Multiple Tables admin 2014-02-13 50614
36 Android Simple Clean Good SQLite Database Tutorial 잘된 설명 admin 2014-02-13 34430
35 android sqlite 사용하기 admin 2014-02-10 88175
34 SQLite 개발가이드 데이터베이스의 성능 admin 2014-02-10 93571
33 android - 다수의 Insert 수행시 속도 향상을 위한 팁 sQlite admin 2014-02-10 83113
32 Oracle Linux 에 Oracle DB 설치하기 admin 2013-12-03 105195
31 PreparedStatement mysql java 깔끔한설명 admin 2013-10-26 106363
30 Connect Excel VBA to a MySQL database file admin 2013-09-05 45784
29 Configuring Oracle ASM disks in Oracle Enterprise Linux admin 2013-04-20 38540
28 OLE5 + 11G 설치 _silent mode admin 2013-04-08 84833
27 OS에따른 Oracle 설치버전 admin 2013-04-08 32281
26 RHEL4 + 10g 설치 _silent mode admin 2013-04-08 81636
25 WHERE 조건절 검색시 서브쿼리는 어떻게? admin 2013-04-01 37413
24 CDR 추출 저장 Inner Join 사용 Sql 문 admin 2013-02-05 38056
23 SUPER OCM 1.8club admin 2012-12-18 31295
22 MySQL Java tutorial admin 2012-09-30 48749
21 Oracle 10g Articles admin 2012-06-24 32302
20 기본 10g 설치의 리눅스 세팅에서 추가 해줘야하는 사항(윈도우) admin 2012-06-24 39735
19 SUSE Linux Enterprise Server 10 (Oracle 10g R2 (10.2.0.1)) file admin 2012-03-09 37715
18 Upgrade Oracle from 10.2.0.1 To 10.2.0.4 (Windows) admin 2012-03-06 165369
17 Upgrade Oracle 10g Release 2 from 10201 to 10204 admin 2012-03-05 111421
16 centos 6.2 oracle 10g 설치 admin 2012-03-05 109257
15 Oracle RHEL4+10G 10.2.0.1 설치 10.2.0.5 패치 admin 2012-03-03 95762
14 Oracle Backup & restore with RMAN 기본 admin 2012-02-12 42672
13 오라클 ACE가 해설하는 Oracle Backup & Recovery admin 2012-02-07 41583
12 Oracle Backup & Restore admin 2012-02-07 89523
11 http://www.hoons.kr/ admin 2011-12-19 35032
10 Java && Excel 연동 JAVA 자바로 엑셀을 핸들링 할 수 있는 방법 admin 2011-12-19 194007
9 (C#) ASP.NET MySQL Check Already Exists Add/Insert Record 프로그래밍 코드 admin 2011-12-19 34889
8 xhost and display admin 2011-12-16 35120