|
|
|
|
|
|
|
|
Toast.makeText(this, "Vibration has been stopped", Toast.LENGTH_SHORT).show();
|
|
|
Toast.makeText(this, "Vibration has been stopped", Toast.LENGTH_SHORT).show();
|
|
|
return;
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
Toast.makeText(this, "Ampl: " + amplitude + ", Dur: " + duration, Toast.LENGTH_SHORT).show();
|
|
|
|
|
|
|
|
|
//Toast.makeText(this, "Ampl: " + amplitude + ", Dur: " + duration, Toast.LENGTH_SHORT).show();
|
|
|
|
|
|
|
|
|
v.vibrate(VibrationEffect.createOneShot(duration,amplitude));
|
|
|
v.vibrate(VibrationEffect.createOneShot(duration,amplitude));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currentLocation.setLatitude(breitengrad);
|
|
|
currentLocation.setLatitude(breitengrad);
|
|
|
currentLocation.setLongitude(laengengrad);
|
|
|
currentLocation.setLongitude(laengengrad);
|
|
|
}
|
|
|
}
|
|
|
Toast.makeText(SensorMapsActivity.this, currentTime.toString(), Toast.LENGTH_SHORT).show();
|
|
|
|
|
|
|
|
|
//Toast.makeText(SensorMapsActivity.this, currentTime.toString(), Toast.LENGTH_SHORT).show();
|
|
|
moveCamera(new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude()),15f);
|
|
|
moveCamera(new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude()),15f);
|
|
|
}
|
|
|
}
|
|
|
else{
|
|
|
else{
|