In this video will see how to overcome the problem of version mismatch between browser driver(e.g chromedriver,firefoxdriver etc) and browsers(e.g chrome,firefox etc.). This we will solve it by using WebDriverManager Class in our maven project. If you are not using maven project you can add the jar file of WebDriverManager …
Tag: location
How to RequestLocationUpdates if LocationServices.getFusedLocationProviderClient.getLastLocation always return null value in your Android App?
This video shows the steps to implement request location updates APIs for enforcing the App and Android device to get the updated location information. This is particularly useful when the App is trying to access the last location from the getFusedLocationProviderClient library. If the getLastLocation API is returning NULL then…
How to get list and count of files of Download folder from your Android App? – API 33
In this video it shows how one can get all the files available in the Download folder of your phone. It shows the steps to fetch the list of files for API-33 in Android Studio. I hope you like this video. For any questions, suggestions or appreciation please contact us…
How to enable “Allow all the time” location permission option for your Android App?
This video shows how one can use the ACCESS_BACKGROUND_LOCATION permission option in the App’s manifest file to enable the “Allow all the time” location service for your App. This privilege is required if your App runs in background and still needs location services for its functionality. Android OS, however, is…
How to detect whether Airplane mode is enabled or disabled (ON/ OFF) from your Android App programmatically?
In this short video it shows how to check whether the Airplane mode of the phone is Enabled or disabled from your Android App’s code (programmatically). 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 Complete source code:…
How to Turn ON location services (GPS) without navigating to settings page from your Android App?
In this video it shows how can the user of your App turn ON the location services (GPS) of the phone/ device without navigating to the settings page. It uses google play location services libraries for the same. Following library needs to be implemented in the gradle file for the…
How to detect GPS is ON or OFF (enabled or disabled) from your Android App?
In this video it shows how to check whether the GPS (location service) on the phone/ device is ON or OFF from your Android App. To do this, in the code it uses “isProviderEnabled” API on the location manager to check whether the service is ON. I hope you like…
How to take locators (xpath, etc) in Selenium and check locators in browser before using it in code to minimize the error?
In this video we will show you how to take locators (xpath/CSS Selector/id/name/ link text/class Name/tagName/partial link text) and checking it in browser (debugger tool) to make sure locator is correct and unique. Locators are nothing but exact location of any element on web page. I hope you like this…
How to get Latitude and longitude coordinates from the text address in your Android App without maps layout using Geocoder API?
This video shows the steps to get latitude and longitude coordinates from the text address. It uses Geocoder APIs to get the address list. In this video it just fetches the 1st most probable address matching the text string. However, for more advanced location search one can filter the addresses…
How to create an Excel file from your Android App?
This video shows the steps to create an Excel file in your Android App. It uses third party library (not available as in-built APIs) from org.apache.poi. It hard-codes the file name and sheet name in the code. However, that can be taken as an input from the user. For the…