WorkManager: Advanced configuration & testing - MAD Skills

Поділитися
Вставка
  • Опубліковано 8 сер 2024
  • In this episode of the WorkManager series for MAD Skills, Android Developer Relations Engineer Ben Weiss will introduce you to more of WorkManager’s advanced features. You’ll learn how to customize initialization and how WorkManager supports apps than span multiple processes. Ben will also show you how to test the worker and introduce some debugging techniques.
    WorkManager documentation → goo.gle/2PlgUfY
    WorkManager basic codelab → goo.gle/37UrVve
    WorkManager advanced codelab → goo.gle/3v87MvF
    Threading in WorkManager → goo.gle/3caWBJL
    Testing Workers → goo.gle/3ek2cQB
    Integration Testing → goo.gle/3v3YZL2
    Debugging → goo.gle/3qrxgk1
    Catch more WorkManager for MAD Skills → goo.gle/workmanager
    Watch more MAD Skills episodes → goo.gle/madskills
    Subscribe to Android Developers → goo.gle/AndroidDevs
    #WorkManager #AndroidDevelopers #MADSkills
  • Наука та технологія

КОМЕНТАРІ • 12

  • @maxwellmapako3820
    @maxwellmapako3820 3 роки тому

    Just what I needed!! Thank you very much

  • @oleksee
    @oleksee 3 роки тому +4

    Wow, this was very very useful! Didn't know at all about the debugging and testing bits. Really nice video!

  • @DerCheckerzeigts
    @DerCheckerzeigts 2 роки тому

    And what if I want to test a coroutineworker without initializing it? Just like "OneTimeWorkRequestBuilder"?

  • @1Ozgur
    @1Ozgur 3 роки тому +1

    How can I test a worker when I have the Hilt injection in the worker's constructor. I use 'TestListenableWorkerBuilder' but it throws 'IllegalStateException: Could not create an instance of ListenableWorker' and I couldn't find any info in the documentation. Thanks

    • @1Ozgur
      @1Ozgur 3 роки тому

      @@googleJay I have this already. I have custom parameters in the worker's constructor beside 'context' and 'worker parameters'. When I want to create instance of this Worker for test cases, it throws exceptions in every way I looked up. In addition, I couldn't find any info in the official documentation for this case.

    • @DerCheckerzeigts
      @DerCheckerzeigts 2 роки тому

      I have the same problem and no clue how to solve this. Bix blocker

  • @skydoves
    @skydoves 3 роки тому

    👍👍

  • @mdForid-hm4jz
    @mdForid-hm4jz 3 роки тому

    Hi

  • @user-bz2od2hy3n
    @user-bz2od2hy3n 3 роки тому

    💙👏👌💟🧡👍👍

  • @Kiran.Kumar-N_Biradar
    @Kiran.Kumar-N_Biradar 3 роки тому +2

    I am familiar with Java how can I code both Java and kotlin (step by step from beginning) and work manager
    I know basic but you explain in kotlin I not well in kotlin

    • @RinoSss
      @RinoSss 3 роки тому

      Start from Google codelabs. You will start loving Kotlin and hating java

  • @milanpatarak2107
    @milanpatarak2107 3 роки тому

    hello i have problem where í can contact you?