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 f8f12a2..53f8683 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/Amaryllis.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/Amaryllis.java @@ -7,6 +7,7 @@ import org.ntlab.amaryllis.client.entities.AmaryllisBackgroundService; import org.ntlab.amaryllis.client.entities.PlayListListener; +import org.ntlab.amaryllis.client.voiceservice.VoiceMemo; import java.util.ArrayList; @@ -17,8 +18,11 @@ private String name = null; private Location location; private ArrayList playListListeners; + private int index=0; AmaryllisBackgroundService amaryllisbackgroundservice; -// Amaryllis(){ + private ArrayList playList; + +// public Amaryllis(){ // super(); // Intent intent=new Intent(this,amaryllisbackgroundservice.getClass()); // startService(intent); @@ -92,9 +96,25 @@ return location; } -// private ArrayList l; -// public AmaryllisBackgroundService getBackgroundService() { -// return amaryllisbackgroundservice; -// } + + public AmaryllisBackgroundService getBackgroundService() { + return amaryllisbackgroundservice; + } + + public void setIndex(){ + SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); + SharedPreferences.Editor editor = prefData.edit(); + editor.putInt("indexData", index); + editor.commit(); + } + + public int getIndex(){ + SharedPreferences prefData = getSharedPreferences("pref_data", MODE_PRIVATE); + index = prefData.getInt("indexData",0); + return index; + } + + public void getPlayList(){ + } }