Class BreadCrumber

  extended by com.twofortyfouram.locale.BreadCrumber

public final class BreadCrumber
extends java.lang.Object

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 context, Intent intent, java.lang.String currentCrumb)
          Static helper method to generate bread crumbs.
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 context,
                                                        Intent intent,
                                                        java.lang.String currentCrumb)
Static helper method to generate bread crumbs. Bread crumb strings will be properly formatted for the current language, including right-to-left languages, as long as the proper com.twofortyfouram.locale.platform.R.string#twofortyfouram_locale_breadcrumb_format string resources have been created.

context - Context for loading platform resources. Cannot be null.
intent - Intent to extract the bread crumb from.
currentCrumb - The last element of the bread crumb path.
String presentation of the bread crumb. 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 "".
java.lang.IllegalArgumentException - if context is null.