2023TYUT移动应用软件开发选择填空

说明:

1、虽然选择和填空出自每一章后面的summary小结,但是并不是每条都考,老师上课有画重点,以下我将给出我上课所听到的每一章summary重点,以及每一条summary的注释。

2、我不建议看文末的word版本,因为当我发现博文错误时,只会在csdn修改,不会在word中修改(因为过程繁琐,我没有时间)

3、本博文2023/4/4/13:00发布,2023/4/4/18:37修正了第三章第8题Gradle单词拼写错误,文末word未作修改


目录

第一章

第二章

第三章

第四章

第五章

第六章

第七章

第八章

第十章

第十一章

第十二章

word版:


第一章

1.Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers. It was first released in 2008. Android code is open-source

Android是一种基于linux的操作系统,主要为智能手机和平板电脑等触摸屏移动设备设计。它于2008年首次发行。Android代码是开源的

2.Applications, more commonly referred to as apps, extend the functionality of Android devices.

Applications,通常被称为应用程序,扩展了Android设备的功能。

3.Android system architecture, known as the Android stack, consists of four layers: Linux, native libraries, the application framework, and Android apps.

Android系统架构被称为Android堆栈,由四个层组成:Linux、本机库、应用程序框架和Android应用程序。

4.An Android app is typically developed using an IDE ( Integrated Development Environment) like Android Studio, using Java as the programming language.

Android应用程序通常使用集成开发环境(IDE)开发,如Android Studio,使用Java作为编程语言

5.Android apps can be run on a physical Android device or on an emulator, also called an Android Virtual Device (AVD)

Android应用程序可以在物理Android设备或模拟器(也称为Android)上运行。虚拟设备(AVD)

6.An Android project must be built before it is run, compiling the Java source code (.java files) into Java bytecodes (.class files) and then into Dalvik executable files (.dex files).

Android项目必须在运行之前构建,将Java源代码 代码(. Java文件)编译成Java字节码(.class文件),然后编译成Dalvik 可执行文件(.dex文件)。

7.All of the files for an Android project are put into an Android package (.apk file), which includes a binary version of the AndroidManifest.xml file.

Android项目的所有文件都放在一个Android包 (.apk文件)中,其中包括androidjvianifes .xml文件的二进制版本。

8.To run an app on an emulator or device, it must be digitally signed with a certificate.

要在模拟器或设备上运行应用程序,必须使用证书进行数字签名。

9.The Android Debug Bridge (ADB) lets your IDE communicate with an emulator or a physical Android device.

Android调试桥(ADB)允许你的IDE与模拟器或物理Android设备通信。

10.Android Studio is the official IDE for Android development. It’s open-source, available for free, and runs on all modern operating systems.

Android Studio是Android开发的官方IDE。它是开源的,免费的,可以在所有现代操作系统上运行。

11.A project is a directory that contains all of the files for an app.

项目是一个包含应用程序所有文件的目录。

12.In Android development, an activity defines one screen of an app.

在Android开发中,一个activity定义了应用程序的一个屏幕。

13.In Android development, a layout contains XML that defines the user interface.

在Android开发中,布局包含定义用户界面的XML。

14.In Android Studio, the different parts of the main window are known as tool windows.

在Android Studio中,主窗口的不同部分被称为工具 windows。

15.A soft keyboard is an on-screen keyboard that you can use to enter text on touchscreen devices and emulators.

软键盘是一个屏幕键盘,你可以使用它在触摸屏设备和模拟器上输入文本。

第二章

1.In Android development, the components that make up the user interface are known as widgets.

在Android开发中,组成用户界面的组件称为小部件。

2.In Android, an activity stores the code for a screen of an app.

在Android中,activity存储应用程序屏幕的代码。

3.In Android, a layout stores the XML that defines the user interface of an app.

在Android中,布局存储了定义应用程序用户界面的XML。

4.In Android Studio, you can use the graphical editor to add widgets to a layout by dragging them from the Palette window onto the layout

在Android Studio中,你可以使用图形化编辑器将小部件从Palette窗口拖到布局中,从而将它们添加到布局中

5.It’s generally considered a best practice to store the display text for your app in a separate XML file. This makes it easy to internationalize the text for your application.

通常认为最好的做法是将应用 的显示文本存储在单独的XML文件中。这使得 应用程序的文本国际化变得很容易。

6.Although Android supports other units of measurement, such as inches, it’s a best practice to use density-independent and scale-independent pixels whenever possible.

虽然Android支持其他测量单位,如英寸,这是一个最佳实践,只要有可能使用密度无关和规模无关的像素。

第三章

1.An event handler is a special type of method that’s executed when an event occurs.

事件处理程序是发生事件时执行的一种特殊类型的方法。

2.A listener is an object that listens for an event.

监听器是监听事件的对象。

3.An EditorAction event typically occurs when the user presses an action key, such as the Done key, on a soft keyboard.

EditorAction事件通常在用户按下软键盘上的操作键(如Done键)时发生。

4.A Click event typically occurs when the user clicks a widget such as a button.

单击事件通常发生在用户单击按钮等小部件时

5.You can use the SharedPreferences class to permanently save values in your app.

你可以使用SharedPreferences类在你的应用程序中永久保存值。

6.To save values, you can override the onPause method.

要保存值,可以重写onPause方法。

7.To restore values you have saved, you can override the onResume method.

要恢复已保存的值,可以重写onResume方法

8.The Gradle build script controls how Android Studio builds the project. This includes specifying any dependencies for the project.

源构建脚本控制Android Studio如何构建项目。这包括指定项目的任何依赖项。

9.The Android manifest (the AndroidManilest.xml file) specifies some essential information about an app that the Android system must have before it can run the app, including the first activity to launch when the app is started.

Android manifest (AndroidManilest.xml文件)指定了Android系统在运行应用程序之前必须拥有的关于应用程序的一些基本信息,包括应用程序启动时启动的第一个活动。

10.Once you install an app on a device or emulator, you can use its launcher icon to restart it

一旦你在设备或模拟器上安装了一个应用程序,你可以使用它的启动器图标重新启动它

第四章

1.To test an app, you run it to make sure that it works properly no matter what combinations of valid or invalid data you enter.

要测试应用程序,你需要运行它以确保无论你输入的 有效或无效数据组合如何,它都能正常工作

2.When you debug an app, you find and fix all of the errors (bugs) that you find when you test the app.

当你调试一个应用程序时,你会发现并修复你在测试应用程序时发现的所有错误(bug)。

3.A simple way to trace the execution of an app is to insert LogCat logging statements at key points in the code.

跟踪应用程序执行的一个简单方法是在代码的关键点插入LogCat日志语句。

4.Another way to trace code execution is to use toasts, which are messages that are briefly displayed on the user interface

跟踪代码执行的另一种方法是使用toast,这是在用户界面上简要显示的消息。.

5.Android Studio includes a powerful tool known as a debugger that can help you find and fix errors.

Android Studio包含一个被称为调试器的强大工具,可以帮助你发现和修复错误。

6.You can set a breakpoint on a line of code to stop code execution just before that line of code. Then, you can step through the code and view the values of the variables as the code executes.

你可以在代码行上设置断点,以便在代码行之前停止代码执行。然后,你可以逐步检查代码,并在代码执行时查看 变量的值

7.A stack trace is a list of methods in the reverse order in which they were called

堆栈跟踪是一组方法,其调用顺序与此相反

第五章

1.The View class is the superclass for all widgets.

View类是所有小部件的超类。

2.A linear layout displays a column or row of child widgets.

线性布局显示一列或一行的子小部件。

3.The attributes of a linear layout and its child widgets control the appearance of the user interface.

线性布局及其子部件的属性控制用户界面的外观。

4.A table layout displays widgets in rows and columns.

表格布局以行和列的形式显示小部件

