diff options
author | Christian Mehlmauer <FireFart@gmail.com> | 2010-07-19 20:11:27 +0200 |
---|---|---|
committer | Christian Mehlmauer <FireFart@gmail.com> | 2010-07-19 20:12:31 +0200 |
commit | 8b85dceadf281705a94d7546556fa5969364a658 (patch) | |
tree | 70a792817fc48a1145f52516d542b05ea945557f /tests/LocationTracker/src | |
parent | 45988040454b710c20abf5fda74cdafb874a28bf (diff) | |
download | frameworks_base-8b85dceadf281705a94d7546556fa5969364a658.zip frameworks_base-8b85dceadf281705a94d7546556fa5969364a658.tar.gz frameworks_base-8b85dceadf281705a94d7546556fa5969364a658.tar.bz2 |
Replaced /sdcard with Environment.getExternalStorageDirectory()
Change-Id: I9a7413f81090b69c82ca6b1e585f5e379b19e60c
Diffstat (limited to 'tests/LocationTracker/src')
-rw-r--r-- | tests/LocationTracker/src/com/android/locationtracker/TrackerActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/LocationTracker/src/com/android/locationtracker/TrackerActivity.java b/tests/LocationTracker/src/com/android/locationtracker/TrackerActivity.java index 98d0a50..4cfdf6c 100644 --- a/tests/LocationTracker/src/com/android/locationtracker/TrackerActivity.java +++ b/tests/LocationTracker/src/com/android/locationtracker/TrackerActivity.java @@ -28,6 +28,7 @@ import android.content.Intent; import android.database.Cursor; import android.location.LocationManager; import android.os.Bundle; +import android.os.Environment; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; @@ -210,12 +211,11 @@ public class TrackerActivity extends ListActivity { } private String getUniqueFileName(String ext) { - File dir = new File("/sdcard/locationtracker"); + File dir = new File(Environment.getExternalStorageDirectory() + "/locationtracker"); if (!dir.exists()) { dir.mkdir(); } - return "/sdcard/locationtracker/tracking-" + - DateUtils.getCurrentTimestamp() + "." + ext; + return dir + "/tracking-" + DateUtils.getCurrentTimestamp() + "." + ext; } private void launchSettings() { |