Question: Mobile Application Development** 2. Which of the following components does the Wheres My Phone? app use while waiting for a text message in the background?
Mobile Application Development**
2. Which of the following components does the Wheres My Phone? app use while waiting for a text message in the background?
Activities
Services
Broadcast Receivers
Content Providers
3. Which is the correct argument sent to the onOptionsItemSelected method to make menu items useful?
Activity act
Class clss
Menu menu
MenuItem item
4. Which of the following is NOT part of the Java class declaration?
Name the class.
Import external resources
Declare any inherited classes
Declare any implemented interfaces
5. What is the text displayed on the canvas after the execution of the following code?
0 super.onDraw(canvas);
1 Paint dotPaint = new Paint();
2 dotPaint.setColor(Color.RED);
3 canvas.drawRect(dotX, dotY, dotX + 20, dotY + 20, dotPaint);
4 a = 1;
5 b = 2;
6 a = b;
7 b = a;
8 canvas.drawText(a: +a+| b: +b, 20, 20, dotPaint);
a: 1|b: 1
a: 2|b: 1
a: 1|b: 2
a: 2|b: 2
7. Provided you know the namespace and attribute information, it is easier to manually code the menus XML code than it is to use the IDE to generate the menus XML code.
True
False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
