¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 411°Ç
   
Á» µµ¿Í ÁÖ¼¼¿ä^^ db»ç¿ë¾ÛÀ» ¸¸µé¾ú´Âµ¥ Æù¿¡´Â db°¡ ¿Ö ¾È³ªÅ¸³¯±î¿ä?
±Û¾´ÀÌ : ¾çÀçÀÇ                   ³¯Â¥ : 2012-10-31 (¼ö) 15:13 Á¶È¸ : 2853
asset Æú´õ¿¡ ¿øº»db¸¦ ³Ö¾îµÎ°í ¾Æ·¡ ¼Ò½º¿Í °°ÀÌ ÇÏ¸é ¿¡¹Ä¿¡¼­´Â db°¡ º¸À̴µ¥ ¿Ö Æù¿¡¼­´Â ¿¡·¯°¡ ³ª´ÂÁö ¾Ë ¼ö°¡ ¾ø³×¿ä. ·çÆÃÀ̶ó´Â °ÍÀÌ ÇÊ¿äÇÑ °Ç°¡¿ä?
±×¸®°í ¸¸¾à ·çÆÃÀ» ÇØ¾ß µÈ´Ù¸é, ÀÌ ¾ÛÀ» »ç¿ëÇÒ·Á¸é ¸ðµç »ç¿ëÀÚµéÀÌ ·çÆÃÀ» ÇؾßÇմϱî?
 
public static void initialize(Context ctx) {
   // check
   File folder = new File(ROOT_DIR + "databases");
   folder.mkdirs();                                                    
   File outfile = new File(ROOT_DIR + "databases/" + DATABASE_NAME);
   if (outfile.length() <= 0) {
    AssetManager assetManager = ctx.getResources().getAssets();
    try {
     InputStream is = assetManager.open(DATABASE_NAME, AssetManager.ACCESS_BUFFER);
     long filesize = is.available();
     byte [] tempdata = new byte[(int)filesize];
     is.read(tempdata);
     is.close();
     
     outfile.createNewFile();
     FileOutputStream fo = new FileOutputStream(outfile);
     fo.write(tempdata);
     fo.close();
    } catch (IOException e) {
     e.printStackTrace();
     
    }
   }
   
  
    
  }
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)





 
±è¼ºÅ 2012-11-05 (¿ù) 16:16
µ¥ÀÌÅͺ£À̽º °æ·Î´Â º¸Åë "/data/data/<ÆÐÅ°ÁöÀ̸§>/databases/<µ¥ÀÌÅͺ£À̽ºÆÄÀÏ>" Çü½ÄÀÔ´Ï´Ù.
Á¦½ÃÇÑ Äڵ忡¼­ ROOT_DIRÀÌ À߸øµÇ¾úÀ» °¡´É¼ºÀÌ Å®´Ï´Ù.
 
±è¼ºÅ 2012-11-05 (¿ù) 17:48
String fullDatabaseFilePath = ctx.getDatabasePath(DATABASE_NAME).getAbsolutePath();
File databaseDirectory = new File(fullDatabaseFilePath.replace(DATABASE_NAME, ""));
if ( !databaseDirectory.exists() && !databaseDirectory.mkdir() ) {
        Log.e("init","database directory creation failure");
return;
}

ROOT_DIR ´ë½Å À§ÀÇ Äڵ带 ½á¼­ Çغ¸¼¼¿ä
 
¾çÀçÀÇ 2012-11-06 (È­) 12:48
µåµð¾î ±¸¼¼ÁÖ°¡ ³ªÅ¸³ª¼Ì³×¿ä^^
Á¤¸» °í¸¿½À´Ï´Ù. ¼ºÅ¾¾!
ÀÏ´Ü ÄÚµå ¹Ù²ã¼­ ´Ù½Ã Çغ¼²²¿ä~
 
±èº´ÁÖ 2012-11-23 (±Ý) 15:00
À§ÀÇ ¹æ¹ýÀ¸·Îµµ ¾ÈµÈ´Ù¸é assets ÀÚü¿ë·®¹®Á¦µµ ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù.
ÁøÀúºê·¹À̵å ÀÌÇϹöÀü Áï ÇÁ·Î¿ä¹öÀü µîÀº assets¿¡ µé¾î°¥ ¼ö ÀÖ´Â ÆÄÀÏÀÇ Å©±â¸¦ 1mb·Î Á¦ÇÑÇÏ°í
ÀÖ½À´Ï´Ù. (µ¿¿µ»ó µî ¹Ìµð¾î,À½¾Ç ÆÄÀÏ µî Á¦¿Ü)
 
