Get a List of Months by Locale in Android…
I was working with a client trying to decide on long and short DateFormats for an international mobile application. (Yes, that’s a mouthful.)
I wasn’t able to quickly find any documentation on the Java SimpleDateFormat strings by locale…so I did what any Passionate Programmer would do, and I wrote a method to do it for me.
[OutputStreamWriter](http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+outputstreamwriter) out =new[OutputStreamWriter](http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+outputstreamwriter)(openFileOutput( “months-by-locale.txt”, 0));
Then, I needed to get this file off of my emulator. To do that, I opened the DDMS perspective, selected my emulator in the Devices tab (emulator-5554), and navigated to datadata(applicaton name)files(file name).
Build awesome things for fun.
Check out our current openings for your chance to make awesome things with creative, curious people.
You Might Also Like