Free AND-401 Exam Braindumps (page: 22)

Page 22 of 58

Method onDraw() of class android.view.View has the following signature:

  1. public void onDraw(Color)
  2. public void onDraw(Canvas)
  3. public boolean onDraw(Canvas)
  4. public Canvas onDraw()

Answer(s): B

Explanation:

The parameter to onDraw() is a Canvas object that the view can use to draw itself.


Reference:

http://developer.android.com/training/custom-views/custom-drawing.html



To add a new Activity to your application, you need to perform the following steps:

  1. Create a Java class that extends View, set a layout, and add an Activity tag in AndroidManifest.xml
  2. Create layout resource only.
  3. Create a Java class that extends Activity, add an Activity tag in AndroidManifest.xml, and create a layout for the activity.
  4. Add an Activity tag to AndroidManifest.xml, and add ACTIVITY permission.

Answer(s): C


Reference:

http://www.itcsolutions.eu/2011/08/31/android-tutorial-how-to-create-a-new-activity-class-with-manifest-editor/



To create a customized Adapter for a compound list item layout, you should:

  1. Extend class android.widget.Adapter or any of its descendants then override method getView()
  2. Extend class android.widget.ListView or any of its descendants, then override method getView()
  3. Extend class android.widget.AbsAdapter or any of its descendants, then override method getView()
  4. Extend class android.widget.Adapter or any of its descendants, then override method getAdapterView().

Answer(s): A

Explanation:

The android.widget.Adapter class included the method getView(), which gets a View that displays the data at the specified position in the data set.


Reference:

http://developer.android.com/reference/android/widget/Adapter.html



When publishing an update to your application to the market, the following must be taken into consideration:

  1. The package name must be the same, but the .apk may be signed with a different private key.
  2. The package name does not have to be the same and the .apk can be signed with a different private key.
  3. The package name must be the same and the .apk must be signed with the same private key.
  4. The package name does not have to be the same, but the .apk must be signed with the same private key.

Answer(s): C

Explanation:

You should sign all of your apps with the same certificate throughout the expected lifespan of your applications.
App upgrade: When the system is installing an update to an app, it compares the certificate(s) in the new version with those in the existing version. The system allows the update if the certificates match. If you sign the new version with a different certificate, you must assign a different package name to the application — in this case, the user installs the new version as a completely new application.


Reference:

http://developer.android.com/tools/publishing/app-signing.html



Page 22 of 58



Post your Comments and Discuss Android AND-401 exam with other Community members:

Mikil commented on December 10, 2024
Great resource. I would tell others
Anonymous
upvote

Mikil commented on December 10, 2024
Great resource
Anonymous
upvote

Michelle commented on December 10, 2024
Great resource
Anonymous
upvote

ArulMani commented on December 10, 2024
It's very useful study for EMT exam
UNITED STATES
upvote

no name commented on December 10, 2024
helpful to recap the course
Anonymous
upvote

none commented on December 10, 2024
very helpful to recall the course
Anonymous
upvote

Sandeep Singh commented on December 10, 2024
All questions are from real exam.
UNITED STATES
upvote

Usman commented on December 10, 2024
It is a great collection but I have noticed that some answers are wrong. For example, it says that correct answer is B but the description of that answer matches with answer A. So it is advisable to read the answer's description as well.
Anonymous
upvote

Anamika commented on December 10, 2024
dumps are good and helpful
UNITED STATES
upvote

santosh k sharma commented on December 10, 2024
A good way to practice
Anonymous
upvote

Faith Egwuenu commented on December 09, 2024
The case studies/questions were very helpful.
Anonymous
upvote

Jaydin commented on December 09, 2024
Think I will do well on test I'm brave confident I swear no hard feelings
UNITED STATES
upvote

Jaydin grimball commented on December 09, 2024
I doing well thinks
UNITED STATES
upvote

Calista Eva commented on December 09, 2024
Good practice
UNITED STATES
upvote

mamatha commented on December 09, 2024
informative
Anonymous
upvote

Mishti commented on December 08, 2024
Preparing for certification
CANADA
upvote

Jbomb commented on December 08, 2024
I'll take the test and report back
KOREA REPUBLIC OF
upvote

Vic commented on December 08, 2024
Interesting answers
CANADA
upvote

Cristina commented on December 08, 2024
good questions
ROMANIA
upvote

kanhaiya kumar commented on December 08, 2024
awsome stuff
Anonymous
upvote

WILLIAM RIBEIRO RODRIGUES commented on December 08, 2024
Amazing place to learning and share knowleg.
BRAZIL
upvote

WILLIAM RIBEIRO RODRIGUES commented on December 08, 2024
Nice place to practice and learning.
BRAZIL
upvote

frans Bauwer commented on December 08, 2024
so far so good
BELGIUM
upvote

Karthick commented on December 08, 2024
@The Magic Beans Please update us after your exam.
SINGAPORE
upvote

HardHead commented on December 08, 2024
I searched for latest free braindumps in Google and I was brought to this site. I eventually bought the full version as the free version is not complete. It was too much money for me but with 50% sale I got 2 exams. Going to write my first exam this coming Monday. I am going to share my result once I write my exam. Stay Tuned!
INDIA
upvote

goku d soojaa commented on December 08, 2024
very important
INDIA
upvote

Johan commented on December 08, 2024
Would also appreciated comments, but this is already a big help
UNITED STATES
upvote

sANJAY commented on December 08, 2024
hARD QUESTIOS
Anonymous
upvote

Uday commented on December 08, 2024
Want to appear for snowpro core
Anonymous
upvote

M commented on December 07, 2024
96 : Answer is D
Anonymous
upvote

marco commented on December 07, 2024
i cant imagine
Anonymous
upvote

Felicia Simley commented on December 07, 2024
i cant download the premium version.. what to do please?
Anonymous
upvote

Felicia Simley commented on December 07, 2024
great questions on this one
Anonymous
upvote

The Magic Beans commented on December 07, 2024
Passed the exam - these questions are similar to the ones in the exam (some of these questions are very similar to the ones in the exam but there were questions in the exam way complicated than this). One of the labs (question 77) in these questions came up in my exam. The questions in the exam are tricky make sure you understand each concept in the exam objectives.
UNITED STATES
upvote