private CharSequence createTickerText(String title,String body){
  SpannableStringBuilder spannableStringBuilder=new SpannableStringBuilder();
  spannableStringBuilder.append(title);
  spannableStringBuilder.append("\n");
  spannableStringBuilder.append(body);
  spannableStringBuilder.setSpan(new StyleSpan(android.graphics.Typeface.BOLD),0,title.length(),Spannable.SPAN_INCLUSIVE_INCLUSIVE);
  return spannableStringBuilder;
}

private CharSequence createTickerText ( String title , String body ) { SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder ( ) ; spannableStringBuilder . append ( title ) ; spannableStringBuilder . append ( "\n" ) ; spannableStringBuilder . append ( body ) ; spannableStringBuilder . setSpan ( new StyleSpan ( android . graphics . Typeface . BOLD ) , 0 , title . length ( ) , Spannable . SPAN_INCLUSIVE_INCLUSIVE ) ; return spannableStringBuilder ; }
creates the ticker text for a notification having | title | and | body | . the notification ' s title will be printed in bold , followed by the text of the body .
