Which of the following lines of code is used to pass a value to the next activity?
A. Intent i = new Intent(this,newActivity);
B. addExtra("test");startActivity(i);
C. Intent i = new Intent(this,newActivity);
D. putValue("test");startActivity(i);
E. Intent i = new Intent(this,newActivity);
F. putValue("value1","test");startActivity(i);
G. Intent i = new Intent(this,newActivity);
H. putExtra("value1","test");startActivity(i);
What is the name of the folder that contains the R.java file?
A. src
B. res
C. bin
D. gen
Which of the following is incorrect about the LogCat tool?
A. A LogCat view is available as part of the ADT plugin of Eclipse.
B. You can create a log in your application using Log.v(String, String).
C. Each log message has a tag.
D. Only one of your application can create log entries, and it should be component class (Activity, Service,...etc).
Which of the following sets the entire Activity window as a WebView?
A. WebView webview = new WebView(this);webview.setAsWindow;
B. setContentView(R.layout.webview);
C. WebView webview = new WebView(this);setContentView(webview);
D. setContentView("http://www.androidatc.com");
Which of the following is correct about XML layout files?
A. In order to display a Ul defined in the XML layout file "main.xml", call the setContentView method of the Activity with the parameter string "main.xml".
B. There is no distinction between implementation of the layout definition by code, or by XML layout file.
C. In an Eclipse project using the ADT plug-in, the XML layout file is found in the /res/layout directory.
D. Layout information written in the XML layout file will be converted into code by the Android platform when the screen is displayed.
Which of these files contains text values that you can use in your application?
A. AndroidManifest.xml
B. res/Text.xml
C. res/layout/Main.xml
D. res/values/strings.xml
Which of the following is NOT true about class ListActivity?
A. An activity that displays a list of items by binding to a data set.
B. Its layout must be set by calling method setContentView inside onCreate.
C. It contains a ListView object that can be bound to different data sets. Binding, screen layout, and row layout are discussed in the following sections.
D. A data source that can be bound in a ListActivity can be an array or Cursor holding query results.
Which of the following is a NOT valid form of notification invoked by the NotificationManager?
A. A Flashing LED.
B. A persistent icon in the status bar.
C. A sound played.
D. A SMS sent.
Which of the following is NOT true about method getWindow() of class Dialog do?
A. It retrieves the current window for the activity.
B. It can be used to access parts of the Windows API.
C. It displays the dialog on the screen.
D. It returns null if the activity is not visual.
Which of the following is not included in the Android application framework?
A. WindowManager
B. NotificationManager
C. DialerManager
D. PackageManager