bleeding182

u/bleeding182


r/androiddev•

I just released a new version for a small authentication library that I've been working on to reduce copying of untested code between projects.

The library wraps the Android Account Manager framework and stores/retrieves access and refresh tokens along with some basic user data. It should help with basic OAuth flows and provide a thread safe token refresh option.

Further it is intended to be a small, working sample for an Android Authenticator, since the documentation is scarce, confusing at best.

It's still a work in progress (hence the 0.* version) so I'd love to hear your feedback!

You can find a minimal example that uses the reddit API in the /app folder.

[https://github.com/bleed

109

r/androiddev•

I've looked into localization over the last couple weeks, but one thing that eludes me is the default Locale. The default locale is basically unspecified since it will be a mix of the current users phones locale (for formatters and layouts (if RTL is supported)) with whatever resources in your res/values folder, when left unhandled.

I did not find a way to simply specify the fallback language of my app. It seems to me that all you can do is check whether the current locale is supported and, if not, override the locale settings with your selected default locale in the Application and every Activity, which seems like quite a bit of work. I wonder whether there is a much simpler approach

1314

You've reached the end of this feed.