Android App Permissions

Long gone are the days when Android developers used to give app permissions by adding only one line of code in the manifest file. This is no more possible because Google now cares more about user’s privacy and security and so they have added some extra layers of security by changing the way an app…

Showing Notifications

We will create a simple app that does nothing but display a notification to the user. Create a new project and jump to MainActivity class. We will add all our code in the onCreate method. You can later integrate this code into your apps as and when necessary. First, create an object for Notification and…

Working With Bluetooth

Enabling Bluetooth First thing we need to work with Bluetooth is Bluetooth Adapter which allows us to work with Bluetooth, the same way we use Location Manager to work with Locations. Set the Bluetooth Adapter variable in ┬áthe MainActivity class and let’s call it BA, as follows: BluetoothAdapter BA; Next we have to check whether…

Marshmallow Maps Permissions

With Marshmallow update being rolled out to almost all latest devices in the market, it is essential for a developer to upgrade their apps to support latest versions. If you are coming from Lollipop or earlier versions of android you are probably stuck when trying to upgrade your app to the new Marshmallow or Nougat…