Showing posts from 2011

Shortcut Keys for Eclipse

The Shortcut keys are very useful for  programmers to  Developing Application easily and fast. You want to see Shortcut keys  in Eclipse.  Press  Ctrl+Shift+L  It will show Shortcut keys as follows.

Home Screen Widgets In Android

For Widget Creation Follow the Bellow Steps:

1.Create New Project. 2.Create One Folder in res as   res/xml . 3.Create One .xml file as AppWidgetProvider  in xml folder  like res/xml/widgmail.xml 4.Create  one .java file in src/   with Extention of  AppWidgetProvider. 5.Open manifest file Add some code as follows.
Step 1:
Now , We Create One project as follows.
Project Name          : Widget For Gmail. ApplicationName    :WidgetForGmail. Package Name Acticity                      : WidgetForGmailActivity. miniSDK Vertion      : 8
Step 2: Create one Folder named as xml in res/
Step 3: Create one xml file in xml folder as AppWidgetProvider named as widgmail.xml as follows

Then Click On thi Finish Button, and the write the following  code in widgmail.xml file 
<?xmlversion="1.0"encoding="utf-8"?> <appwidget-provider xmlns:android="" android:minWidth="58px" android:minHeight…

Android Adapters

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. The Adapter provides access to the data items. The Adapter is also responsible for making a View for each item in the data set.
An AdapterView is a view whose children are determined by an Adapter.
Some examples of AdapterViews are ListView, GridView, Spinner and Gallery.
There are several types or sub-classes of Adapter:
ListAdapter: Extended Adapter that is the bridge between a ListView and the data that backs the list. Frequently that data comes from a Cursor, but that is not required. The ListView can display any data provided that it is wrapped in a ListAdapter.

ArrayAdapter: A ListAdapter that manages a ListView backed by an array of arbitrary objects. By default this class expects that the provided resource id references a single TextView.


package com.project.ListView;
import; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; im…

Itroduction To Android

What is android ?                 Android is a software stack for mobile devices that includes an operating system, middleware and key applications.

        One of the most widely used mobile OS these days isANDROID.Androidis a software bunch comprising not only operating system but also middleware and key applications.Android Inc was founded in Palo Alto of California, U.S. by Andy Rubin, Rich miner, Nick sears and Chris White in 2003. which is later on purchased byGoogle in 2005. Presently,Google and Open handset allianceare owners of Android operating system. After original release there have been number of updates in the original version of Android.