Geek Garage

Find inspiration in awesome ideas.

Tag: Java

Date manipulation curse from Java in Android

Java does certainly have the reputation of the worst date manipulation features. This all comes with the bad designed Calendar API. Hopefully, there are better third-party APIs and if you have to manipulate dates, moment, times… You certainly prefer JodaTime. From my point of view, it’s a no brainer.

I was working on a date picker for an Android project and found that the SDK provided a set of convenient methods and interfaces. But this lead to a little bug in the interface, a little shift in the displayed date. Of course, this comes from the old Java Calendar API curse and from a lack of precision in the documentation.

Read More

Format your string resources on Android

There are many tutorials on the web about String formatting on Android. Unfortunately, most of them are about the usual String.format method. In this post, I’ll show you the different ways to display your message.

Read More

Powered by WordPress & Theme by Anders Norén