diff --git a/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java b/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java index c121f6b..680755a 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java @@ -48,6 +48,7 @@ import java.io.File; import java.io.FileInputStream; +import java.util.ArrayList; import retrofit2.Call; import retrofit2.Callback; @@ -77,7 +78,7 @@ Button PlaybackButton; private double latitude,longitude; // double latitude,longitude; - + private double latmax,latmin,longmax,longmin; private byte[] byteData = new byte[4096]; //private short[] shortData = new short[2048]; private int bufSize; @@ -131,7 +132,7 @@ @Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); - + ((MainActivity) getActivity()).subscribe(this); Retrofit retrofit = new Retrofit.Builder() .baseUrl("http://nitta-lab-www.is.konan-u.ac.jp/amaryllis/") .addConverterFactory(JacksonConverterFactory.create()) @@ -176,6 +177,19 @@ public void onLocationChanged(Location location) { Log.d("DEBUG", "lat : " + location.getLatitude()); Log.d("DEBUG", "lon : " + location.getLongitude()); + Call> call = voicememosService.getVoicememos(latmax,latmin,longmax,longmin); + call.enqueue(new Callback>() { + @Override + public void onResponse(Call> call, Response> response) { + + } + + @Override + public void onFailure(Call> call, Throwable t) { + + } + }); + } @Override