Free Associate Android Developer Exam Braindumps (page: 12)

Page 11 of 33

To run a debuggable build variant you must use a build variant that includes

  1. minifyEnabled false in the build configuration
  2. debuggable true or debuggable false in the build configuration
  3. debuggable true in the build configuration

Answer(s): C



About running a debuggable build variant. Usually, you can just select the default "debug" variant that's included in every Android Studio project (even though it's not visible in the build.gradle file). But if you define new build types that should be debuggable, you must add ‘debuggable true’ to the build type. Is that mostly true?

  1. Yes.
  2. No, if you define new build types that should be debuggable, you must add ‘debuggable false’
  3. No, the debug variant should be visible in the build.gradle file anyway.

Answer(s): A



With a room database. When performing queries, you'll often want your app's UI to update automatically when the data changes. Can you use a return value of type LiveData in your query method description to achieve this?

  1. Yes
  2. No

Answer(s): A

Explanation:

Room generates all necessary code to update the LiveData when the database is updated.



As an example. Our MutableLiveData<Long> object, named mLapseTime, is not connected to a Room database, etc. How can we change the value in mLapseTime?

  1. mLapseTime.postValue(“new String”)
  2. mLapseTime.setValue(1000l)
  3. mLapseTime.changeValue(1000l)

Answer(s): B






Post your Comments and Discuss Google Associate Android Developer exam with other Community members:

Associate Android Developer Discussions & Posts