¾ç¹ü¼º 2012-12-12 (¼ö) 14:19
ÀÌ°Ô ÆÄÀÏ º¹»ç ·ÎÁ÷Àΰ¡¿ë???
   

°Ô½Ã¹° 411°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
351  [õ¾È/¾Æ»ê/¿Â¾ç] ¾Èµå·ÎÀ̵å,¾ÆÀÌÆù,À¥ °³¹ß °³¹ß ½ºÅ͵ð ÀÌ»óºÀ 03-08 3690
350  [MOIBA] ±Û·Î¹ú ¾Û Çؿܸ¶ÄÉÆà Áö¿ø»ç¾÷ ±èÇü¼ö 03-07 5246
349  2013³â ù ÆÐºí¸´ Æù ¡°º£°¡ NO 6¡± +1 ¿ÀÀ¯Áø 02-08 5030
348  [ÇÏÀ̺긮µå ¾Û] ¿¡ °üÇÑ Áغñ¸¦ ÇØ º¸¾Ò½À´Ï´Ù. ±×·±µ¥...... ¤Ð_¤Ð Àӹݼ® 02-01 2714
347  Á¦°¡ °³¹ß Âü°¡ÇÑ ¾îÇÃÀÔ´Ï´Ù À¯¸Ó ¾îÇÃÀ̱¸¿ä~ Toielt NEW Çѹø ½áº¸¼¼¿ä ÀÌÀç¿ø 01-17 3430
346  [¸¶°¨][¼­¿ï] ¾Èµå·ÎÀÌµå ½ºÅ͵ð ¸ðÁýÇÕ´Ï´Ù. ¼º±â¿ë 01-10 4606
345  ¿äÁò ¾îÂîµé Áö³»°í °è½Ã´ÂÁö¿ä?? +1 Á¤Çöö 01-08 5362
344  ºÏÇÑ ·ÎÄÏ ¹ß»ç ¼º°ø.. À§¼º ±Ëµµ ¤Ñ¤Ñ; +2 ÀÌ°æ¿ë 12-13 5878
343  [¶óÁ¸® ÆÄÀÌ] ¾Èµå·ÎÀÌµå ½ºÅ͵ð ÄÁÆÛ·±½º¿¡ ²Å»ç¸® ²¼½À´Ï´Ù. ^^; +1 ÀÌ°æ¿ë 12-09 6552
342  ¿À·£¸¸¿¡ µé¾î¿Ô½À´Ï´Ù! ¹é½Ã¿­ 12-03 4126
341  ³»ÀÏ ¼­¿ï ¿Ã¶ó °©´Ï´Ù. KT Ä·ÇÁ Âü¿© ^^ +3 ÀÌ°æ¿ë 11-23 5962
340  ¼Ò½º Å©±â°¡ ÀÛÀºµ¥ apkÆÄÀÏÀÇ Å©±â°¡ Ŭ ¼ö ÀÖ³ª¿ä? +2 Áö³ª 11-20 3169
339  Á©¸®ºóÀÌ ¹èÅ͸®¸¦ ¸¹ÀÌ Àâ¾Æ¸Ô±ä ÇÏ´Â µí ÇÏ³×¿ä ±è¼±¿ì 11-08 2862
338  Á» µµ¿Í ÁÖ¼¼¿ä^^ db»ç¿ë¾ÛÀ» ¸¸µé¾ú´Âµ¥ Æù¿¡´Â db°¡ ¿Ö ¾È³ªÅ¸³¯±î¿ä? +5 ¾çÀçÀÇ 10-31 2854
337  ¾Èµå·ÎÀÌµå ½ºÅ͵ð ±×·ì ¸ðÁýÇÕ´Ï´Ù(¼­¿ï ½ÅÃÌ&°­³²) +2 À¯»ó¹® 10-12 3352
336  ~^^ +4 ºÀ´Þ¸ð 10-11 3917
335  Unity3D ´ëÇÏ¿© °³ÀÎÀÇ°ßÀÔ´Ï´Ù. +2 °í¹ü¼® 09-26 4324
334  ¿ÀÇÂÁö¿¤ Æ©Å丮¾ó °í¹ü¼® 09-24 4477
333  ±è¿¬¾Æ¿Í °ü³ä °­¼ºÈÆ 09-20 2912
332  ¾Èµå·ÎÀÌµå °³¹ß ¼öÁØ Æò°¡ Å×½ºÆ® ^^ +4 ÀÌ°æ¿ë 07-13 8029
 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20    
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.