The visual structure of the graphical user interface can be defined…
Question 3The visual structure of the graphical user interface can be defined… 1 point in the Java code and/or in an XML file either in the Java code or in…
Question 3The visual structure of the graphical user interface can be defined… 1 point in the Java code and/or in an XML file either in the Java code or in…
Question 2How can you pass several integer values to an activity which you start from your current activity? 1 point It is impossible. You use a single call to the…
Question 1This is an extract from an XML layout file: 123456789<Buttonandroid:layout_width=”wrap_content”android:layout_height=”wrap_content”android:text=”click”android:id=”@+id/myButton”android:layout_alignParentTop=”true”android:layout_alignParentLeft=”true”android:layout_alignParentStart=”true”android:onClick=”go” />Which method must be defined in your activity Java code in order to display a pop-up message when this…
Question 10Which of the following commands are accepted by the emulator? 1 point shake on gps status power display finger touch sms send sensor get gsm accept gsm call
Question 8How can you send commands to the emulator? 1 point I look for the id of the emulator in its upper right corner (usually 5554 for the first instance…
Question 7Which criteria can be used to filter messages printed by the Log class? 1 point the tag of the message the text of the message the priority/level (debug, warning,…
Question 6In which view/window of Android Studio can you examine the messages printed by the Log class? 1 point debug error log logcat console
Question 5The methods from the Log class usually call for 2 parameters: 1 point The first parameter indicates the status of the message (error, warning, debug, information), the second parameter…
Question 4The Log class allows you to print debug messages to a dedicated view of Android Studio. This class offers the following methods: 1 point d(…), e(…), i(…) depending whether…
uestion 2Consider the life cycle of an activity: To which method does the ‘C’ refer? 1 point onStop onResume onStart onPause onRestart onCreate onDestroy