Google Associate Android Developer ASSOCIATE ANDROID DEVELOPER Dumps in PDF

Free Google ASSOCIATE ANDROID DEVELOPER Real 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:

K
Karthik
10/12/2023 10:51:00 AM

nice question

G
Godmode
5/7/2023 10:52:00 AM

yes.

B
Bhuddhiman
7/30/2023 1:18:00 AM

good mateial

K
KJ
11/17/2023 3:50:00 PM

good practice exam

S
sowm
10/29/2023 2:44:00 PM

impressivre qustion

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

questions seem helpful

L
luke
9/26/2023 10:52:00 AM

good content

Z
zazza
6/16/2023 9:08:00 AM

question 21 answer is alerts

A
Abwoch Peter
7/4/2023 3:08:00 AM

am preparing for exam

M
mohamed
9/12/2023 5:26:00 AM

good one thanks

M
Mfc
10/23/2023 3:35:00 PM

only got thru 5 questions, need more to evaluate

W
Whizzle
7/24/2023 6:19:00 AM

q26 should be b

S
sarra
1/17/2024 3:44:00 AM

the aaa triad in information security is authentication, accounting and authorisation so the answer should be d 1, 3 and 5.

D
DBS
5/14/2023 12:56:00 PM

need to attend this

D
Da_costa
8/1/2023 5:28:00 PM

these are free brain dumps i understand, how can one get free pdf

V
vikas
10/28/2023 6:57:00 AM

provide access

A
Abdullah
9/29/2023 2:06:00 AM

good morning

R
Raj
6/26/2023 3:12:00 PM

please upload the ncp-mci 6.5 dumps, really need to practice this one. thanks guys

M
Miguel
10/5/2023 12:21:00 PM

question 16: https://help.salesforce.com/s/articleview?id=sf.care_console_overview.htm&type=5

H
Hiren Ladva
7/8/2023 10:34:00 PM

yes i m prepared exam

O
oliverjames
10/24/2023 5:37:00 AM

my experience was great with this site as i studied for the ms-900 from here and got 900/1000 on the test. my main focus was on the tutorials which were provided and practice questions. thanks!

B
Bhuddhiman
7/20/2023 11:52:00 AM

great course

A
Anuj
1/14/2024 4:07:00 PM

very good question

S
Saravana Kumar TS
12/8/2023 9:49:00 AM

question: 93 which statement is true regarding the result? sales contain 6 columns and values contain 7 columns so c is not right answer.

L
Lue
3/30/2023 11:43:00 PM

highly recommend just passed my exam.

D
DC
1/7/2024 10:17:00 AM

great practice! thanks

A
Anonymus
11/9/2023 5:41:00 AM

anyone who wrote this exam recently?

K
Khalid Javid
11/17/2023 3:46:00 PM

kindly share the dump

N
Na
8/9/2023 8:39:00 AM

could you please upload cfe fraud prevention and deterrence questions? it will be very much helpful.

S
shime
10/23/2023 10:03:00 AM

this is really very very helpful for mcd level 1

V
Vnu
6/3/2023 2:39:00 AM

very helpful!

S
Steve
8/17/2023 2:19:00 PM

question #18s answer should be a, not d. this should be corrected. it should be minvalidityperiod

R
RITEISH
12/24/2023 4:33:00 AM

thanks for the exact solution

S
SB
10/15/2023 7:58:00 AM

need to refer the questions and have to give the exam

AI Tutor 👋 I’m here to help!