Search in sources :

Example 6 with TrackerDataHelper

use of com.android.locationtracker.data.TrackerDataHelper in project android_frameworks_base by ResurrectionRemix.

the class TrackerActivity method exportKML.

private void exportKML() {
    String exportFileName = getUniqueFileName(LocationManager.NETWORK_PROVIDER + ".kml");
    exportFile(LocationManager.NETWORK_PROVIDER, exportFileName, new TrackerDataHelper(this, TrackerDataHelper.KML_FORMATTER));
    exportFileName = getUniqueFileName(LocationManager.GPS_PROVIDER + ".kml");
    exportFile(LocationManager.GPS_PROVIDER, exportFileName, new TrackerDataHelper(this, TrackerDataHelper.KML_FORMATTER));
}
Also used : TrackerDataHelper(com.android.locationtracker.data.TrackerDataHelper)

Example 7 with TrackerDataHelper

use of com.android.locationtracker.data.TrackerDataHelper in project android_frameworks_base by crdroidandroid.

the class TrackerActivity method exportCSV.

private void exportCSV() {
    String exportFileName = getUniqueFileName("csv");
    exportFile(null, exportFileName, new TrackerDataHelper(this, TrackerDataHelper.CSV_FORMATTER));
}
Also used : TrackerDataHelper(com.android.locationtracker.data.TrackerDataHelper)

Example 8 with TrackerDataHelper

use of com.android.locationtracker.data.TrackerDataHelper in project platform_frameworks_base by android.

the class TrackerActivity method exportCSV.

private void exportCSV() {
    String exportFileName = getUniqueFileName("csv");
    exportFile(null, exportFileName, new TrackerDataHelper(this, TrackerDataHelper.CSV_FORMATTER));
}
Also used : TrackerDataHelper(com.android.locationtracker.data.TrackerDataHelper)

Example 9 with TrackerDataHelper

use of com.android.locationtracker.data.TrackerDataHelper in project platform_frameworks_base by android.

the class TrackerActivity method clearData.

private void clearData() {
    Runnable clearAction = new Runnable() {

        public void run() {
            TrackerDataHelper helper = new TrackerDataHelper(TrackerActivity.this);
            helper.deleteAll();
        }
    };
    showConfirm(R.string.delete_confirm, clearAction);
}
Also used : TrackerDataHelper(com.android.locationtracker.data.TrackerDataHelper)

Example 10 with TrackerDataHelper

use of com.android.locationtracker.data.TrackerDataHelper in project platform_frameworks_base by android.

the class TrackerActivity method exportKML.

private void exportKML() {
    String exportFileName = getUniqueFileName(LocationManager.NETWORK_PROVIDER + ".kml");
    exportFile(LocationManager.NETWORK_PROVIDER, exportFileName, new TrackerDataHelper(this, TrackerDataHelper.KML_FORMATTER));
    exportFileName = getUniqueFileName(LocationManager.GPS_PROVIDER + ".kml");
    exportFile(LocationManager.GPS_PROVIDER, exportFileName, new TrackerDataHelper(this, TrackerDataHelper.KML_FORMATTER));
}
Also used : TrackerDataHelper(com.android.locationtracker.data.TrackerDataHelper)

Aggregations

TrackerDataHelper (com.android.locationtracker.data.TrackerDataHelper)20 IntentFilter (android.content.IntentFilter)5 LocationManager (android.location.LocationManager)5