Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

check if there is connexion android studio

public boolean isInternetAvailable() {
    try {
        InetAddress ipAddr = InetAddress.getByName("google.com"); 
        //You can replace it with your name
            return !ipAddr.equals("");

        } catch (Exception e) {
            return false;
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: android how to change focus on confirm button on keyboard 
Java :: default access modifier java 
Java :: Java 8 merge multiple collections. 
Java :: change focus of edittext android when click outside 
Java :: android notification addaction example 
Java :: Returning an Array from a Method 
Java :: asserttrue in selenium java 
Java :: android edittext with icon 
Java :: how to find root viewGroop 
Java :: how to create database in java 
Java :: while (rem != 0); java 
Java :: bf5 cheat detector 
Java :: Algorithms - transformation 
Java :: function name in java 
Java :: <selector xmlns:android="http://schemas.android.com/apk/res/android<item android;drawable="@drawable/bluebtn" android: state_enabled="false"/ 
Java :: Sample TreeMap 
Java :: format code netbean 
Java :: disable listview readonly 
Java :: Java Creating strings using the new keyword 
Java :: illmatic 
Java :: object class of java 
Java :: stack overflow recyclerview 
Java :: how to add a command to a button 
Java :: document inserted succesfully but not present in the collection java 
Java :: excel data formatter in java 
Java :: java declare and populate array 
Java :: android volley benefits 
Java :: change password swing gui 
Java :: how does minus works in Java 
Java :: java memory cleaner 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =