Farooq wrote: > I am just trying to get an idea about the Android Application. i have > some doubts in this. Can any body explains the flow of Android > Application? > like in java... > 1>main method > 2>creation of object > 3>method calls according to the object....etc
The basic UI building block is the Activity. You create activities that appear in the launcher (i.e., the panel that slides open containing the installed applications). Those activities then have a lifecycle -- first onCreate() is called for you to wire up the UI, etc. The "Getting Started" and "Developing Applications" sections of the Android SDK documentation are recommended starting points to get into more detail. In particular, there is a "Hello, Android" tutorial: http://code.google.com/android/intro/hello-android.html which shows the simplest Android application that actually does something: package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); } } -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

