In the Web MVC framework, each DispatcherServlet has its own WebApplicationContext, which inherits all the beans already defined in the root WebApplicationContext. So if you have common beans or resources that need to be shared among “child” WebApplicationContexts, you need to define them within root WebApplicationContext.
Location Services API enables you to build location-aware Android application without going into the details of the underlying technologies. Location Services maintains user’s current location so your app just needs to get it from location client. The accuracy of the location depends on the active location sensors and location permissions requested in the Manifest file. Also, the API allows you to get the user’s updated location at regular intervals.
This post shows how to select an image from image gallery, display it on ImageView and how to get its real path on different API versions (19, 17 & 10). We will use ACTION_GET_CONTENT intent that is set to select data of type image only.
This is a quick tutorial showing how to use your Google Nexus 5 “as a developer” to run or test Android app developed on Windows PC.
Developer Preview support library
. RecyclerView is a more advanced and flexible than ListView This widgets have material design style by default. Use RecyclerView widget when you have lists that change dynamically.
Android L Developer Preview is an early release of the upcoming Android platform. This post shows how to get your development environment ready, how to create a simple app & how to use Material Design theme.
HMKCode has released a new simple, easy and elegant jQuery tutorial. Try it here
Here is a simple “memory” game developed using HTML, CSS, jQuery
Try it here
Source Code @ GitHub
How to center a view or its content e.g. TextView or Button horizontally and vertically? layout_gravity can be used to position a view in the center of its parent. While gravity attribute is used to position view’s content e.g. “text” in the center of the view.
Google Cloud Messaging for Android (GCM) is a push-notification-like service freely provided by Google. Simply, it allows you to send data from one-end “we will call it a GCM server” to GCM clients e.g. Android app.
This service can be used to send notifications or messages containing up to 4Kb of payload data. The GCM service takes care of messages queueing and delivery to the target application. GCM is completely free no matter how big your messaging needs are, and there are “so far” no quotas.