한국어

네트워킹

온누리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
조회 수 :
33924
등록일 :
2014.02.14
21:43:41 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38761&act=trackback&key=766
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38761
List of Articles
번호 제목 글쓴이 조회 수sort 추천 수 날짜
37 (C#) ASP.NET MySQL Check Already Exists Add/Insert Record 프로그래밍 코드 admin 35055   2011-12-19
 
36 http://www.hoons.kr/ admin 35222   2011-12-19
 
35 xhost and display admin 35264   2011-12-16
 
34 Browse SQLite data on the Android emulator admin 35730   2014-02-15
 
33 오라클 아키텍쳐 admin 36623   2011-12-13
 
32 SQLite Databases using External DB admin 37024   2014-02-14
 
31 Oracle 설치 Centos ,openSUSE,엔터프라이즈등 퍼온글 admin 37090   2011-12-16
 
30 WHERE 조건절 검색시 서브쿼리는 어떻게? admin 37638   2013-04-01
 
29 Oracle 10G installation admin 37681   2011-12-13
 
28 SUSE Linux Enterprise Server 10 (Oracle 10g R2 (10.2.0.1)) file admin 37886   2012-03-09
 
27 CDR 추출 저장 Inner Join 사용 Sql 문 admin 38216   2013-02-05
 
26 Configuring Oracle ASM disks in Oracle Enterprise Linux admin 38711   2013-04-20
 
25 Oracle ACE 로부터 배우기 admin 39758   2011-12-16
 
24 기본 10g 설치의 리눅스 세팅에서 추가 해줘야하는 사항(윈도우) admin 39942   2012-06-24
 
23 Oracle 의 ASM 구조 알아보기.. admin 40275   2011-12-13
 
22 Oracle 의 ASM 구조 알아보기.. admin 40946   2011-12-16
 
21 오라클 ACE가 해설하는 Oracle Backup & Recovery admin 41777   2012-02-07
 
20 안드로이드 SQLite 속도 향상! insert Transaction admin 42449   2014-04-07
 
19 Oracle Backup & restore with RMAN 기본 admin 42987   2012-02-12
 
18 Connect Excel VBA to a MySQL database file admin 45942   2013-09-05
 
17 MySQL Java tutorial admin 49041   2012-09-30
 
16 Android SQLite Database with Multiple Tables admin 51321   2014-02-13
 
15 mariadb CREATE USER CREATE USER statement creates new MariaDB accounts. admin 65871   2017-09-01
 
14 RHEL4 + 10g 설치 _silent mode admin 82060   2013-04-08
 
13 android - 다수의 Insert 수행시 속도 향상을 위한 팁 sQlite admin 83568   2014-02-10
 
12 OLE5 + 11G 설치 _silent mode admin 85311   2013-04-08
 
11 android sqlite 사용하기 admin 88574   2014-02-10
 
10 Oracle Backup & Restore admin 91461   2012-02-07
 
9 SQLite 개발가이드 데이터베이스의 성능 admin 93996   2014-02-10
 
8 Oracle RHEL4+10G 10.2.0.1 설치 10.2.0.5 패치 admin 96195   2012-03-03