Android
- 15 November
How to enable or disable Wifi in android programmatically
In this post, we will see how to enable or disable Wifi in android programmatically. It is very simple to enable or disable wifi from android code. For enabling WiFi: [crayon-600bae79eede9542424133/] For disabling Wifi: [crayon-600bae79eedf0523986694/] So you can enable or disable WiFi using WifiManger class. You need to add extra permissions in AndroidManifest.xml to enable […]
- 15 November
How to enable or disable Bluetooth in android programmatically
In this post, we will see how to enable or disable Bluetooth in android programmatically. It is very simple to enable or disable bluetooth from android code. For enabling Bluetooth: [crayon-600bae79ef20f593650102/] For disabling Bluetooth: [crayon-600bae79ef214711883721/] So you can enable or disable Bluetooth using BluetoothAdapter class. You need to add extra permissions in AndroidManifest.xml to enable or […]
- 14 November
get battery voltage in android programmatically
Sometimes when you are developing an android application, you may want to get current batter voltage In this post, we are going to see how to get current battery voltage in android. You can use intent.getIntExtra(BatteryManager.EXTRA_VOLTAGE,0) to get information about current battery voltage. Source code: Download click to begin 20KB .zip Step 1 : Create an android […]
- 14 November
get battery temperature in android programmatically
Sometimes when you are developing an android application, you may want to get current batter temperature For example: Lets say if battery temperature is too high, you may want to close some application. In this post, we are going to see how to get current battery temperature in android. Source code: Download click to begin […]
- 15 November
Check battery health in android programmatically
Sometimes when you are developing an android application, you may want to get current battery health In this post, we are going to see how to get current battery voltage in android. You can use intent.getIntExtra(BatteryManager.EXTRA_HEALTH,0) to get information about current battery voltage. Source code: Download click to begin 20KB .zip Step 1 : Create an android […]
- 09 November
get battery level and state in android programmatically
Sometimes when you are developing an android application, you may want to get current batter level or state. For example: Lets say you want to make a rule that if battery level is less than 15%, turn off all background processes in android. In this post, we are going to see how to get current […]
- 16 November
Add internet permission in AndroidManifest.xml in android studio
In this post, we will see how to add internet permission in android studio. When you are working on app which wants to access internet, you need to add extra permission in androidManifest.xml else your application won’t be able to access internet. So you need to put below code in AndroidManifest.xml file to access internet […]
- 13 January
Android SQLite Database CRUD example
In this tutorial, we are going to learn about Android SQLite database CRUD example. Android SQLite is open source relational database which can be used for performing crud operations. You don’t have to do explicit installation for it. It is available by default in android. Let’s start with simple example: In this example, we will […]
- 13 December
Retrofit Android Tutorial
In this tutorial, we are going to see Retrofit Android tutorial to get data from server. In previous post, we have seen android JSON parsing tutorial which was very simple. If you are not aware about Retrofit, it is android http library used to handle HTTP request.You can treat it as a replacement of AsyncTask in previous […]