Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

MIDTERMS MOBILE PROG

QuestionAnswer
The ____________ method allows fundamental setup for the activity, such as declaring the user interface, defining member variables, and configuring some of the UI. onCreate()
You can create your layout in Android using HTML. False
Android is a mobile operating system based on Linux. True
In May 2015, Android introduced the fingerprint authentication under the _____________. Android 6.0
Every listener has a function (callback method) that is overridden when implementing a concrete listener. True
There is a runtime check for the layout width and height, so if you fail to specify a size, an exception is thrown at runtime. True
If you want to access an image from your res folder to your Java code, what command you should use? R.drawable.image
This callback method is called when the user navigates back to the screen of your application after using another/different application. onRestart()
We can use our own Android device to run our application from Android Studio. True
A ListView is a type of AdapterView that displays a vertical list of scroll-able views and each view is placed one below the other. True
Android 1.0 is also known as Cupcake. True
_________ class contains resource IDs for all the resources available in your directory. R
When you switch from one activity to another, the first activity will no longer be visible on your screen, in this case, the callback method ___________ is called. onStop()
Linear layout is an example of ______________. ViewGroup
_______________ are additional files and static content that your code uses, such as bitmaps, layout definitions, etc. Resources
After API Level 8 and higher versions, the match_parent is renamed as fill_parent. False
All image resources/assets that you need in your application are save under what folder? drawable
Consider the given resources below: <resources> <color name = “blue”>#2196f3</color> <string name = “myapp”>MyApp</string> </resources> How will you access the string resource in your xml file? @string/myapp
Using collections, items are inserted into the list of ListView from an array or database. False
Complete the statement, you are going to instantiate a TextView from your XML to your Activity Java file. TextView myTextView = (TextView) ________________(R.id.my_textview); Answer: Incorrect answer: @.id.my_textview findViewById
A service is a component that runs in the background to perform long-running operations. True
We can not instantiate UI elements during runtime. False
It is a ViewGroup which is used to specify the position of child View instances relative to each other or relative to the parent. Relative Layout
n Android, the OnClickListener() interface has an onClick(View v) method that is called when the view (component) is clicked. True
Users can drag the PiP window to another location. Starting in Android _____. 8
By tapping the Build number field 7 times in your Android phone will enable you to have the Developer Option. True
We can create our own Android Virtual Device (AVD) in the Android Studio Emulator and manage it in the Device Manager. True
The Android Emulator simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device. True
At its core, the operating system is known as Android Open Source Project (AOSP) and is free and open-source software (FOSS) primarily licensed under the Apache License. True
All XML files are stored in resources folder under what specific folder name? layout
The onCreate() and onDestroy() methods are called only once throughout the activity lifecycle. True
The Logcat window in Android Studio helps you debug your app by displaying logs from your device in real time. True
Adaptive Brightness is a feature that was introduce under Android Oreo. False
It is inefficient to set the content in onResume() or onStart() (which are called multiple times) as the setContentView() is a heavy operation. True
A predefined subclass of TextView that includes rich editing capabilities. EditText
Complete the XML code below that access the image named 'mymomo.png' from the resources : <ImageView android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="________________" /> Answer: @drawable/mymomo
Complete the Java code that implements OnClickListener using XML by indicating the parameter. Use the variable name "dubu" without the double quotation. public void myFancyMethod(_________) { // do something } Answer: View dubu
This file contains the application components, it describes each component of the application and how they interact. AndroidManifest.xml
In Android’s activity life cycle, this is the first method that is called when the activity is created. onCreate()
The match_parent is used to wrap the view according to its actual size. It can be used with layout_height as well as layout_width. False
TextView is an example of ________. View
A listener (or observer) is an abstract class or interface that is used to provide functionality for an interactable UI component. True
Complete the statement, you are going to change the string value in a given TextView using your Activity Java file. helloTextView.___________(R.string.user_greeting); setText
Button btn = findViewById(R.id.my_btn); btn._______________(new View.OnClickListener() { @Override public void onClick(View v) { // Functionality for the button... } }); setOnClickListener
The onPause() method is required for any kind of Activity run the application properly. False
UI elements that are drawn on-screen including buttons, list forms etc. Views
<Button android:id = "@+id/mybutton" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "Click me!" android:__________ = "myFancyMethod" /> onClick
All view groups include a width and height, using layout_width and layout_height , and each view is required to define them True
The onResume() callback method is called whenever the activity becomes visible to the user. False
In Android, we can implement the OnClickListener in XML by calling the method in the attribute named ______. onClick
Created by: minji123
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards