Thursday, August 3, 2017

Preguntas respuestas Android 1

1. What is an advantage to use a debugger on Android Studio?
Examine variables and evaluate expressions at runtime 
Automatically eliminate errors on the application
Eliminate errors when .APK is generated

2. What is an Intent?
Intent is a messaging object you can use to request an action from another app component
Intents facilitate communication between components in several ways
All of the above 

3. In which of the following Activity Lifecycle makes the activity visible to the user
onStart() 
onCreate()
onPause()

Examine the following code: 


4. Suppose savedInstanceState is different from null, which is the correct output on the Logcat:
onCreate() No saved state available
onCreate() Restoring previous state 
TAG onCreate() Restoring previous state

5. Suppose we have a project called “MyProject”, where is the path for the string file resources?
MyProject/res/strings/string.xml
MyProject/res/values/string.xml 
MyProject/res/drawable/string.xml 

6. What is a Service?
It is an application component that can perform communication between layouts 
Service facilitates communication between fragments
It is an application component that can perform long-running operations in the background 

After you execute this explicit intent:
7. The result will be:
Intent is going to start DownloadService class 
The system will examine all of the installed apps to determine which ones can handle DownloadService
The code just creates a new intent

8. What is a breakpoint?
It is a signal that tells the debugger to temporarily suspend execution of the application 
It Fixes an error when the application is running
It is a signal that tells the debugger to continue the execution of the application

9. What is a Layout on Android?
It defines the visual structure for a user interface using an XML file 
It is a class that references a TextView
A Layout defines an XML permission for an application

Given the next .XML containing a group of checkboxes:

10. Which attribute do we need to add in order to add click event?
android:onClick 
android:click
android:listenerOnClick

No comments:

Post a Comment