한국어

네트워킹

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