Activity getCurrentFocus - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Activity getCurrentFocus method.

This code example shows how to use the following methods:getCurrentFocus, getSystemService
		cDef.set(Calendar.MINUTE, 0);
		return cDef;
	public static void hideInput(Activity activity) {
		if (activity.getCurrentFocus() != null) {
			InputMethodManager inputMethodManager = (InputMethodManager) activity
	public static Uri saveLocalFile(Context context, int index) {
		String filename = DownloadUtils.SAVE_PATH
				+ String.format("%d.png", index);
		File fLocal = new File(filename);
		if (fLocal.exists()) {
			return Uri.fromFile(new File(filename));
Contextual code suggestions in your IDE  Get Codota for Java

Related Activity getCurrentFocus Questions & Answers:

getCurrentFocus Method Overview
Calls getCurrentFocus() on the Window of this Activity to return the currently focused view.
See Code Examples for other Android Activity Methods: