In the this tutorial we will explain how to send a notification using Notification.Builder class. And how to schedule it after a certain interval. Here we show how to schedule the notification after 5 seconds. Scheduling of the notification is achieved by using AlarmManager. By registering a BroadcastReceiver called AlarmReceiver we can subscribe the broadcast […]
Android Kotlin Listen To Internet Connection Using BroadcastReceiver
One of the most common use in mobile application is to perform tasks through internet. There is no guarantee that user has always active internet connection when they operate on our application. So it is safe to know in advance that user has a active internet connection or not. Based on this we can show […]
Android Change Language At Runtime Programmatically
This tutorial will explain you how to change the language locale of your application at runtime or dynamically. The code explained here will show you how to convert text written in English to French language using a Helper class. Step 1: Create Separate string.xml With Translations Here fr is the language qualifier for french language […]
Android Location Tracking In Background Service
In this tutorial i’m going to explain about how to track the location of the device using a background service with Google LocationServices API Client and share the location to the Activity using a broadcast receiver. The background service will keep running as long as the application exists in the memory and sticks to the […]
How To Zip Files Into Directory Programmatically
Zipping folder is very useful when you large number of files are there to send. If you have ‘n’ number of files to send to server through internet then it is good to put all the files in a directory and zip this directory to a zip file and send this single file. Zipping functionality […]
How To Screen Capture Programmatically In Android
In this article i will explain about taking the screenshot of the current screen with few lines of codes. It is a very handy and useful code if you play with screenshots of your app. It converts the view to a bitmap and save it in device storage for future use. I will write two […]
Parsing JSON Data In Android
API development is the primary area where JSON is most widely used. Irrespective of which language (ie, JAVA, PHP, C etc) you use to develop or which platform are you in (i.e, Computer, Mobile etc) JSON data format is considered as the best method to use in data interchange. In this article i will explain […]
JSON Data Format : Explanation
What is JSON? JavaScript Object Notation, It is the data-interchange language independent format and it is easier to understand for both machines and humans. So it is widely used in the area of communication between different software systems. JSON can represent information about a single item or a collection of items. With less content JSON […]