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 :




0 comments:
Post a Comment