Spring support for Multipart (File Upload)

spring

In this article let us see how to how Spring supports multipart i.e file uploading. Spring has built-in multipart support for file uploads in web applications. This can be enabled with the interface org.springframework.web.multipart.MultipartResolver object. There are two implementations of the interface MultipartResolver provide by Spring as follows: One implementation is for use with Commons […]

Themes in Spring MVC

spring

In this article I shall discuss about using themes in Spring application. A theme is a collection of static resources, typically style sheets and images, that affect the visual style of the application. We can apply Spring Web MVC framework themes to set the overall look-and-feel of application, thereby enhancing user experience. This would be […]

Exception Handling in Spring with Example

spring

In this article I shall discuss about how to handle exceptions in Spring. In servlet web applications, exception mappings are defined in the web application descriptor web.xml. In Spring, HandlerExceptionResolver implementations can be used to deal with unexpected exceptions that occur during controller execution. These implementations provide information about which handler was executing when the exception […]

Switch in Android 4.0

android-icon

A Switch is a widget introduced in Android 4.0, which is a two state toggle button. You can drag it to one side or the other with your fingers to toggle an option between two states, or you can simply tap on it to change that state of an option(ON or OFF). A Switch is […]

How to create Dialog activity in Android?

android-icon

A dialog is a small window which prompts the user to enter additional information. We have discussed about how to create a dialog in one of our articles Dialog.  In this tutorial we would be learning how to create an activity dialog in android. As shown in the below figure, an Activity Dialog is like […]

How to create CheckBoxes in Android

android-icon

CheckBox is a fully implemented widget provided by Android. Checkboxes are used for selecting one or more options from a set. In this tutorial we would be discussing about creating the standard and customized CheckBoxes. CheckBox is a special type of button that has two states, checked and unchecked. The CheckBox in Android is as […]

Fragments in Android

android-icon

Fragments are like sub-activities which are objects that represent parts of an activity’s UI. Fragment is a modular section of an activity, which has its own lifecycle, receives its own input events. Multiple fragments can be combined to form a single activity to build multipane UI and reuse it as a single fragment in multiple […]

What is StrictMode in Android? – Part 2

android-icon

In our previous post StrictMode Part 1  we had discussed how to set up StrictMode in development environment and how to run your application with StrictMode enabled on emulator. In this tutorial we would be discussing more about dealing with StrictMode. The main topics that we are going to discuss are, Turning off StrictMode When your […]

What is StrictMode in Android? – Part 1

android-icon

StrictMode is a special class for verifying that your Android application is not doing things like disk I/O, Network access from the UI thread. This is a debugging feature introduced in Android 2.3. This developer tool detect things done accidentally and bring them to your attention so that you can fix them so as to avoid […]

AsyncTask in Android

android-icon

AsyncTask is an Helper class that allows you to perform background operations and updating the UI when the task completes. After the execution of the Background task, the results are published on the UI thread. It is ideal for running short operations that spans for few seconds. It serves better when compared to Threads and […]