frag to acts with mapobox moving ptr demo #17

Merged
s411201 merged 8 commits from mapBoxsToDevelop into develop 2018-10-13 22:44:36 +02:00
Showing only changes of commit 89ef83033b - Show all commits

View File

@ -6,6 +6,8 @@ import android.view.View;
import com.mapbox.mapboxsdk.Mapbox;
import com.mapbox.mapboxsdk.maps.MapView;
import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
import com.uam.wmi.findmytutor.R;
import static com.mapbox.mapboxsdk.Mapbox.getApplicationContext;
@ -21,43 +23,54 @@ public class MapActivity extends BaseActivity {
Mapbox.getInstance(this, getString(R.string.access_token));
mapView = findViewById(R.id.mapView);
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(new OnMapReadyCallback() {
@Override
public void onMapReady(MapboxMap mapboxMap) {
// Customize map with markers, polylines, etc.
}
});
}
@Override
public void onStart()
{
super.onStart();
mapView.onStart();
Log.d(tag, "In the onStart() event");
}
@Override
public void onRestart()
{
super.onRestart();
Log.d(tag, "In the onRestart() event");
}
@Override
public void onResume()
{
// Add the mapView lifecycle to the activity's lifecycle methods
@Override
public void onResume() {
super.onResume();
mapView.onResume();
Log.d(tag, "In the onResume() event");
}
@Override
public void onPause()
{
super.onPause();
mapView.onPause();
Log.d(tag, "In the onPause() event");
protected void onStart() {
super.onStart();
mapView.onStart();
}
@Override
public void onStop()
{
protected void onStop() {
super.onStop();
mapView.onStop();
Log.d(tag, "In the onStop() event");
}
@Override
public void onPause() {
super.onPause();
mapView.onPause();
}
@Override
public void onLowMemory() {
super.onLowMemory();
mapView.onLowMemory();
}
@Override
protected void onDestroy() {
super.onDestroy();
mapView.onDestroy();
}
@Override