Don't Use THIS API In Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 เม.ย. 2023
  • Follow for more Android & Kotlin tips 🙌

ความคิดเห็น • 25

  • @voidpointer398
    @voidpointer398 ปีที่แล้ว +10

    Great tip

  • @samimakhatun
    @samimakhatun ปีที่แล้ว +3

    Exactly what I need in my current project..! Thanks❤

  • @TheBlackManMythLegend
    @TheBlackManMythLegend ปีที่แล้ว +3

    I use kotlinx-datime because it's possible to use it in KMM

  • @mahmoudalkateb2008
    @mahmoudalkateb2008 ปีที่แล้ว +1

    That's good tip! Thank you.

  • @MexstusGaming
    @MexstusGaming ปีที่แล้ว +1

    Why does SimpleDateFormat need to be mocked for testing? And does this approach need to be mocked also?

  • @user-xl6vl2xo4j
    @user-xl6vl2xo4j ปีที่แล้ว +1

    thanks i have a lot of problemas now i know why.

  • @zenithzen6160
    @zenithzen6160 ปีที่แล้ว

    Great tip bro

  • @devdeeds
    @devdeeds ปีที่แล้ว

    Thread safety 👍

  • @mohanchaudhari7353
    @mohanchaudhari7353 ปีที่แล้ว

    Awesome

  • @eluroalex5920
    @eluroalex5920 ปีที่แล้ว

    Thank you Phillip

  • @rafants7285
    @rafants7285 7 หลายเดือนก่อน

    Thank you

  • @Indently
    @Indently ปีที่แล้ว

    Can I use it in iOs

  • @sarrj
    @sarrj ปีที่แล้ว +1

    min API level is 26 (Android 8/O) 😢

    • @serpenheir
      @serpenheir ปีที่แล้ว +1

      use jdk desugaring

  • @robbyalamsyah113
    @robbyalamsyah113 ปีที่แล้ว

    is it support for API 21?

  • @funnyanimalworld7579
    @funnyanimalworld7579 ปีที่แล้ว

    😂

  • @harischaudhry8366
    @harischaudhry8366 ปีที่แล้ว

    Ok

  • @xavierrispal9605
    @xavierrispal9605 ปีที่แล้ว +1

    The chosen names for the variables are a little bit confusing, aren't they ? They are definitely not formatters but the formatting results :) This is a nice tip anyway. I didn't know that SimpleDateFormat was not thread safe after all these years :-D Thanks Philipp !!

    • @serpenheir
      @serpenheir ปีที่แล้ว

      why aren't they formatters, if they do format?

    • @serpenheir
      @serpenheir ปีที่แล้ว +1

      @Xavier Rispal oh yep, now I see what you've been talking about. Indeed, they are results of formating

  • @reinstallx
    @reinstallx ปีที่แล้ว +1

    ufff, and of course it requires min api26

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว +4

      No, search for coreLibraryDesugaring :)

    • @marvelspiderman
      @marvelspiderman ปีที่แล้ว +2

      I used "Jackwharton ThreeTenABP" to solve api problem

  • @shahidiqbal7013
    @shahidiqbal7013 ปีที่แล้ว +1

    Hey phillip i get this error
    java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: DayOfMonth