CATEGORY: Android

How to show Alert Dialog / popup in Android

AlertDialog Example

In Android alert dialog is like a popup message to confirm some thing from end user (user of your application /  game).

In Android it is very easy to create / show alert dialog. Before deletion of any item it is necessary to confirm form user by AlertDialog. Code in following function is describing how to show a simple alert dialog in android application.

Android SharedPreferences

Introduction

Preferences are generly a little storage and typically name value pairs. They can be stored as “Shared Preferences” across various activities in an application. Or it can be something that needs to be stored specific to an activity.Here you will see the useage of SharedPreferences.

Java / Android Sort ArrayList

How to sort an ArrayList in Android:

Following code is describing, how to sort an Android / Java array list of user defined class.