This video shows the steps to quickly fix android.os.NetworkOnMainThreadException in your Android Studio Java code. The fix shown is more of a workaround. Ideal fix would be to run all the network related tasks in a separate thread using async methods. However, in this video it shows how one can…
Tag: network
How to connect to Oracle database and run SQL queries from matlab command line and database explorer App?
In this video it shows the steps to configure the Oracle database in the matlab environment using the database explorer. The it shows how one run a query on the connected database through the database explorer or Matlab commands/ script. In this video it initially shows the result of connecting…
How to get SSID of the Wifi using WifiManager.getConnectionInfo API in your Android App? – For SDK 29 (Android 10)
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…
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 connect to the Oracle database using JDBC driver from your Android App? – Android Studio Example
In this page it shows the steps to develop the Android App code to connect to the Oracle database. It briefly shows the steps to install and setup the Oracle database on your machine initially. Then it takes through the steps of how to include the jdbc JAR file in…
How to get telecom carrier name of any sim slot in your Android App?
This video shows the steps to get the carrier name of the telephone service provider for any sims. It uses the SubscriptionManager to get the active subscriptions. From the SubscriptionManager object it extracts subscriptionInfos for the interested sim slot. It then uses the getCarrierName method to get the carrier name…
How to get current location of the phone in your iOS App? – Xcode tutorial
This video shows the steps to create your iOS App which can access the current location of your phone. The location coordinates is fetched in locationManager using CLLocation services of the phone. The location coordinates once received is updated in the Map and also updated in the Labels widgets in…
How to detect whether a user is typing or using the keyboard in your Android App?
In this video it shows how one can detect whether the user is using the keyboard for typing within an EditText widget. It uses addTextChangedListener and setOnFocusChangeListener listeners to detect the action of the user. Once the action is detected, that is the user is typing, the respective status is…
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…
How to create stored procedure in MS SQL database server and run (call) it from your Android App?
This video shows the complete end to end steps to create a simple stored procedure in MS SQL server and call the same from the Android App. In the first part of the video it shows how to create a simple stored procedure using MS SQL Server Management Studio (SSMS)….