Don't use /sdcard when creating Exchange logging
* Per san, use Environment.getExternalStorageDirectory() instead Change-Id: Ia7750cca00397734567e03d889e7eb68ac4d9da7
This commit is contained in:
parent
103de0876f
commit
00eb422a3e
@ -17,6 +17,7 @@
|
||||
package com.android.exchange.utility;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Environment;
|
||||
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
@ -26,7 +27,8 @@ import java.util.Date;
|
||||
public class FileLogger {
|
||||
private static FileLogger LOGGER = null;
|
||||
private static FileWriter mLogWriter = null;
|
||||
public static String LOG_FILE_NAME = "/sdcard/emaillog.txt";
|
||||
public static String LOG_FILE_NAME =
|
||||
Environment.getExternalStorageDirectory() + "/emaillog.txt";
|
||||
|
||||
public synchronized static FileLogger getLogger (Context c) {
|
||||
LOGGER = new FileLogger();
|
||||
|
Loading…
Reference in New Issue
Block a user