java.lang.Objectcom.twofortyfouram.locale.BreadCrumber
public final class BreadCrumber
Utility class to generate a breadcrumb title string for Activity instances in Locale.
This class cannot be instantiated.
| Method Summary | |
|---|---|
static java.lang.CharSequence |
generateBreadcrumb(Context c,
Intent intent,
java.lang.String currentCrumb)
Static helper method to generate breadcrumbs. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.CharSequence generateBreadcrumb(Context c,
Intent intent,
java.lang.String currentCrumb)
R.string#twofortyfouram_locale_breadcrumb_format string
resources have been created.
c - Context for loading platform resources. Cannot be null.intent - Intent to extract the breadcrumb from.currentCrumb - The last element of the breadcrumb path.
String presentation of the breadcrumb. If the intent parameter is null, then this method returns
currentCrumb. If currentCrumb is null, then this method returns the empty string "". If intent contains a private
Serializable instances as an extra, then this method returns the empty string "".