/ Published in: Java
Need to check if your device is online before sending/getting a request? Here's how.
Expand |
Embed | Plain Text
public boolean isOnline() { return cm.getActiveNetworkInfo().isConnectedOrConnecting(); }
You need to login to post a comment.
