Category Archives: Android

Simple Android Foreground Service Example Tutorial

In this tutorial we will see a very simple implementation of android foreground service. A Service is an application component that can perform long-running operations in the background and does not provide a user interface. A Foreground Service in android is a background service which keeps running even after the parent application is closed. Use… Read More »

83,102 total views, 6 views today

Android Advanced Interview Questions And Answers

Q)Explain  Service vs intent service ? When to use? The Service can be used in tasks with no UI, but shouldn’t be too long. If you need to perform long tasks, you must use threads within Service. The IntentService can be used in long tasks usually with no communication to Main Thread. If communication is required, can use Main Thread… Read More »

10,220 total views, 1 views today

Android AsyncTask Example

AysnTask is an inbuilt class in android which can be used for performing background operations like downloading a file, making HTTP Request and then showing the results on the UI. AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without… Read More »

10,635 total views, no views today

Android custom notification for music player Example

In this tutorial, you will learn how to create Custom Notifications in your Android music player application. A notification is a message you can display to the user in the status bar outside of your Android application. Notifications can be clicked to perform an action or to open a new activity. We will be creating… Read More »

87,583 total views, 10 views today

Building your own android chat messenger app similar to Whatsapp using XMPP (Smack 4.1 API) from scratch: Part-2

In Part-1 we finished the implementation of chat interface for our android messenger. Now we will focus on implementing the client for XMPP server to send & receive chat messages using Smack API for Android. Adding library files to the project: – Download the library files for Smack API and GSON which is a library for… Read More »

247,046 total views, 4 views today

Building your own android chat messenger app similar to Whatsapp using XMPP (Smack 4.1 API) from scratch: Part-1

Today we will develop a chat application from scratch for android. We will use XMPP (ejabberd) hosted on aws EC2. I will be developing this app using Eclipse IDE with adt plugin. Create a new android application project in eclipse. Choose tabbed activity while creating the project.(see screenshot below) Select “Action bar tabs (with viewpager)”… Read More »

188,022 total views, 2 views today