Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
19 Cards in this Set
- Front
- Back
When using an implicit intent, does startActivity(Intent) mean "start an activity matching this implicit intent" or "start the DEFAULT activity matching this implicit intent"? |
start the DEFAULT activity matching this implicit intent |
|
An activity that has the MAIN/LAUNCHER intent filter is the.... |
main entry point for the program that it belongs to |
|
What is an activity's label? |
its display name |
|
ResolveInfo |
Information that is returned from resolving an intent against an IntentFilter. This partially corresponds to information collected from the AndroidManifest.xml's tags. |
|
ActivityInfo |
information you can get from ResolveInfo about that activity. includes activity label, package name, class name, etc. |
|
When starting an activity in an explicit intent, do you need to include the action? |
it's not required, but it's best practice. Some apps will behave differently depending on how they're started Intent i = new Intent(Intent.ACTION_MAIN) |
|
ComponentName |
package name and class name stuck together created behind the scenes when you use setClassName(...) |
|
How does Android use tasks? |
to keep track of the user's state within each running application |
|
task |
stack of activities that the user is concerned with |
|
base activity |
activity at the bottom of the stack |
|
By default, which task are new activities started in? |
the current task |
|
If you DON'T want an activity to be started in the current task and instead want it be started in its own task, what do you do? |
add a flag to the intent so that you start a new task when you start a new activity (do in the activity that might be start new activities from within it) i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) only creates one task per activity. if you try to start the same activity again, it will open the existing task |
|
How do you set an activity to be an option for the home screen? |
add to its main intent filter: <category android:name="android.intent.category.HOME"/> <category android:name="android.intent.category.DEFAULT"/> Now when you press the home button, this activity will show up as an option |
|
process |
place created by the OS for your application's objects to live and for your application to run |
|
Which is more straightforward in Android: multithreading or using multiple processes? |
multithreading |
|
Every activity instance lives in ______ process and _____ task |
one process and one task |
|
task vs. process |
task: only contains activities. Often consists of activities from different applications process: contain all running code and objects in an application |
|
can the task be different from the process? |
yes the contacts application can run in the CriminalIntent task, but it will run in the contacts process |
|
Can a task be killed? Can a process be killed? |
task: no process: yes |