한국어

네트워킹

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