Example usage for android.text.format DateFormat getDateFormatOrder

List of usage examples for android.text.format DateFormat getDateFormatOrder

Introduction

In this page you can find the example usage for android.text.format DateFormat getDateFormatOrder.

Prototype

public static char[] getDateFormatOrder(Context context) 

Source Link

Document

Gets the current date format stored as a char array.

Usage

From source file:Main.java

public static boolean isMonthBeforeDay(Context context) {
    char[] dateFormatOrder = DateFormat.getDateFormatOrder(context);
    for (int i = 0; i < dateFormatOrder.length; i++) {
        if (dateFormatOrder[i] == 'd') {
            return false;
        }/*from   w  w  w .ja v a 2  s.  co  m*/
        if (dateFormatOrder[i] == 'M') {
            return true;
        }
    }
    return false;
}

From source file:org.addhen.smssync.fragments.BaseFragment.java

protected void logActivities(String message) {
    if (Prefs.enableLog) {
        new LogUtil(DateFormat.getDateFormatOrder(getActivity())).appendAndClose(message);
    }//from  ww  w  . j a  v  a 2  s  .  c  o m
}

From source file:org.addhen.smssync.fragments.BaseListFragment.java

protected void logActivities(String message) {
    if (Prefs.enableLog) {
        new LogUtil(DateFormat.getDateFormatOrder(this.getActivity())).appendAndClose(message);
    }//from  w w w. j  a  va  2  s .  c  om
}

From source file:org.addhen.smssync.activities.BaseActivity.java

protected void logActivities(String message) {
    if (Prefs.enableLog) {
        new LogUtil(DateFormat.getDateFormatOrder(this)).appendAndClose(message);
    }//from ww  w . java 2  s . c o  m
}