5.A frame layout is one of the simplest and most efficient types of layouts, and often displays only a single child layout or widget

框架布局是最简单和最有效的布局类型之一,通常只显示一个子布局或小部件

6.You can nest one layout within another layout, but it can degrade performance.

你可以在另一个布局中嵌套一个布局,但这会降低性能。

7.An editable text view lets the user enter text with a keyboard An editable text view is also known as a text box or text field.

可编辑文本视图允许用户用键盘输入文本。可编辑文本视图也称为文本框或文本字段。

8.A check box allows the user to check or uncheck an option.

复选框允许用户选中或取消选中某个选项。

9.A radio button lets the user select one option of several options.

单选按钮允许用户从多个选项中选择一个。

10.A spinner, also known as a drop-down list, allows the user to select an item from a list.

滚动条(也称为下拉列表)允许用户从列表中选择项。

11.An array adapter provides the list that a spinner should display.

数组适配器提供微调器应该显示的列表。

12.A seek bar lets the user specify a value by dragging a thumb to the right or left.

查找条允许用户通过向右或向左拖动拇指来指定一个值

13.Android supports PNG, JPG, and GIF images.

Android支持PNG、JPG和GIF图像。

14.You can use Java code to dynamically show or hide widgets.

你可以使用Java代码动态地显示或隐藏小部件。

15.A ScrollView widget displays a vertical scroll bar that lets the user scroll up or down the child element.

ScrollView小部件显示一个垂直滚动条,允许用户向上或向下滚动子元素。

16.To display a horizontal scroll bar that lets the user scroll right or left across the child element, use a HorizontalScrollView element.

要显示一个水平滚动条,让用户可以在子元素上向右或向左滚动,使用HorizontalScrollView元素。

17.A web view uses a built-in browser to display web content such as a web page that’s designed for mobile devices.

web视图使用内置浏览器来显示web内容,例如为移动设备设计的网页。

18.A progress bar displays a visual indicator of the progress of an operation.

进度条显示操作进度的可视化指示器。

第六章

1.A listener listens for events that can occur on a widget. When an event occurs on a widget, the appropriate method of the listener is executed.

监听器监听小部件上可能发生的事件。当小部件上发生事件时,将执行侦听器的适当方法

2.High-level events are events that occur on a specific type of widget. An interlace that defines a listener lor a high-level event is typically nested within the class that defines the widget. These listeners can only be wired to an appropriate widget.

高级事件是发生在特定类型的小部件上的事件。定义侦听器或高级事件的交错通常嵌套在定义小部件的类中。这些侦听器只能连接到适当的小部件。

3.Low level events are events that occur on all types of widgets. An interface that defines a listener for a low-level event is typically nested within the android.view.View class. These listeners can be wired to any type of widget.

低级事件是发生在所有类型的小部件上的事件。为低级事件定义监听器的接口通常嵌套在android.view.View类中。这些侦听器可以连接到任何类型的小部件。

4.You can create an instance variable that creates an object from a class that implements the listener interlace. Since this class doesn’t have a name, it’s known as an anonymous class.

你可以创建一个实例变量,该实例变量从实现侦听器交互的类创建对象。因为这个类没有名字,所以它被称为匿名类。

5.You can create an instance of a listener interface without assigning it to an instance variable. This is known as an anonymous inner class

你可以创建侦听器接口的实例,而无需将其分配给实例变量。这被称为匿名内部类

6.The CheckedChanged event of a check box or radio button occurs when a check box or radio button is checked or unchecked.

选中或取消选中复选框或单选按钮时,将发生复选框或单选按钮的CheckedChanged事件。

7.For a spinner, the onltemSelected method is executed when the spinner is first displayed and whenever a new item is selected. The onNothingSelected method is only executed when the selection disappears.

对于微调器,当微调器第一次显示时以及每当选择一个新项时,都会执行onltemSelected方法。onNothingSelected方法只在选择消失时执行。

