Google Associate Android Developer ASSOCIATE ANDROID DEVELOPER Exam Questions in PDF

Free Google ASSOCIATE ANDROID DEVELOPER Dumps Questions (page: 1)

What is a correct part of an Implicit Intent for sharing data implementation?

  1. val sendIntent = Intent(this, UploadService::class.java).apply {
    putExtra(Intent.EXTRA_TEXT, textMessage)
    ...
  2. val sendIntent = Intent().apply {
    type = Intent.ACTION_SEND;
    ...
  3. val sendIntent = Intent(this, UploadService::class.java).apply {
    data = Uri.parse(fileUrl)
    ...
  4. val sendIntent = Intent().apply {
    action = Intent.ACTION_SEND
    ...

Answer(s): D

Explanation:

Create the text message with a string
val sendIntent = Intent().apply {
action = Intent.ACTION_SEND
putExtra(Intent.EXTRA_TEXT, textMessage)
type = "text/plain"
}


Reference:

https://developer.android.com/guide/components/fundamentals



By default, the notification's text content is truncated to fit one line. If you want your notification to be longer, for example, to create a larger text area, you can do it in this way:

  1. var builder = NotificationCompat.Builder(this, CHANNEL_ID)
    .setContentText("Much longer text that cannot fit one line...")
    .setStyle(NotificationCompat.BigTextStyle()
    .bigText("Much longer text that cannot fit one line..."))
    ...
  2. var builder = NotificationCompat.Builder(this, CHANNEL_ID)
    .setContentText("Much longer text that cannot fit one line...")
    .setLongText("Much longer text that cannot fit one line..."))

    ...
  3. var builder = NotificationCompat.Builder(this, CHANNEL_ID)
    .setContentText("Much longer text that cannot fit one line...")
    .setTheme(android.R.style.Theme_LongText);
    ...

Answer(s): A


Reference:

https://developer.android.com/training/notify-user/build-notification



Select correct demonstration of WorkRequest cancellation.

  1. workManager.enqueue(OneTimeWorkRequest.Builder(FooWorker::class.java).build())
  2. val request: WorkRequest = OneTimeWorkRequest.Builder(FooWorker::class.java).build()
    workManager.enqueue(request)
    val status = workManager.getWorkInfoByIdLiveData(request.id)
    status.observe(...)
  3. val request: WorkRequest = OneTimeWorkRequest.Builder(FooWorker::class.java).build()
    workManager.enqueue(request)
    workManager.cancelWorkById(request.id)
  4. val request1: WorkRequest = OneTimeWorkRequest.Builder(FooWorker::class.java).build()
    val request2: WorkRequest = OneTimeWorkRequest.Builder(BarWorker::class.java).build()
    val request3: WorkRequest = OneTimeWorkRequest.Builder(BazWorker::class.java).build()
    workManager.beginWith(request1, request2).then(request3).enqueue()
  5. val request: WorkRequest = OneTimeWorkRequest.Builder(FooWorker::class.java).build()
    workManager.enqueue(request)
    workManager.cancelWork(request)

Answer(s): C

Explanation:

Videos:
-Working with WorkManager, from the 2018 Android Dev Summit
-WorkManager: Beyond the basics, from the 2019 Android Dev Summit


Reference:

https://developer.android.com/reference/androidx/work/WorkManager?hl=en



In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type TYPE_VIEW_TEXT_CHANGED whenever the slider value changes. Which one of the following sample codes demonstrates the use of the sendAccessibilityEvent() method to report this event.

  1. override fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean {
    return super.dispatchPopulateAccessibilityEvent(event).let { completed ->
    if (text?.isNotEmpty() == true) {
    event.text.add(text)
    true
    } else {
    completed
    }
    }
    }
  2. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean {
    return when(keyCode) {
    KeyEvent.KEYCODE_DPAD_LEFT -> {
    currentValue--
    sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED)
    true
    }
    ...
    }
    }
  3. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean {
    return when(keyCode) {
    KeyEvent.KEYCODE_ENTER -> {
    currentValue--
    sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED)
    true
    }
    ...
    }
    }

Answer(s): B


Reference:

https://developer.android.com/guide/topics/ui/accessibility/custom-views



The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:

  1. override fun onCreateOptionsMenu(menu: Menu): Boolean {
    menuInflater.inflate(R.menu.menu_main, menu)
    return true
    }
  2. override fun onOptionsItemSelected(item: MenuItem): Boolean {
    menuInflater.inflate(R.menu.menu_main, menu)
    return super.onOptionsItemSelected(item)
    }
  3. override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.menu.menu_main)
    }

