Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Android AND-801 - Android Application Development v8

Page: 1 / 2
Total 45 questions

The following image includes Android code for creating a Date Picker. The date will appear in TextView which has id: dateText. Which of the following choices is correct about why you must add T to the month as illustrated in the code highlighted in brown?

A.

Because the month starts from 0 until 11; therefore, adding 1 gives the correct montn value.

B.

No value will be added to the month, it is date style only.

C.

This a part of me loop.

D.

To avoid any conflict due to difference in the time zone.

The first image below includes an Android code to generate AlertDialog which is illustrated in the second image. The last line of the code includes "xxxxxxx". Which of the following choices is the correct line of code to replace "xxxxxxx" for the purpose of showing this AlertDialog?

A.

SaveAlert.show( )

B.

Save-Activity( )

C.

Start.activity ( )

D.

savealert.show( )

The Android library code is organized in such a way that it can be used by multiple Android applications.

A.

True

B.

False

Assume you were given the code of an Android app that include a Google Map. When you checked the apps code, you found the following: var locationMangaer: LocationManager?=null var locationUstener: LocationListener?=null Which of the following is true about this app?

A.

This app is just lo show locations on Google map.

B.

LocationListener is used to give the app user to change the Google map database.

C.

This app captures a user s location (coordinates) and uses N in its work Row.

D.

These classes are not related to Google map.

Which of the below choices is the best answer to fill the empty space in the following sentence? If you want to give all text widgets in an app the same format such as font color, font size, and font family, you should add the style attribute to the TextView XML tags in layout file and set the attribute value to the same style name. You should define that style by adding a new style tag "style name-style_name" inside...............................

A.

AadroiddManifest-xml file

B.

activity_main.xml file

C.

stytes.xml file

D.

MainActivity.java or MainActivity.kt file

Check the following image which includes Android code. In this code when the app user clicks the button, the user will get a toast message which states "Hello Android ATC". After executing the code, where on the android device screen will the toast message appear?

A.

Top middle (center).

B.

Top left.

C.

Top right.

D.

Right middle (center).

Fill in the blank space in the following sentence with the correct choice: The following image shows the content of an AndroidManifest.xml file of an Android app. The role of adding the attributes "androidricon" and "android:roundlcon" is.........................

A.

Set an app icon image on a phone, on any smartdevice, or inGoogle play store.

B.

Snow the app icon in Android Studio title bar only.

C.

Show the app icon in Android Studio emulator only.

D.

Show this icon if this app is installed on IPhone devices only.

Android Studio is the official IDE for Android application development.

A.

False

B.

True

The following image includes Android code for a WebView widget (ID: MyWebView) to work as a web browser for the URL: http://www.androidatc.com. When you run this code, the app does not open the www.androidatc.com web site. Which step is still missing to open this web site through this app?

A.

Configure me activity main.xml file to enable Ihe WlFi connection or mobile data connection.

B.

This app will openthe web site without the need to add any additional configuration

C.

Add additional code to configure FireFox web browser as default web browser for this app.

D.

Configure the app's AndroidManifest file to allow this app to connect to the Internet by adding the tag.

What is the main role of adding the following permission tag to AndroidManifest.xml file in an Android app?

A.

Allow the Android app to download Google map database.

B.

Allow thisapp to snare internal Google map database with another applications.

C.

Allow the Android app to access the user's precise (exact) location.

D.

This tag is not enough, you still need to add another tag which includes the user name and password to upload the user's location coordinates to Google map database.