Skip to content

Commit

Permalink
bug fix: #1 Stop creating a redundant directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shoya140 committed Jan 19, 2014
1 parent baf6fd8 commit 284cab5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/com/mrk1869/glasslogger/LoggerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,15 @@ private void foregroundProcessing() {
+ now.get(GregorianCalendar.SECOND) + "-"
+ now.get(GregorianCalendar.MILLISECOND);

File logSessionDirectoryPath = new File(Environment.getExternalStorageDirectory()
+ "/GlassLogger/" + logSessionIdentifier);
File logSessionDirectoryPath = new File(Environment.getExternalStorageDirectory() + "/GlassLogger/");

try {
logSessionDirectoryPath.mkdirs();
} catch (Exception e) {// Catch exception if any
Log.e(this.getClass().getSimpleName(), "Error: " + e.getMessage());

// TODO
}

String logSessionFilePath = logSessionDirectoryPath.getAbsolutePath();
String logSessionFilePath = Environment.getExternalStorageDirectory() + "/GlassLogger/" + logSessionIdentifier;

// accelerometer
accLogFileWriter = new LogFileWriter(logSessionFilePath+"_acc.txt");
Expand Down

0 comments on commit 284cab5

Please sign in to comment.