한국어

네트워킹

온누리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); */
조회 수 :
29571
등록일 :
2014.02.18
07:58:48 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38779&act=trackback&key=444
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38779
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
37 Oracle 설치 Centos ,openSUSE,엔터프라이즈등 퍼온글 admin 2011-12-16 36306
36 오라클 아키텍쳐 admin 2011-12-13 35906
35 SQLite Databases using External DB admin 2014-02-14 35899
34 Browse SQLite data on the Android emulator admin 2014-02-15 34911
33 xhost and display admin 2011-12-16 34508
32 http://www.hoons.kr/ admin 2011-12-19 34457
31 (C#) ASP.NET MySQL Check Already Exists Add/Insert Record 프로그래밍 코드 admin 2011-12-19 34293
30 Android Simple Clean Good SQLite Database Tutorial 잘된 설명 admin 2014-02-13 33875
29 Oracle Preinstallation Tasks admin 2011-12-16 33159
28 sqlite DB copy admin 2014-02-14 33049
27 SQLite Database Browser file admin 2014-02-14 32503
26 Allowing MySQL Root Login from All IP Addresses : admin 2017-08-17 31821
25 OS에따른 Oracle 설치버전 admin 2013-04-08 31687
24 Oracle 10g Articles admin 2012-06-24 31684
23 SUPER OCM 1.8club admin 2012-12-18 30709
» this is final answer assets sqlite Databases trouble copy External DB, check eclips admin 2014-02-18 29571
21 10gR2_sles10_install file admin 2014-03-18 25905
20 두테이블비교 한쪽에 없는 값 추출 mysql left right outer join 서브쿼리 값사용 admin 2019-07-10 25887
19 원격 IP로 MySQL(MariaDB)에 접속 방법 해법 설정 순서 admin 2019-06-19 24908
18 mysql 쿼리 로그 남기기 (실시간) admin 2015-04-15 24267
17 SQL Delete records using subqueries admin 2015-04-03 23723
16 Mysql privilege table GRANT SELECT,INSERT,UPDATE,DELETE ON db.table admin 2015-04-02 21494
15 linux command chmod 리눅스 명령어 가장 쉽게 이해하기 설명 사용자 구룹 타인 권한 admin 2017-09-05 20574
14 MySQL 데이터 베이스 백업 및 복구 방법 admin 2017-09-01 20272
13 mysql 로컬접속 풀고 특정 아이피 접속 허가 허락 가능 하게 설정 하는 방법 admin 2017-09-05 20133
12 Sqlite very detail easy tutorial I recommand this admin 2017-09-09 18982
11 숫자 날짜 문자열 문자 공간 JSON MySQL 자료형 총 정리 phpMyAdmin 자료형 admin 2018-03-26 18573
10 Installation of MySQL Database Server admin 2017-08-17 18113
9 oracle download install 오라클 다운로드 설치 admin 2018-05-29 16862
8 [SQL] 테이블 안의 컬럼 값 변경, 수정, UPDATE admin 2019-10-21 16744