Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the problems related to Android SDK?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the relevant knowledge of Android SDK-related issues, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Android SDK-related article. Let's take a look at it.

Question one

Which of the following Android application directories is our Java class stored in?

Res

Layout

Src

Values

Question two

Which of the following will not be performed in the project manifest file?

Declare activity in the application.

Set the API support level.

Defines what events are executed when the button is clicked.

Lists the permissions required for the application to run.

Question three

Which statement should we use to retrieve the id of a view set in XML using the "@ + id/how" syntax in Java?

R.how

R.view.how

FindViewById (how)

R.id.how

Question 4

Which statement should we use to set the text string displayed by TextView in XML?

Android:text='@string/info'

Android:string='info'

Android:text='@text/info'

Android:value='@string/info'

Question 5

Which of the following is the standard way we use to define events that are executed when a user clicks a button?

OnClickListener

OnViewClick

OnClick

OnButtonClick

Question six

Which of the following XML attributes need to be added to the view to specify the method to be executed when the user clicks?

Android:onClick

Android:click

Android:clickListener

Android:clicked

Question 7

Which statement do we need to use to set a drawable display graph in ImageView?

Android:img='@drawable/my_shape'

Android:shape='@drawable/my_shape'

Android:drawable='@drawable/my_shape'

Android:src='@drawable/my_shape'

Question 8

Which of the following activity elements do we need to include in the listing to execute the activity when the application starts from the device menu?

The name of the application contained in a property.

Main and starter properties.

Primary action and initiator type elements.

Primary type and initiator action element.

Question 9

In which element do we need to declare the permissions required by the application in the list?

Permission

Request-permission

Permission-required

Uses-permission

Question 10

What is the Shared Preferences of the application used for?

Saves the key-value pair of the original data item.

Save structured data in rows and columns in a table.

Retrieve Internet data.

Save the data in an external file on the user's device.

Question 11

What do we need to do with the Imax O error when the application reads and writes to the file?

Check the file name string carefully.

Put our Icano code in a separate class.

Try and get the data blocks associated with the Ithumb O code.

Outputs a warning message to the user.

Question 12

Which step does our application need to perform before attempting to write to an external storage mechanism?

Check that the external storage mechanism is available.

Check write access to the external storage mechanism.

Use the permissions in the manifest for write operations to external storage.

Use the warning dialog box to require users to provide permissions for data writes.

Question 13

Which of the following points do we need to insist on when getting data from Internet sources?

Use a service class to get the data.

Use a separate process instead of using a user interface process for data acquisition.

Get the data within a method in the main activity class.

Save the retrieval data in the SQLite database.

Question 14

Which of the following statements is wrong?

Even after the activity that starts a service stops running, the service will continue to be running.

Activity will always be running unless the user uses the back button to exit.

A bound service will also stop running after any component that is bound to it stops running.

When the direction of an activity changes, it is recreated by default.

Question 15

Which of the following categories do we need to use to enable another activity in one activity?

Intent

Thread

View

Service

Question 16

Which of the following callback methods will not be executed when an application starts and is in the resumed state?

OnCreate

OnPause

OnStart

OnResume

Question 17

Which callback method will be executed when a user returns to our application after a pause?

OnRestart

OnResume

OnStart

OnCreate

Question 18

Which method do we need to save the state data in the onCreate and onRestoreInstanceState methods of activity for future access?

OnDestroy

OnSaveInstanceState

OnStateChange

OnSaveState

Question 19

Which class allows us to define reusable parts of the user interface?

Fragment

Service

Activity

View

Question 20

Which of the following steps do not need to be taken when publishing an application to Google Play?

Include the version and name of the application in the listing.

Use release key for APK signature.

Select content ratings and product pricing for the application.

Create a video introduction for the application.

(for reference answers, see the next page.) )

Correct answer:

1 、 C

2 、 C

3 、 D

4 、 A

5 、 C

6 、 A

7 、 D

8 、 C

9 、 D

10 、 A

11 、 C

12 、 D

13 、 B

14 、 B

1mm-hmm *

16 、 B

17 、 B

18 、 B

19 、 A

20 、 D .

This is the end of the article on "what are the issues related to Android SDK?" Thank you for your reading! I believe you all have a certain understanding of the knowledge of "what are the issues related to Android SDK". If you want to learn more knowledge, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report