com.twofortyfouram.locale
Class BreadCrumber

java.lang.Object
  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 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

generateBreadcrumb

public static java.lang.CharSequence generateBreadcrumb(Context c,
                                                        Intent intent,
                                                        java.lang.String currentCrumb)
Static helper method to generate breadcrumbs. Breadcrumb strings will be properly formatted for the current language, including right-to-left languages, as long as the proper R.string#twofortyfouram_locale_breadcrumb_format string resources have been created.

Parameters:
c - Context for loading platform resources. Cannot be null.
intent - Intent to extract the breadcrumb from.
currentCrumb - The last element of the breadcrumb path.
Returns:
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 "".