네트워킹

오늘:
1,287
어제:
1,849
전체:
2,916,697

고객센타 : 070-7752-2000
팩스 : 070-7752-2001
휴대폰 : 010-9513-0019
email : voipkorea@yahoo.co.kr

국민은행
(주)제이에스솔루션
047101-04-155519

Flag Counter
■ 무료 : 유선 집전화 휴대폰 ( 한국 미국 중국 카나다) ↔ (국내 해외 여행자 상사 주재원 유학생) / 가입무 무제한무료■
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

sqlite copy external DB java code is easy  , but many people have trouble , Please check this.

Eclips
open project.propertie
assets.dir =assets
assets.available = true 

------------------------------------------------------------------------------------------------------------
  1. I moved the testDB into the projects “assets” folder but I get “FileNotFound” on the getAssets().open(DBName) line.

    I am using the Eclipse and the Emulator. If I getAssets().list(“/”) — the file is not shown (but there are entries for “res” and “assets”) but
    getAssets().list(“/assets”) is empty.

    Any ideas would be greatly appreciated.

    tob

  2. fac1681a2bc45804296739cbd05322ba?s=62&d=http%3A%2F%2Fwww.reigndesign.com%2Fwp-content%2Fthemes%2Freigndesign2011%2Fimages%2Fcomments-unknown-user.png%3Fs%3D62&r=Gtony ob | April 2nd, 2010

    Never mind … I found this (finally) elsewhere …

    To get an ASSETS folder into your APK:

    In /nbproject/project.properties, change
    assets.dir=

    to

    assets.dir=assets
    assets.available=true

    In /nbproject/build-impl.xml, there is line in the “if=assets.available” target that reads

    that needs to be changed to

   /////////////////////////////////////
DBHelper dbhelper = new DBHelper(this);  
 try {    
  dbhelper.createDataBase();   
 } catch (IOException e) {  
  // TODO Auto-generated catch block  
  e.printStackTrace();  
 } 
// dbhelper.openDatabase();
 if(dbhelper != null)
 {
 dbhelper.close();
 }  
// if(Read(this,"cccodeData").equals("")){ Toast.makeText(getBaseContext()," Please Wait Wait!!! ",Toast.LENGTH_LONG).show(); db.addc(); Write(this, "cccodeData", "inserted"); }
 
/* String dbFile;
 String[] dbNames = this.databaseList(); // or ContextWrapper
 
 for (int i = 0; i < dbNames.length; i++) {
     dbFile = this.getDatabasePath(dbNames[i]).toString();
     Log.i("path:", dbFile);
     Toast.makeText(getBaseContext(),dbFile  + "   " + db.getContactsCount(),Toast.LENGTH_LONG).show();
 } */
 

 //////////////////////////////
