There have already been good answers on this thread, so I'll just add
a little more to what's already here. As Mark pointed out, UI
interaction with users happens through Activity classes, and you can
read about their execution lifecycle at
http://code.google.com/android/reference/android/app/Activity.html .

Long-lived executables take place in the context of Services. These
are generally things that provide some piece of functionality to UI
tasks, often related to I/O that may take a long time.

As Juan mentioned their are also BroadcastReceivers that deal with
understanding, interpreting, and routing requests that your
application receives. ContentProviders provide a convenient API for
your application and others to access data related to your
application, for example the Contacts system exposes a ContentProvider
so other applications can access contact data.

One key concept of Android execution is that it is based on callbacks.
When something interesting to you happens, the Android system will
call on of your callback methods. For example Activity.onCreate() when
its time for your Activity to start executing or Activity.onPause()
when another Activity is launching in front of you.

Cheers,
Justin
Android Team @ Google

On Sep 2, 8:34 am, jtaylor <[EMAIL PROTECTED]> wrote:
> Hello Farooq,
>
> There are no applications. The main component is the Activity, and
> there are Services, BroadcastReceivers and Content Providers. All
> these are part of the Flow. Your app is using components you didn't
> create. And within those components is Flow as well, such as
> Activities have onCreate() and onStart() and onPause(). So you have to
> have patience and understand things little by little.
>
> - Juan T.
>
> On Sep 1, 11:47 pm, Farooq <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > 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
>
> > Regards
> > Farooq
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to