In mobile application development each and every small information cannot be stored in a database, as complex database queries can limit the processing power of the processor affecting the battery life. Android provides a simple mechanism called “Shared Preferences“ using which small and vital information like user preferences and others can be stored . Android data storage [...]
May 3, 2013
How to create AlertDialog box in Android?
This tutorial explains you how to create a simple AlertDialog box and how to deal with those dialogs. Dialog is a small window which takes a small part in your screen. It is majorly used to react to user driven events. Dialogs are always part of your activity. It gets the focus unless the user closes [...]
May 2, 2013
How to create a Toast message in Android?
A Toast in android is a transient notification that needs no user interaction. It disappears after a certain time period. It notifies user that something has happened.The current activity remains visible even when the toast message pops up. You can always make a toast to display messages of your choice. Android toast can display, simple [...]
May 1, 2013
Cache Abstraction In Spring (Example for @Cacheable and @CacheEvict)
Since Spring 3 a new abstraction layer for caching services has been introduced called Cache Abstraction. The idea is to provide a set of common features, mainly annotations, to activate and manage the caches. Cache Abstraction is nothing but applying caching to Java methods, reducing thus the number of executions based on the information available in [...]
May 1, 2013
How to switch from one activity to another in Android?
This tutorial explains you about how to Navigate from one activity to another in Android. I Presume you have enough basic knowledge about how to create a sample application in android and How to add a new Activity to an already created sample app. Let us now discuss how we can make two activities talk to each other. Step 1: Create [...]
April 30, 2013
How to transfer data between Activities in Android?
In Mobile app development you will come across many situations wherein you will have to send data from one activity to another. It is one of the most challenging part in the mobile application development. This tutorial describes how you can transfer data between activities in Android application. In this sample app I will be [...]
April 29, 2013
Photo Viewer using JavaScript
HTML has a separate element for image display. This will display the image in a specific region of the page. If we want to add multiple pictures and view it one at a time, then HTML does not have any such tag. We need to build our own design for that. This is a JavaScript [...]
April 29, 2013
Resources API in Spring – Part 2 (ResourceLoaderAware)
In the previous post I discussed about the external resource loading in Spring using Resource Loader interface, and setter methods. In this post I shall discuss about another form of resource loading through ResourceLoaderAware interface. Prior to release of Spring 2.5, this technique was used to load the external resources. Post Spring 2.5, you can [...]
April 29, 2013
How to create a Layout xml file in Android?
As we have discussed in one of our previous posts Layouts in android layouts are the containers that hold the components of UI that you want to display in your application. When you compile your application,each xml layout file is compiled into a View resource. This tutorial describes how you can add a layout file to a newly [...]
April 28, 2013
Resources API in Spring – Part 1
At times we may need to read external resources (e.g., text files, XML files, properties file, or image files) into our application. These resources can be located different locations (e.g., a file system, classpath, or URL). Usually, you have to deal with different APIs for loading resources from different locations. To handle such file accessing [...]






May 4, 2013
0 Comments