Skip to main content

Posts

How to close or hide the android soft Keyboard

Solution: You can force the android to close the virtual keyboard. hideSoftInputFromWindow function to close the virtual keyboard Code: View myview = this . getCurrentFocus (); if (myview != null ) { InputMethodManager inm = ( InputMethodManager ) getSystemService ( Context . INPUT_METHOD_SERVICE ); inm . hideSoftInputFromWindow ( view . getWindowToken (), 0 ); }

Gradle sync error Error:Failed to resolve: com.android.support

The project was working Fine. But suddenly it throws the following error. app\build . gradle Error : Error : Failed to resolve : com . android . support : support - annotations : 27.0 . 1 Install Repository and sync project Error : Error : Failed to resolve : com . android . support : appcompat - v7 : 27.0 . 1 Install Repository and sync project Error : Error : Failed to resolve : com . android . support : customtabs : 27.0 . 1 Install Repository and sync project Error : Error : Failed to resolve : com . android . support : cardview - v7 : 27.0 . 1 Install Repository and sync project Error : Error : Failed to resolve : com . android . support : support - v4 : 27.0 . 1 Install Repository and sync project Error : Error : Failed to resolve : com . android . support : support - core - utils : 27.0 . 1 Install Repository and sync project Reason: It suddenly shows error because of Facebook has updated the SDK and removed suppor...