한국어

네트워킹

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


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); */
조회 수 :
29436
등록일 :
2014.02.18
07:58:48 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38779&act=trackback&key=e8b
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38779
List of Articles
번호 제목 글쓴이 날짜 조회 수
67 Mysql FOREIGN KEY admin 2020-02-16 8397
66 mysql db tables 별로 데이타 사용량 확인 쿼리 admin 2020-02-12 11019
65 [SQL] 테이블 안의 컬럼 값 변경, 수정, UPDATE admin 2019-10-21 16604
64 [Android] 안드로이드 - SQLiteDatabase 구현하기 admin 2019-10-14 12196
63 [유용][실전]Android DB 생성 및 관리 ( Cursor , Query ) 리스트뷰 admin 2019-10-14 11441
62 간단한 Android Sqlite 예제 ( DB생성,테이블 생성, 데이터 입력, 테이터 보여주기) admin 2019-10-14 10633
61 [안드로이드] SQLiteDatabase와 SQLiteOpenHelper 사용법 예제 admin 2019-10-14 12453
60 두테이블비교 한쪽에 없는 값 추출 mysql left right outer join 서브쿼리 값사용 admin 2019-07-10 25696
59 원격 IP로 MySQL(MariaDB)에 접속 방법 해법 설정 순서 admin 2019-06-19 24752
58 oracle download install 오라클 다운로드 설치 admin 2018-05-29 16743
57 숫자 날짜 문자열 문자 공간 JSON MySQL 자료형 총 정리 phpMyAdmin 자료형 admin 2018-03-26 18456
56 mysql procedure admin 2017-11-16 16526
55 Sqlite very detail easy tutorial I recommand this admin 2017-09-09 18853
54 mysql 로컬접속 풀고 특정 아이피 접속 허가 허락 가능 하게 설정 하는 방법 admin 2017-09-05 20000
53 linux command chmod 리눅스 명령어 가장 쉽게 이해하기 설명 사용자 구룹 타인 권한 admin 2017-09-05 20432
52 mariadb CREATE USER CREATE USER statement creates new MariaDB accounts. admin 2017-09-01 62856
51 MySQL 데이터 베이스 백업 및 복구 방법 admin 2017-09-01 20136
50 Allowing MySQL Root Login from All IP Addresses : admin 2017-08-17 31666
49 Installation of MySQL Database Server admin 2017-08-17 17976
48 mysql 쿼리 로그 남기기 (실시간) admin 2015-04-15 24140
47 SQL Delete records using subqueries admin 2015-04-03 23594
46 Mysql privilege table GRANT SELECT,INSERT,UPDATE,DELETE ON db.table admin 2015-04-02 21364
45 안드로이드 SQLite 속도 향상! insert Transaction admin 2014-04-07 41394
44 MySQL에 원격 접속 허용 여러가지 아이피 아이피대역으로 admin 2014-04-02 124829
43 10gR2_sles10_install file admin 2014-03-18 25770
» this is final answer assets sqlite Databases trouble copy External DB, check eclips admin 2014-02-18 29436
41 Browse SQLite data on the Android emulator admin 2014-02-15 34796
40 SQLite Database Browser file admin 2014-02-14 32371
39 SQLite Databases using External DB admin 2014-02-14 35793
38 sqlite DB copy admin 2014-02-14 32899