icu4jandroid-7.0-nougat

Android N : how can i migrate from Android SDK API to Android ICU API


I was confused related ICU4J , if i want to upgrade my application version to Support Android N . How can i migrate from previous Android SDK to Android ICU API . For Example if i have used Calendar in my Application Using java.util.Calendar , will i implement that again with Android ICU API ? or there is shortest way ?


Solution

  • you don't have to implement that again for android N. but just change way of use.

    explained in documentation

    Migrating to android.icu APIs from other Android SDK APIs

    use android.icu.util.Calendar instead of java.util.Calendar


    for support older version then Android N you have to add ICU4J libraries