diff --git a/app/src/main/java/org/ntlab/amaryllis/client/Amaryllis.java b/app/src/main/java/org/ntlab/amaryllis/client/Amaryllis.java index 39700eb..6aa4ab8 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/Amaryllis.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/Amaryllis.java @@ -2,6 +2,7 @@ import android.app.Application; import android.content.SharedPreferences; +import android.location.Location; public class Amaryllis extends Application { private String token = null; @@ -54,29 +55,47 @@ return token; } - public void setLatitude(String latitude) { - SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); - SharedPreferences.Editor editor = prefData.edit(); - editor.putString("latitude", latitude); - editor.commit(); - } - public String getLatitude() { - SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); - latitude = prefData.getString("latitude",""); - return latitude; - } +// public void setLatitude(String latitude) { +// SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); +// SharedPreferences.Editor editor = prefData.edit(); +// editor.putString("latitude", latitude); +// editor.commit(); +// } +// public String getLatitude() { +// SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); +// latitude = prefData.getString("latitude",""); +// return latitude; +// } +// +// public void setLongitude(String longitude) { +// SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); +// SharedPreferences.Editor editor = prefData.edit(); +// editor.putString("longitude", longitude); +// editor.commit(); +// } +// +// public String getLongitude() { +// SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); +// longitude = prefData.getString("longitude","" ); +// return longitude; +// } - public void setLongitude(String longitude) { - SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); - SharedPreferences.Editor editor = prefData.edit(); - editor.putString("longitude", longitude); - editor.commit(); - } +// public void setLocation(Location latitude,Location longitude){ +// SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); +// SharedPreferences.Editor editor = prefData.edit(); +// editor.putString("latitude", latitude); +// editor.putFloat("longitude", longitude); +// editor.commit(); +// } - public String getLongitude() { - SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); - longitude = prefData.getString("longitude","" ); - return longitude; +// public void getLocation(){ +// SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); +// longitude = prefData.getString("longitude","" ); +// return longitude; +// } + + public void getPlayListManager(){ + } }