Академический Документы
Профессиональный Документы
Культура Документы
AlertDialog
The AlertDialog is an almost modal
screen
that
(1) presents a brief message to the user
typically shown as a small floating
window that partially obscures the
underlying view, and
(2) collects a simple answer (usually by
clicking an option button)
Progress Dialog
ProgressDialog progressDialog =
ProgressDialog.show(AddTicketActivity.this, "",
"Loading...");
Custum Dialog
Syntex:
Dialog d=new Dialog(MainActivity.this);
d.setContentView(R.layout.id_of_layout)
d.show();
Intent types
INTENT TYPES
EXPLICIT
IMPLICIT
Action to perform
How?
<intent-filter>
<action
android:name=my.project.ACTION_ECHO />
</intent-filter>
10
11
<intent-filer >
<action
android:name=com.example.it.ECHO
/>
12
<intent-filer >
<category android:name=android.intent.category.DEFAULT/>
</intent-filter>
13
15
Broadcast Receivers
Receive and react to broadcast announcements
Extend the class BroadcastReceiver
Examples of broadcasts:
Low battery, power connected, shutdown, timezone
changed, etc.
Other applications can initiate broadcasts
17
Broadcast Receivers
1/ extend BroadcastReceiver
2/ override onRecieve()
http://developer.android.com/reference/android/content/Intent.html