Using Web Services to Build Your Own Weather Application

Web services allow different applications from different sources to communicate with each other without time-consuming custom coding. All communication is in XML, and they are not tied to any operating system or programming language. This post will explain how to consume a third party web service

[ read more ]

Create Simple Web Service in Visual Studio 2008 / 2010

Create Simple Web Service in Visual Studio 2008 / 2010

Welcome to this tutorial on Creating and Consuming a Web Service in ASP.Net Using C#. In this tutorial we will see how to create a simple Web Service, then consume that Web Service in a .Net Page. In this tutorial I walk you through creating a basic web service that retrieves data from a database, t

[ read more ]

Implement a simple File Explorer in Android

Implement a simple File Explorer in Android

- First of all, as a user app, I think it should not access the root "/" directly. So I assign root to Environment.getExternalStorageDirectory(), it's the Android external storage directory. - Secondly, if a file/directory is hidden or un-readable, it will not be display. Create /res/layout/row.

[ read more ]

ListView, with icon

ListView, with icon

ListView in simplest form with plain text only. This exercise describe how to add a icon in ListView. create a new file in /res/layout/row.xml, to setup our layout on each row. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an

[ read more ]

Load ImageView with bitmap from internet

Load ImageView with bitmap from internet

It's a simple way to load ImageView with a bitmap from internet, via http connection. In order to load something from internet, the AndroidManifest.xml have to be modified to grand permission for internet access. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http:

[ read more ]

Struts 2 Tutorial: Struts 2 Tiles Plugin Tutorial with Example in Eclipse

Struts 2 Tutorial: Struts 2 Tiles Plugin Tutorial with Example in Eclipse

Introduction to Tiles 2 Nowadays, website are generally divided into pieces of reusable template that are being rendered among different web pages. For example a site containing header, footer, menu etc. This items remains same through out the website and give it a common look and feel. It is very

[ read more ]

Struts 2 Tutorial: Struts 2 Validation Framework Tutorial with Example

Struts 2 Tutorial: Struts 2 Validation Framework Tutorial with Example

Introduction to Struts2 Validation Framework Struts Action 2 relies on a validation framework provided by XWork to enable the application of input validation rules to your Actions before they are executed. Struts2 Validation Framework allows us to separate the validation logic from actual Java/JSP

[ read more ]

Layouts in Android

Layouts in Android

A layout defines the visual structure for a user interface, such as the UI for an activity or app widget. You can declare a layout in two ways: Declare UI elements in XML. Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for

[ read more ]

HTML5 Inline SVG

HTML5 Inline SVG

HTML5 has support for inline SVG. What is SVG? SVG stands for Scalable Vector Graphics SVG is used to define vector-based graphics for the Web SVG defines the graphics in XML format SVG graphics do NOT lose any quality if they are zoomed or resized Every element and every attribut

[ read more ]

Spring MVC: Multiple Row Form Submit using List of Beans

Spring MVC: Multiple Row Form Submit using List of Beans

Recently I had a requirement where using Spring MVC we had to take inputs multiple rows of data from user. The form had many rows which user can edit and submit. Spring MVC provides very simple yet elegant way of collecting data from multiple rows from HTML form and store them in List of Beans in Ja

[ read more ]