In this video it shows how one can implement the App refresh functionality on swipe down (drag down) by the user. Once the user swipes down anywhere in the layout in the app, the onRefresh method of the layout gets triggered and respective functionality is executed. This app uses the…
Tag: shake
How to detect the vibration or shaking of the phone in your Android App? – Android 12 | API Level 31
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…