Professional Documents
Culture Documents
Pertemuan 2 - CTX Activity Dan Struktur Project Android Studio
Pertemuan 2 - CTX Activity Dan Struktur Project Android Studio
MOBILE PROGRAMMING 1
(SESSION 2)
Nova Agustina, M.Kom.
Tools :
LECTURE
CONTRACT
PRESENSI
UTS UAS ASSIGNMENT QUIZ UTS
PRESENSIES
Your device's Home screen is where almost any task is started. When
the user taps an icon in the app launcher (or a shortcut on the Home
screen), that app's task appears in the foreground.
If there is no task for the app (the app hasn't been used recently), then
a new task will be created and the "main" activity for that app will
open as the root activity in the stack.
TASK ON ANDROID
WHEN DOES THE TASK END?
When a new application starts, the system will start a task for that application (task B)
with its own activity stack. After interacting with the app, the user returns to Home
again and selects the app that originally started task A. Now, task A appears in the
foreground—all three activities in the stack don't change and activities on top of the
stack resume. At this point the user can also switch back to task B by going to Home
and selecting the icon of the application that started the task (or by selecting the
application task from the summary screen). This is an example of multitasking on
SUMMARY
Once you've created your new project, you'll create three main
Gradle files that you can see in the left pane of Android
Studio.
Gradle Setting
The include syntax indicates that the app folder is the only
sub-project listed here, if we want to add a library to the
project we must also add it to this settings.gradle file.
RUNNIN
G
PROJEC
T
CREATE PROJECT
CREATE PROJECT
1
2
3
4
5
CREATE PROJECT
SESSION 3:
VIEW, LAYOUT, AND
RESOURCES