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
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
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 …
Threads and Handlers in Android
When an android application is launched, a thread for that application is created by the system. This thread is called “main” or “UI thread”. Android uses single thread model ie. the system does not create a separate thread for each instance of a component. When you perform a long running task like database access, your …
How to create ProgressDialog in android?
Android Progress Dialog is an extension of the AlertDialog class that can display a spinner wheel or a progress bar. These dialogs help us to inform the users about the time consuming tasks and keep them involved till they get their work done. Android progress dialog can be of two types. ProgressDialog with a horizontal …
Annotation Support for Scheduling and Asynchronous Execution
In the previous post Task Execution and Scheduling in Spring, I explained basic interfaces for task execution and scheduling. In this post I shall demonstrate an example for the same using annotations @Scheduled and @Async. Let us have working Eclipse IDE in place and follow the steps to create a scheduled Spring application: Create a project: …
Task Execution and Scheduling in Spring
Spring 2.0 introduced abstractions for asynchronous execution and scheduling of tasks. The key interfaces for scheduling and task execution are as listed as TaskExecutor, TaskScheduler, Trigger, TriggerContext and ScheduledFuture. Let take a look at each of these interfaces. This article explores spring’s scheduler related APIs in detail. You can read the official explanation for this API’s here. follow us on @twitter and @facebook Spring …
How to add lists, Checkboxes and Radio buttons to an AlertDialog – Android
A Dialog is a small window that appears in front of the current Activity. An AlertDialog is a Dialog which can have zero, one, two or three buttons. We have discussed about creating a simple AlertDialog in one of our earlier posts AlertDialog. The previous tutorial on AlertDialog demonstrated how to create an AlertDialog which …