/////////////////////////////////////////////////////////////////////
/* SharedPreferences mPrefs = PreferenceManager.getDefaultSharedPreferences(this);
//OnSharedPreferenceChangeListener mPreferenceListener = new PreferenceChangeListener();
// mPrefs.registerOnSharedPreferenceChangeListener(listener);  
OnSharedPreferenceChangeListener listen = new SharedPreferences.OnSharedPreferenceChangeListener() {
 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
//  Toast.makeText(getBaseContext(),key,Toast.LENGTH_LONG).show();   // Implementation
 }
};
mPrefs.registerOnSharedPreferenceChangeListener(listen); */
조회 수 :
9653
등록일 :
2014.02.18
07:58:48 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38779&act=trackback&key=480
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38779
List of Articles
번호 제목 글쓴이 날짜 조회 수
56 mysql procedure admin 2017-11-16 347
55 Sqlite very detail easy tutorial I recommand this admin 2017-09-09 933
54 mysql 로컬접속 풀고 특정 아이피 접속 허가 허락 가능 하게 설정 하는 방법 admin 2017-09-05 936
53 linux command chmod 리눅스 명령어 가장 쉽게 이해하기 설명 사용자 구룹 타인 권한 admin 2017-09-05 948
52 mariadb CREATE USER CREATE USER statement creates new MariaDB accounts. admin 2017-09-01 1078
51 MySQL 데이터 베이스 백업 및 복구 방법 admin 2017-09-01 1009
50 Allowing MySQL Root Login from All IP Addresses : admin 2017-08-17 847
49 Installation of MySQL Database Server admin 2017-08-17 913
48 mysql 쿼리 로그 남기기 (실시간) admin 2015-04-15 3753
47 SQL Delete records using subqueries admin 2015-04-03 3670
46 Mysql privilege table GRANT SELECT,INSERT,UPDATE,DELETE ON db.table admin 2015-04-02 3880
45 안드로이드 SQLite 속도 향상! insert Transaction admin 2014-04-07 14347
44 MySQL에 원격 접속 허용 여러가지 아이피 아이피대역으로 admin 2014-04-02 11507
43 10gR2_sles10_install file admin 2014-03-18 9151
» this is final answer assets sqlite Databases trouble copy External DB, check eclips admin 2014-02-18 9653
41 Browse SQLite data on the Android emulator admin 2014-02-15 11194
40 SQLite Database Browser file admin 2014-02-14 10000
39 SQLite Databases using External DB admin 2014-02-14 14182
38 sqlite DB copy admin 2014-02-14 9960
37 Android SQLite Database with Multiple Tables admin 2014-02-13 9464
36 Android Simple Clean Good SQLite Database Tutorial 잘된 설명 admin 2014-02-13 10213
35 android sqlite 사용하기 admin 2014-02-10 14458
34 SQLite 개발가이드 데이터베이스의 성능 admin 2014-02-10 16260
33 android - 다수의 Insert 수행시 속도 향상을 위한 팁 sQlite admin 2014-02-10 10763
32 Oracle Linux 에 Oracle DB 설치하기 admin 2013-12-03 14239
31 PreparedStatement mysql java 깔끔한설명 admin 2013-10-26 17413
30 Connect Excel VBA to a MySQL database file admin 2013-09-05 12795
29 Configuring Oracle ASM disks in Oracle Enterprise Linux admin 2013-04-20 11078
28 OS에따른 Oracle 설치버전 admin 2013-04-08 12222
27 RHEL4 + 10g 설치 _silent mode admin 2013-04-08 12189
26 OLE5 + 11G 설치 _silent mode admin 2013-04-08 15375
25 WHERE 조건절 검색시 서브쿼리는 어떻게? admin 2013-04-01 11762
24 CDR 추출 저장 Inner Join 사용 Sql 문 admin 2013-02-05 12080
23 SUPER OCM 1.8club admin 2012-12-18 11429
22 MySQL Java tutorial admin 2012-09-30 16593
21 Oracle 10g Articles admin 2012-06-24 13286
20 기본 10g 설치의 리눅스 세팅에서 추가 해줘야하는 사항(윈도우) admin 2012-06-24 14376
19 SUSE Linux Enterprise Server 10 (Oracle 10g R2 (10.2.0.1)) file admin 2012-03-09 13346
18 Upgrade Oracle from 10.2.0.1 To 10.2.0.4 (Windows) admin 2012-03-06 19358
17 Upgrade Oracle 10g Release 2 from 10201 to 10204 admin 2012-03-05 26175
16 centos 6.2 oracle 10g 설치 admin 2012-03-05 29229
15 Oracle RHEL4+10G 10.2.0.1 설치 10.2.0.5 패치 admin 2012-03-03 18340
14 Oracle Backup & restore with RMAN 기본 admin 2012-02-12 13543
13 오라클 ACE가 해설하는 Oracle Backup & Recovery admin 2012-02-07 13398
12 Oracle Backup & Restore admin 2012-02-07 17882
11 http://www.hoons.kr/ admin 2011-12-19 13426
10 Java && Excel 연동 JAVA 자바로 엑셀을 핸들링 할 수 있는 방법 admin 2011-12-19 35311
9 (C#) ASP.NET MySQL Check Already Exists Add/Insert Record 프로그래밍 코드 admin 2011-12-19 13693
8 xhost and display admin 2011-12-16 12588
7 Oracle 설치 Centos ,openSUSE,엔터프라이즈등 퍼온글 admin 2011-12-16 14540