Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Support Api version 15 #54

@Alireza-Farahani

Description

@Alireza-Farahani

First, thank you for your work. I tested this library and it works great. But the library minSdkVersion is set to 16. I am working on an application that has millions of user supporting minSdkVersion 15. I tried to override this in manifest but as I expected, I got runtime error in an emulator on Api version 15.

NoSuchMethodError: android.content.res.Configuration.setLocale

This happens in your LocalizationContext Class. Configuration.setLocale() is added in Api 17 and previously this had been done with Configuration.locale = .... If this is the only reason to set minSdk to 17, could you consider supporting Api version 15?

Also a question, if setLocale is defined in Api 17, how your library supports Api 16?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions