What is Activities
What is Activities ??
Activities:
Think of an activity as being a container for your UI,
holding your UI as well as the code that runs it.
Android applications are made up of one or more activities.
Your app must contain at least one activity, but an Android
application can contain several.
Intents:
Intents are used to start activities and to communicate
among various parts of the Android system.
Your application can either broadcast intent or receive intent.
To make a new activity:
In Eclipse:
1-
File -> New -> Other .. ( Or
) - Press Ctrl + N.
2-
Select Android
Activity then press Next.
3-
Select which template
to use Blank Activity.
4-
Select the Project and
Activity Name – It must begin with uppercase because it is Class name –
And layout Name then press Finish.
There is a lot of method to start activity by intent, .. I will illustrate three of them :
What is Android !!
Posted by
Unknown
0
comments
What is Android :
Android .. is open source operating system , open-source
code mean that allows every developer for customize his code and republish it
again under Google license ,and digging into the source code to see how a
certain task is handled ,
Most people don’t know this, but Google didn’t start the
Android project.
The initial Android operating
system was created by a small startup company in Silicon Valley known as
Android, Inc., which was purchased by Google in July 2005.
The founders of Android, Inc., came from various Internet
technology companies such as Danger, Wildfire Communications, T-Mobile, and
WebTV.
Google brought them into the Google team to help create what
is now the full-fledged Android mobile operating system.
What is android platform made from:
Android Is made from several elements united with each
others to produce the android application :
This elements
is :
1-
Activities:
·
It is the building block of
the User Interface (UI).
2-
Layout :
·
It is the Graphical user
interface of the activity. But at some times the Activities have not a user
interface.
3-
Resources :
·
It is static files holds
the resources of your application.
4-
Android Manifest :
·
Here is where you declare
what is inside your application—the activities, the services, and so on.
·
You also indicate how these
pieces attach themselves to the overall Android system
Subscribe to:
Posts (Atom)








