Archive for the Tutorial Category

0

What is an Intent?

An intent is an asynchronous message used to activate an Andriod Application Components like Activity, Service and broadcast receiver, content providers are not activated by intents but by receiving a request from ContentResolver.

To activate an Activity an intent object with information of action being requested and URI of the data to be acted upon is passed to Context.startActivity() or Activity.startActivityForResult().

A service can be passed by passing an intent object to Context.startService(). To establish an ongoing connection between the calling component and a target service Context.bindService() is called by passing an intent object.

Similarly and intent object is passed to Context.sendBroadcast(), Context.sendOrderedBroadcast(), or Context.sendStickyBroadcast() to activate a service.

0

Tutorial: Creating Java Web Application

In this tutorial you will learn how to create a simple Hello World Java web application. The application will not use any IDE and will solely depend on what JDK provides.

So, let start with our first java hello world web application.

Pre-Requisites

1- Download JDK from here. Latest JDK version at the time of writing this tutorial is 6.

2- Download and install/unzip Apache Tomcat web server (zip or tar for Linux or installer) from here

Read More

1

Set Up Apache Tomcat On Windows

 

1- Download latest Apache Tomcat from here. You can download a zip or a tar for Linux or an installer package.

2- Unzip/ install tomcat at a proper place; say in C:/tomcat directory

 

Set up environment variables

1- To make tomcat run JAVA_HOME environment must be set. If you already have not done this then refer to other tutorial Install And Configure JDK On Windows and set the java variables

Read More

0

Install And Configure JDK On Windows

 

First download JDK from here. I am using JDK 6 for this tutorial

1- Run the JDK setup and install Java on your machine

2- On windows right click My Computer and click Properties

Read More

0

Tutorial: Java/JSP Hello World Web Application in Eclipse

Pre-Requisites

  • Eclipse : I am using Eclipse 3.4 (Ganymede) for this application. You can download the latest version from here
  • Tomcat : download from here

 

Level: beginners

This application is for newbie how want to start java web development. In this application we will create a web application in Eclipse platform and the application will be deployed on Tomcat web server. This application will only show some output on the JSP page.

Lets start with our application

Read More