Don't use /sdcard when creating Exchange logging

* Per san, use Environment.getExternalStorageDirectory() instead

Change-Id: Ia7750cca00397734567e03d889e7eb68ac4d9da7
This commit is contained in:
Marc Blank 2010-02-10 11:37:07 -08:00
parent 103de0876f
commit 00eb422a3e

View File

@ -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();