Google Associate Android Developer Exam (page: 1)
Google Associate Android Developer
Updated on: 12-Aug-2025

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



Viewing Page 1 of 27



Share your comments for Google Associate Android Developer exam with other users:

Naveena 1/13/2024 9:55:00 AM

good material
Anonymous


WildWilly 1/19/2024 10:43:00 AM

lets see if this is good stuff...
Anonymous


Lavanya 11/2/2023 1:53:00 AM

useful information
UNITED STATES


Moussa 12/12/2023 5:52:00 AM

intéressant
BURKINA FASO


Madan 6/22/2023 9:22:00 AM

thank you for making the interactive questions
Anonymous


Vavz 11/2/2023 6:51:00 AM

questions are accurate
Anonymous


Su 11/23/2023 4:34:00 AM

i need questions/dumps for this exam.
Anonymous


LuvSN 7/16/2023 11:19:00 AM

i need this exam, when will it be uploaded
ROMANIA


Mihai 7/19/2023 12:03:00 PM

i need the dumps !
Anonymous


Wafa 11/13/2023 3:06:00 AM

very helpful
Anonymous


Alokit 7/3/2023 2:13:00 PM

good source
Anonymous


Show-Stopper 7/27/2022 11:19:00 PM

my 3rd test and passed on first try. hats off to this brain dumps site.
UNITED STATES


Michelle 6/23/2023 4:06:00 AM

please upload it
Anonymous


Lele 11/20/2023 11:55:00 AM

does anybody know if are these real exam questions?
EUROPEAN UNION


Girish Jain 10/9/2023 12:01:00 PM

are these questions similar to actual questions in the exam? because they seem to be too easy
Anonymous


Phil 12/8/2022 11:16:00 PM

i have a lot of experience but what comes in the exam is totally different from the practical day to day tasks. so i thought i would rather rely on these brain dumps rather failing the exam.
GERMANY


BV 6/8/2023 4:35:00 AM

good questions
NETHERLANDS


krishna 12/19/2023 2:05:00 AM

valied exam dumps. they were very helpful and i got a pretty good score. i am very grateful for this service and exam questions
Anonymous


Pie 9/3/2023 4:56:00 AM

will it help?
INDIA


Lucio 10/6/2023 1:45:00 PM

very useful to verify knowledge before exam
POLAND


Ajay 5/17/2023 4:54:00 AM

good stuffs
Anonymous


TestPD1 8/10/2023 12:19:00 PM

question 17 : responses arent b and c ?
EUROPEAN UNION


Nhlanhla 12/13/2023 5:26:00 AM

just passed the exam on my first try using these dumps.
Anonymous


Rizwan 1/6/2024 2:18:00 AM

very helpful
INDIA


Yady 5/24/2023 10:40:00 PM

these questions look good.
SINGAPORE


Kettie 10/12/2023 1:18:00 AM

this is very helpful content
Anonymous


SB 7/21/2023 3:18:00 AM

please provide the dumps
UNITED STATES


David 8/2/2023 8:20:00 AM

it is amazing
Anonymous


User 8/3/2023 3:32:00 AM

quesion 178 about "a banking system that predicts whether a loan will be repaid is an example of the" the answer is classification. not regresion, you should fix it.
EUROPEAN UNION


quen 7/26/2023 10:39:00 AM

please upload apache spark dumps
Anonymous


Erineo 11/2/2023 5:34:00 PM

q14 is b&c to reduce you will switch off mail for every single alert and you will switch on daily digest to get a mail once per day, you might even skip the empty digest mail but i see this as a part of the daily digest adjustment
Anonymous


Paul 10/21/2023 8:25:00 AM

i think it is good question
Anonymous


Unknown 8/15/2023 5:09:00 AM

good for students who wish to give certification.
INDIA


Ch 11/20/2023 10:56:00 PM

is there a google drive link to the images? the links in questions are not working.
AUSTRALIA