File sdcard = Environment.getExternalStorageDirectory();
  File logDir = new File(sdcard, "testapp/log/"); 
  if (!logDir.exists()) {
   logDir.mkdirs();

   new File(logDir, ".nomedia").createNewFile();
  }       

  open(logDir.getAbsolutePath() + "/push.log");
 

예제 소스를 받았는데
생성자에서 위와 같이 되어있는데요....

이게 sdcard 를 할당하는 첫번째 줄을 보니 외장 메모리카드를 가져오는것 같아서 

  File sdcard = Environment.getExternalStorageDirectory();
  File logDir = new File(sdcard, "testapp/log/"); 

이 부분을

  File logDir = new File("testapp/log/"); 

이렇게 바꿔봤는데...


03-25 11:03:36.781: ERROR/SeeonPushService(11573): java.io.IOException: No such file or directory
03-25 11:03:36.781: ERROR/SeeonPushService(11573):     at java.io.File.createNewFileImpl(Native Method)
03-25 11:03:36.781: ERROR/SeeonPushService(11573):     at java.io.File.createNewFile(File.java:1160)

이렇게 에러가 뜨더라구요....
경로를 못 찾는거 같은데 sdcard = Environment.getExternalStorageDirectory(); 대신에
내장 메모리도 경로를 잡아줘서 File logDir = new File(sdcard, "testapp/log/"); 에
sdcard 자리에 넣어줘야 하는 건가요?

파일 생성을 못해서 로그를 못 쌓네용 ㅠ