한국어

네트워킹

온누리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); */
조회 수 :
29869
등록일 :
2014.02.18
07:58:48 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38779&act=trackback&key=4b1
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38779
List of Articles
번호 제목 글쓴이 조회 수 추천 수sort 날짜
37 CDR 추출 저장 Inner Join 사용 Sql 문 admin 37744   2013-02-05
 
36 WHERE 조건절 검색시 서브쿼리는 어떻게? admin 37097   2013-04-01
 
35 SQLite 개발가이드 데이터베이스의 성능 admin 92819   2014-02-10
 
34 android - 다수의 Insert 수행시 속도 향상을 위한 팁 sQlite admin 82363   2014-02-10
 
33 android sqlite 사용하기 admin 87411   2014-02-10
 
32 Android Simple Clean Good SQLite Database Tutorial 잘된 설명 admin 34154   2014-02-13
 
31 Android SQLite Database with Multiple Tables admin 50293   2014-02-13
 
30 sqlite DB copy admin 33380   2014-02-14
 
29 SQLite Databases using External DB admin 36202   2014-02-14
 
28 SQLite Database Browser file admin 32813   2014-02-14
 
27 Browse SQLite data on the Android emulator admin 35197   2014-02-15
 
» this is final answer assets sqlite Databases trouble copy External DB, check eclips admin 29869   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...  
25 10gR2_sles10_install file admin 26224   2014-03-18
 
24 MySQL에 원격 접속 허용 여러가지 아이피 아이피대역으로 admin 127317   2014-04-02
 
23 안드로이드 SQLite 속도 향상! insert Transaction admin 41841   2014-04-07
 
22 Mysql privilege table GRANT SELECT,INSERT,UPDATE,DELETE ON db.table admin 21779   2015-04-02
 
21 SQL Delete records using subqueries admin 24006   2015-04-03
 
20 mysql 쿼리 로그 남기기 (실시간) admin 24549   2015-04-15
 
19 Installation of MySQL Database Server admin 18426   2017-08-17
 
18 Allowing MySQL Root Login from All IP Addresses : admin 32111   2017-08-17
 
17 MySQL 데이터 베이스 백업 및 복구 방법 admin 20546   2017-09-01
 
16 mariadb CREATE USER CREATE USER statement creates new MariaDB accounts. admin 64296   2017-09-01
 
15 Sqlite very detail easy tutorial I recommand this admin 19261   2017-09-09
 
14 linux command chmod 리눅스 명령어 가장 쉽게 이해하기 설명 사용자 구룹 타인 권한 admin 20854   2017-09-05
 
13 mysql 로컬접속 풀고 특정 아이피 접속 허가 허락 가능 하게 설정 하는 방법 admin 20406   2017-09-05
 
12 mysql procedure admin 16970   2017-11-16
 
11 숫자 날짜 문자열 문자 공간 JSON MySQL 자료형 총 정리 phpMyAdmin 자료형 admin 18852   2018-03-26
 
10 oracle download install 오라클 다운로드 설치 admin 17143   2018-05-29
 
9 mysql db tables 별로 데이타 사용량 확인 쿼리 admin 11408   2020-02-12
 
8 원격 IP로 MySQL(MariaDB)에 접속 방법 해법 설정 순서 admin 25191   2019-06-19