ºÎ»ê21±â
¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 

[ ºÎ»ê21±â ½ºÅ͵ð ±×·ì]

ÀÏÀÚ : 2016³â12¿ù15ÀÏ~12¿ù27ÀÏ / ½Ã°£ : ¿ÀÈÄ 7½Ã~10½Ã (»óȲ¿¡ µû¶ó º¯µ¿µÉ ¼ö ÀÖÀ¸´Ï °øÁö Çʵ¶)
¸àƼ : ¹èÀÎȯ, °û±Ç¼·, ¼­¿¹¸²
¸àÅä : ÀÌ°æ¿ë
±³Á¦ : ÇѺû¹Ìµð¾î Android Studio¸¦ È°¿ëÇÑ ¾Èµå·ÎÀ̵å ÇÁ·Î±×·¡¹Ö (Áõº¸ÆÇ)
http://book.naver.com/bookdb/book_detail.nhn?bid=10220519
* Çʼö Áغñ¹°Àº ¾Æ´Õ´Ï´Ù. Ã¥ ³»¿ëÀ¸·Î Áøµµ ³ª°¡Áö ¾Ê½À´Ï´Ù.


°Ô½Ã¹° 10°Ç
   
[ÀÚ·á] JSONÅë½Å - HttpParser.java
±Û¾´ÀÌ : ÀÌ°æ¿ë ³¯Â¥ : 2016-02-18 (¸ñ) 16:38 Á¶È¸ : 1607
package util_parse;

import android.os.StrictMode;
import android.util.Log;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class HttpParser {
String address;
public HttpParser(String address){
this.address=address;
}
public String JsonParse() {
StrictMode.ThreadPolicy policy =
new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
StringBuilder result = new StringBuilder();
URL url;
try {
url = new URL(address);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
if(connection.getResponseCode()==200) {
Log.d("log","connect ok");
String line = "";
BufferedReader br = new BufferedReader(
new InputStreamReader(connection.getInputStream()));
while(true) {
line = br.readLine();
if(line == null) break;
result.append(line + "\n");
}
br.close();
}
connection.disconnect();
} catch (Exception e) {
e.printStackTrace();
}
return result.toString();
}
}


[ÀÌ °Ô½Ã¹°Àº ÀÌ°æ¿ë´Ô¿¡ ÀÇÇØ 2016-08-11 21:26:17 ºÎ»ê18±â¿¡¼­ º¹»ç µÊ]

[ÀÌ °Ô½Ã¹°Àº ÀÌ°æ¿ë´Ô¿¡ ÀÇÇØ 2016-12-22 20:52:32 ºÎ»ê20±â¿¡¼­ º¹»ç µÊ]

   

°Ô½Ã¹° 10°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
10 [ÀÚ·á]  JSONÅë½Å - json.php ÀÌ°æ¿ë 02-18 1732
9 [ÀÚ·á]  JSONÅë½Å - manifests ÀÌ°æ¿ë 02-18 1595
8 [ÀÚ·á]  JSONÅë½Å - GetImage.java ÀÌ°æ¿ë 02-18 1600
7 [ÀÚ·á]  JSONÅë½Å - HttpParser.java ÀÌ°æ¿ë 02-18 1608
6 [ÀÚ·á]  JSONÅë½Å - RowData.java ÀÌ°æ¿ë 02-18 1714
5 [ÀÚ·á]  JSONÅë½Å - MainActivity.java ÀÌ°æ¿ë 02-18 1725
4 [ÀÚ·á]  JSONÅë½Å - listview_item.xml ÀÌ°æ¿ë 02-18 1662
3 [ÀÚ·á]  JSONÅë½Å - activity_main.xml ÀÌ°æ¿ë 02-18 1722
2 [ÀÚ·á]  À¥¼Ò½º °¡Á®¿À±â ÀÌ°æ¿ë 08-11 1743
1 [°øÁö]  ¼ö¾÷ÀÚ·á ÀÌ°æ¿ë 07-16 1977
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.