HOW TO CHECK IF INTERNET CONNECTIVITY IS AVAILABLE IN ANDROID

When you are developing Android apps, checking internet connectivity is an important stuff to do. The following code snippet checks whether the internet is available.

Replace context with your corresponding context. The boolean isConnected will be true when the

HOW TO CHANGE COLOR OF HINT TEXT IN ANDROID

You can easily change the color of hint text of EditText widget in Android by adding android:textColorHint in your XML file. For Example:

Alternatively you can change the color through themes. Open style.xml and define a theme as given