This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean checkForInternetConnection() { | |
Boolean internetIsAvailable = false; | |
//check for internet connection | |
try { | |
ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); | |
activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); | |
} catch (Exception e) { | |
Log.d(TAG, "checkForInternetConnection Exception", e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /Applications/Android\ Studio.app/sdk/platform-tools | |
clear | |
read -p "Enter device IP address: " ip | |
./adb connect $ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: http://cocoapods.org | |
gem install cocoapods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
RequestParams rParams = new RequestParams(); //if you have parameters to POST | |
rParams.put("example", "example"); //if you have parameters to POST | |
AsyncHttpClient client = new AsyncHttpClient(); | |
client.get(pageURL, rParams, new JsonHttpResponseHandler() { | |
@Override | |
public void onSuccess(JSONArray jsonArray) { | |
super.onSuccess(jsonArray); | |
NewerOlder