8.For a seek bar, the onStartTrackingTouch method is executed when the user begins to change the value of the seek bar. The onProgressChanged method is executed as the user changes the value of the seek bar. The onStopTrackingTouch method is executed when the user finishes changing the value of the seek bar

对于寻道条,当用户开始更改寻道条的值时,onStartTrackingTouch方法将被执行。onProgressChanged方法在用户更改查找条的值时执行。onStopTrackingTouch方法在用户完成查找条的更改时执行

9.The KeyEvent class contains constants for almost every possible hardware key on a device including the keys on a hard keyboard or a DPad.

KeyEvent类包含设备上几乎所有可能的硬件键的常量,包括硬键盘或DPad上的键。

10.The onKey and onTouch methods both return a Boolean value that indicates whether the method has consumed the event. If this method returns a true value, the event is not passed on to the parents of the current widget.

onKey和onTouch方法都返回一个布尔值,指示该方法是否使用了事件。如果此方法返回一个真值,则事件不会传递给当前小部件的父组件。

第七章

1.A style is a collection of properties that specify formatting for a widget.

样式是指定小部件格式的属性的集合。

2.A theme is a collection of styles that apply to an entire activity or app. Android includes several built-in themes.

主题是应用于整个活动或应用程序的样式的集合。Android包括几个内置的主题。

3.With Android 4.0 (API 14) and later, an activity can include an action bar, which is a title bar that can also display buttons.

在Android 4.0 (API 1 4)及更高版本中,一个活动可以包含一个操作栏,这是一个标题栏,也可以显示按钮。

4.A style element can specify a theme or a style.

样式元素可以指定主题或样式

5.The AndroidManifest.xml file uses its application element to specify the theme for the application.

xml文件使用它的application元素来指定应用程序的主题。

6.A style sheet is a collection of styles that can be applied throughout an application.

样式表是可以在整个应用程序中应用的样式的集合。

7.To define names for colors, you can add a colors.xml file to the res/values directory.

要定义颜色的名称,可以将colors.xml文件添加到res/values目录。

8.To specify a color, you can use hexadecimal, or hex, values to specify an RGB value.

要指定颜色,可以使用十六进制或十六进制值指定RGB值。

9.To apply a color, you can use a hex value, a name for a user-defined color, or a name for a built-in Android color

要应用颜色,可以使用十六进制值、用户定义颜色的名称或内置Android颜色的名称

第八章

1.An activity can include an options menu that includes one or more menu items.

活动可以包含包含一个或多个菜单项的选项菜单。

2.If the device doesn’t have a physical Menu button, an action overflow icon is displayed on the right side of the action bar to display the options menu.

如果设备没有物理菜单按钮,操作栏右侧会显示一个操作溢出图标,用于显示选项菜单。

3.The action bar can include menu items.

操作栏可以包括菜单项。

4.Any items that aren’t displayed on the action bar are displayed in the options menu.

任何未显示在操作栏上的项目都将显示在选项菜单中。

5.By default, if you specify an icon for an item, Android uses that icon in the action bar, but it uses text for that item in the options menu.

默认情况下,如果你为一个项目指定了一个图标,Android会在操作栏中使用该图标,但它会在选项菜单中使用该项目的文本。

6.Within the onCreateOptionsMenu method, you typically use a Menulnflater object to convert, or inflate, the XML for the menu items into Java objects and store them in the Menu parameter.

在onCreateOptionsMenu方法中,通常使用Menulnflater对象将菜单项的XML转换或扩展为Java对象,并将它们存储在menu参数中。

7.To handle the event that’s generated when a user selects an item from the options menu, you can override the onOptionsItemSelected method and use a switch statement to determine which menu item was selected.

要处理用户从选项菜单中选择项时生成的事件,可以重写onOptionsItemSelected方法,并使用switch语句来确定选择了哪个菜单项。

8.An intent provides a description of an operation to be performed. Intents are commonly used with the startActivity method to start activities.

意图提供了要执行的操作的描述。intent通常与startActivity方法一起使用来启动活动。

