In this video it shows the code to detect any kind of rotation movement on touch screen. And then it rotates the Android App layout respectively to Portrait and Landscape orientation. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email…
Tag: move
How to use onBackPressed method to quickly navigate to other layouts in your Android App?
In this video it shows the steps to use the onBackPressed override method to customize the functionality of back button of the Android phone. In this method one can navigate to the desired layout and page when back button is pressed using setContentView API. I hope you like this video….
How to implement swipe/ drag down refresh functionality using SwipeRefreshLayout in your Android App?
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…
How to make your own custom paint (free hand drawing tool) Android App? – complete source code
In this video it shows how one can make his/ her paint or drawing android app. In this it creates a free hand drawing/ sketching App. It uses onTouchEvent to get the X and Y points of user’s touch movement on the screen. Then it draws those lines on the…
How to control the size of the text using the seekbar in the floating window in your Android App?
In this video it shows how one can implement a pop-up floating window and control certain elements, such as text size, using the seekbar. It uses the progress attribute of the seekbar to set the respective size of the text in the text view. I hope you like this video….
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…
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…