private void updateCandidates(){
  if (!mCompletionOn) {
    if (mComposing.length() > 0) {
      ArrayList<String> list=new ArrayList<String>();
      Log.d("SoftKeyboard","REQUESTING: " + mComposing.toString());
      mScs.getSentenceSuggestions(new TextInfo[]{new TextInfo(mComposing.toString())},5);
      setSuggestions(list,true,true);
    }
 else {
      setSuggestions(null,false,false);
    }
  }
}

private void updateCandidates ( ) { if ( ! mCompletionOn ) { if ( mComposing . length ( ) > 0 ) { ArrayList < String > list = new ArrayList < String > ( ) ; Log . d ( "SoftKeyboard" , "REQUESTING: " + mComposing . toString ( ) ) ; mScs . getSentenceSuggestions ( new TextInfo [ ] { new TextInfo ( mComposing . toString ( ) ) } , 5 ) ; setSuggestions ( list , true , true ) ; } else { setSuggestions ( null , false , false ) ; } } }
update the list of available candidates from the current composing text . this will need to be filled in by however you are determining candidates .
