/** Hide the soft keyboard if visible. */
public static void hideSoftKeyboard(Context ctx, View view) {
InputMethodManager manager = (InputMethodManager)
ctx.getSystemService(Context.INPUT_METHOD_SERVICE);
if (null != manager)
manager.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
/**
* Creates a backup manager for handling app backup in Android 2.2 and later.
* Returns an Object so that that this function can be called from any