Answer(s): A


Reference:

https://developer.android.com/guide/topics/ui/accessibility/custom-views



Share your comments for Google ASSOCIATE ANDROID DEVELOPER exam with other users:

S
SN
9/5/2023 2:25:00 PM

good resource

Z
Zoubeyr
9/8/2023 5:56:00 AM

question 11 : d

U
User
8/29/2023 3:24:00 AM

only the free dumps will be enough for pass, or have to purchase the premium one. please suggest.

C
CW
7/6/2023 7:37:00 PM

good questions. thanks.

F
Farooqi
11/21/2023 1:37:00 AM

good for practice.

I
Isaac
10/28/2023 2:30:00 PM

great case study

M
Malviya
2/3/2023 9:10:00 AM

the questions in this exam dumps is valid. i passed my test last monday. i only whish they had their pricing in inr instead of usd. but it is still worth it.

R
rsmyth
5/18/2023 12:44:00 PM

q40 the answer is not d, why are you giving incorrect answers? snapshot consolidation is used to merge the snapshot delta disk files to the vm base disk

K
Keny
6/23/2023 9:00:00 PM

thanks, very relevant

M
Muhammad Rawish Siddiqui
11/29/2023 12:14:00 PM

wrong answer. it is true not false.

J
Josh
7/10/2023 1:54:00 PM

please i need the mo-100 questions

V
VINNY
6/2/2023 11:59:00 AM

very good use full

A
Andy
12/6/2023 5:56:00 AM

very valid questions

M
Mamo
8/12/2023 7:46:00 AM

will these question help me to clear pl-300 exam?

M
Marial Manyang
7/26/2023 10:13:00 AM

please provide me with these dumps questions. thanks

A
Amel Mhamdi
12/16/2022 10:10:00 AM

in the pdf downloaded is write google cloud database engineer i think that it isnt the correct exam

A
Angel
8/30/2023 10:58:00 PM

i think you have the answers wrong regarding question: "what are three core principles of web content accessibility guidelines (wcag)? answer: robust, operable, understandable

S
SH
5/16/2023 1:43:00 PM

these questions are not valid , they dont come for the exam now

S
sudhagar
9/6/2023 3:02:00 PM

question looks valid

V
Van
11/24/2023 4:02:00 AM

good for practice

D
Divya
8/2/2023 6:54:00 AM

need more q&a to go ahead

R
Rakesh
10/6/2023 3:06:00 AM

question 59 - a newly-created role is not assigned to any user, nor granted to any other role. answer is b https://docs.snowflake.com/en/user-guide/security-access-control-overview

N
Nik
11/10/2023 4:57:00 AM

just passed my exam today. i saw all of these questions in my text today. so i can confirm this is a valid dump.

D
Deep
6/12/2023 7:22:00 AM

needed dumps

T
tumz
1/16/2024 10:30:00 AM

very helpful

N
NRI
8/27/2023 10:05:00 AM

will post once the exam is finished

K
kent
11/3/2023 10:45:00 AM

relevant questions

Q
Qasim
6/11/2022 9:43:00 AM

just clear exam on 10/06/2202 dumps is valid all questions are came same in dumps only 2 new questions total 46 questions 1 case study with 5 question no lab/simulation in my exam please check the answers best of luck

C
Cath
10/10/2023 10:09:00 AM

q.112 - correct answer is c - the event registry is a module that provides event definitions. answer a - not correct as it is the definition of event log

S
Shiji
10/15/2023 1:31:00 PM

good and useful.

A
Ade
6/25/2023 1:14:00 PM

good questions

P
Praveen P
11/8/2023 5:18:00 AM

good content

A
Anastasiia
12/28/2023 9:06:00 AM

totally not correct answers. 21. you have one gcp account running in your default region and zone and another account running in a non-default region and zone. you want to start a new compute engine instance in these two google cloud platform accounts using the command line interface. what should you do? correct: create two configurations using gcloud config configurations create [name]. run gcloud config configurations activate [name] to switch between accounts when running the commands to start the compute engine instances.

P
Priyanka
7/24/2023 2:26:00 AM

kindly upload the dumps

AI Tutor 👋 I’m here to help!