9.Android provides Preference APIs that allow you to build an interface that’s consistent with the user experience in other Android apps

Android提供了偏好api,允许你构建与其他Android应用程序的用户体验一致的界面

10.Each preference has a corresponding key-value pair that the system saves in the default shared preferences file. Whenever the user changes a setting, the system automatically updates that file.

每个首选项都有一个对应的键-值对,系统将它们保存在默认的共享首选项文件中。每当用户更改设置时,系统都会自动更新该文件。

11.You can use a fragment to define part of the user interface for an activity.

你可以使用片段来定义活动的部分用户界面。

12.You can use the default SharedPreferences object to get preferences that have been automatically saved by the Preferences API.

你可以使用默认的SharedPreferences对象来获取preferences API自动保存的首选项。

13.You can group preferences by nesting one or more Preference elements within a PreferenceCategory element.

你可以通过在PreferenceCategory元素中嵌套一个或多个Preference元素来对首选项进行分组。

14.You can enable or disable a preference by using its dependency attribute to link the preference to a corresponding CheckBoxPreference element.

通过使用其依赖属性将首选项链接到相应的CheckBoxPreference元素,可以启用或禁用首选项。

第十章

1.An RSS (Rich Site Summary) feed can be used to publish frequently updated works, such as blog entries and news headlines. Since RSS uses a standardized XML file format, the feed can be published once and viewed by many different apps.

RSS(富站点摘要)提要可用于发布频繁更新的作品,如博客条目和新闻标题。由于RSS使用标准化的XML文件格式,提要可以发布一次,并由许多不同的应用程序查看。

2.A thread,is a single sequential flow of control within a program that often completes a specific task.

线程是程序中单个连续的控制流,通常用于完成特定的任务。

3.By default, an Android app uses a single thread, called the UI thread, to display the user interface. Any task that can slow or stop the responsiveness of the UI thread should be run in a separate thread.

默认情况下,Android应用程序使用一个称为UI线程的线程来显示用户界面。任何减慢或停止UI线程响应的任务都应该在单独的线程中运行。

4.An asynchronous task is a task that runs in a separate thread in the background and does not need to be synchronized with other threads.

异步任务是在后台单独的线程中运行的任务,不需要与其他线程同步。

5.The AsyncTask class uses generics to allow a class to operate on various types of objects, and provides for three generic types: (1) parameters, (2) progress, and (3) result. It provides an easy way to perform a background task and publish results on the UI thread without having to manually manipulate threads.

AsyncTask类使用泛型来允许类操作各种类型的对象,并提供了三种泛型类型:(1)参数,(2)进度和(3)结果。它提供了一种简单的方法来执行后台任务并在UI线程上发布结果,而无需手动操作线程。

6.You can use the TimerTask and Timer classes to create a thread that executes tasks after a specified delay or at a specified interval.

你可以使用TimerTask和Timer类创建一个线程,该线程在指定的延迟或指定的间隔后执行任务。

7.You can use Java and Android APIs to download a file by reading input from the Internet and writing output to the file system.

你可以使用Java和Android api通过从网络读取输入并将输出写入文件系统来下载文件。

8.You can use SAX (Simple API for XML) to parse XML files.

可以使用SAX (XML的简单API)来解析XML文件。

9.You can use the SimpleAdapter class to display data in a ListView widget.

你可以使用SimpleAdapter类在ListView小部件中显示数据。

10.An explicit intent specifies a component such as an activity, and can be used to pass data from one activity to another.

显式意图指定组件(如活动),并可用于将数据从一个活动传递到另一个活动。

11.An implicit intent specifies the action you want to perform, and can be used to view a URL in a web browser or to call a phone number

隐式意图指定你想要执行的操作,并可用于在web浏览器中查看URL或拨打电话号码

第十一章

1.To store data and methods that apply to the entire application, you can extend the Application class and add instance variables and methods.

要存储应用于整个应用程序的数据和方法,可以扩展application类并添加实例变量和方法。

