20.11.2016 Views

ANDROID APP

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

208 บทที่ 8 เครือข่าย<br />

}<br />

public void ProcessResponse(String resp) throws IllegalStateException,<br />

IOException, JSONException, NoSuchAlgorithmException {<br />

StringBuilder sb = new StringBuilder();<br />

Log.v("gsearch","gsearch result:"+resp);<br />

JSONObject mResponseObject = new JSONObject(resp);<br />

JSONObject responObject<br />

= mResponseObject.getJSONObject("responseData");<br />

JSONArray array = responObject.getJSONArray("results");<br />

Log.v("gsearch","number of resultst:"+array.length());<br />

for(int i = 0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!