This video shows the code to get SSID of the wifi in your Android App using the WifiManager.getConnectionInfo API. 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: package com.programmerworld.getssidofwifi;import androidx.appcompat.app.AppCompatActivity;import androidx.core.app.ActivityCompat;import android.Manifest;import android.content.pm.PackageManager;import android.net.wifi.SupplicantState;import…
Tag: device
How to get make, model, brand, etc. of the phone/ device in your Android App?
In this video it shows how to get the details of the phone such as Model, Manufacturer, Device name, etc. using the Build object in the code. The details of the phone from the Build is available to any app so it can easily be accessed to fetch the details…
How to get unique Android ID of your phone/ device in your Android App?
How to uniquely identify (get Android ID) your Android phone from your Android App? In this video it shows the steps to implement the code in which the unique Android ID of the phone or device is fetched. The Android ID is unique to each device and the value is…
How to get alphabets from string (includes special characters, spaces) in Android App using regex?
How to extract or filter out only alphabets from an alphanumeric string (including special characters and spaces) in your Android App using regular expression (regex)? In this video it shows how one can use regular expressions to filter or extract only the alphabets from a string which contains special characters,…
How to customize the date and time in any format using the calendar API in your Android App?
In this video it shows how one can customize the date and time to any format. It uses the calendar API to pull or extract the elements of date and time such as Days, Month, Year and Hours, Minute and Seconds. It takes the instance from the calendar to capture…
How to extract integers from alphanumeric string in your Android App?
In this video it shows how one can extract or filter all the digits (integers) from any alphanumeric string/ texts. It uses replaceAll method of the string to replace any non-numeric character with null (that is delete the non-numeric characters). In demo it shows how from our email ID –…
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 enable/ disable the GPS (toggle-ON/ OFF) from Android App by calling intent from AlertDialog?
In this video it shows how one can toggle the GPS settings ON and OFF by calling the respective intent from the Android App. It uses the ACTION_LOCATION_SOURCE_SETTINGS intent to open the respective settings to be toggled by the user. I hope you like this video. For any questions, suggestions…
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 get Date and Time from online servers in your Android App?
In this video, it shows how one can fetch date and time from an online server in your Android App. Fetching or synchronizingtime from an online server may give more accurate results in case the system’s (OS) date and time is manipulated by some other Apps. In this tutorial it…