2.A service performs tasks in the background, does not provide a user interface, and continues to run even if the user switches to another app.

服务在后台执行任务,不提供用户界面,即使用户切换到另一个应用程序也会继续运行。

3.An unbound service does not interact with other components such as activities, and runs until it’s stopped by another component or by itself.

未绑定的服务不与活动等其他组件交互,一直运行到被另一个组件或自身停止为止。

4.A bound service can interact with components such as activities. This type of service runs only as long as another component is bound to it. Multiple components can bind to the service at once, but when all of them unbind, the service is destroyed.

绑定的服务可以与活动等组件交互。这种类型的服务只有在另一个组件绑定到它时才会运行。多个组件可以同时绑定到服务,但当所有组件都解除绑定时,服务将被销毁。

5.To test a service, you can print messages to the LogCat view.

为了测试服务,你可以将消息打印到LogCat视图。

6.You can use the Settings app to view all of the apps and services that are running on a device or emulator.

你可以使用“设置”应用程序查看正在设备或模拟器上运行的所有应用程序和服务。

7.Before you can use an Application object or a service, you must register it.

在使用应用程序对象或服务之前,必须对其进行注册。

8.A notification provides a way for a service to display a message even when another app is running.

通知为服务提供了一种方式,即使在另一个应用程序正在运行时也可以显示消息。

9.When it’s first displayed, a notification appears as an icon in the notification area at the top of the screen.

当它第一次显示时,将在屏幕顶部的通知区域中以图标的形式显示通知。

10.To view a notification, the user can pull down on the notification area to open the notification drawer.

要查看通知,用户可以在通知区域上下拉以打开通知抽屉。

11.A pending intent is an intent that can be passed to other apps so that they can execute the intent at a later time.

悬而未决的意图是一种可以传递给其他应用程序的意图,以便他们可以在以后的时间执行该意图。

12.The back stack is a stack of all recently used activities. These activities are sorted in the order in which they were used

back堆栈是所有最近使用的活动的堆栈。这些活动按照它们使用的顺序进行排序

13.A task is a cohesive unit that can contain multiple activities. Every activity belongs to a task.

任务是一个内聚单元,可以包含多个活动。每个活动都属于一个任务。

14.The task history is the back stack for a particular task.

任务历史记录是特定任务的后堆栈。

15.A system service is a service that’s provided by the Android operating system.

系统服务是由Android操作系统提供的服务。

16.You can use the NotificationManager object to display or remove a notification, and you can use the ConnectivityManager object to check if a network connection is available to the device.

可以使用NotificationManager对象显示或删除通知,还可以使用ConnectivityManager对象检查设备是否有可用的网络连接。

第十二章

1.The Android operating system broadcasts certain actions that occur as a device is being used.

Android操作系统在使用设备时广播某些动作。

2.Every broadcast has an action string that uniquely identifies the action.

每个广播都有一个唯一标识该操作的操作字符串。

3.A broadcast receiver is an application component that listens for a broadcast and executes code when it receives that broadcast.

广播接收器是一个应用程序组件,它侦听广播并在接收到广播时执行代码。

4.You can code a broadcast receiver to execute code when the connectivity for the device changes.

你可以对广播接收器进行编码,以便在设备的连通性发生变化时执行代码。

5.To code a receiver for a custom broadcast, you can define a class for the receiver.

若要为自定义广播编码接收器,可以为接收器定义一个类。

6.If you want to get extra data from the Intent for the action, you can use the getXxxExtra methods of the Intent class.

如果你想从Intent中获取动作的额外数据,你可以使用Intent类的getXxxExtra方法。

7.You can use Java code to register and unregister a receiver

你可以使用Java代码来注册和取消注册接收者

word版:

链接:https://pan.baidu.com/s/1Y65PIFia48KfMvH8t3lVzw?pwd=78fb 
提取码:78fb 
--来自百度网盘超级会员V3的分享

你可能感兴趣的:(移动应用软件开发,软件工程)