diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-07-29 15:59:10 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-29 15:59:10 -0700 |
commit | 8a76a9085dbbca87b4c172577ca264d8b5f2ab32 (patch) | |
tree | 8b761a8db3c8683ebf6b39e926c1ebff4ad12f27 /tests/LocationTracker/src/com/android/locationtracker | |
parent | f9b8e9018bf8ab012ec734262620d3274b2cd2ec (diff) | |
parent | 9150cff64abc79927ade28061ac99a1ebf812905 (diff) | |
download | frameworks_base-8a76a9085dbbca87b4c172577ca264d8b5f2ab32.zip frameworks_base-8a76a9085dbbca87b4c172577ca264d8b5f2ab32.tar.gz frameworks_base-8a76a9085dbbca87b4c172577ca264d8b5f2ab32.tar.bz2 |
am 9150cff6: Merge "Replaced /sdcard with Environment.getExternalStorageDirectory()"
Merge commit '9150cff64abc79927ade28061ac99a1ebf812905' into gingerbread-plus-aosp
* commit '9150cff64abc79927ade28061ac99a1ebf812905':
Replaced /sdcard with Environment.getExternalStorageDirectory()
Diffstat (limited to 'tests/LocationTracker/src/com/android/locationtracker')
-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() { |