Skip to content

Instantly share code, notes, and snippets.

View Auwalms's full-sized avatar

Auwal MS Auwalms

View GitHub Profile
@KamilLelonek
KamilLelonek / weather.java
Last active July 20, 2016 11:15
Developing Android Apps at Udacity
Httpconnection connection = null;
BufferedReader reader = null;
String forecastJsonStr = null;
try {
URL url = new URL("http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=7");
connection = (Httpconnection) url.openConnection();
connection.setRequestMethod("GET");
connection.connect();