In this video it shows how one can detect the vibration or the shake of the phone using accelerometer sensor. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Source code: package com.programmerworld.detectvibrationshaking;import androidx.appcompat.app.AppCompatActivity;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.SensorEventListener;import android.hardware.SensorManager;import…
Tag: movement
How to get the device last location (using GPS/ Network) without using Map Layout in your Android App?
This video shows how to implement the FusedLocationProviderClient from the Google’s play-services-location to get the last location of the device. In this approach it need not to use the google maps layout or use the Google Maps API key required to get the google map information. This approach uses the…