Back to project page Joetz-Android-V2.
The source code is released under:
GNU General Public License
If you think the Android project Joetz-Android-V2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.jens.myapplication.util; //from w ww .j a v a 2 s. c o m import com.example.jens.myapplication.R; /** * Help methods for Months */ public class MyMonths { public static int getMonthShortResId(int month){ switch(month){ case 1: return R.string.month_short_jan; case 2: return R.string.month_short_feb; case 3: return R.string.month_short_mar; case 4: return R.string.month_short_apr; case 5: return R.string.month_short_may; case 6: return R.string.month_short_jun; case 7: return R.string.month_short_jul; case 8: return R.string.month_short_aug; case 9: return R.string.month_short_sep; case 10: return R.string.month_short_oct; case 11: return R.string.month_short_nov; case 12: return R.string.month_short_dec; default: return -1; } } }