@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tv = (TextView) findViewById(R.id.data);
String serviceUrl = "http://ws.bus.go.kr/api/rest/stationinfo/getStationByName";
String serviceKey = "kTQ6yNK%2BzrBM5Nomv01JJqCai6%2B358%2FJxBYOLVlrjW7ULw0Cn910mb%2FCRb9M9t%2FVMpylfNSXUexJtCqAQ9XZbg%3D%3D";
String strSrch = "";
String strUrl = serviceUrl + "?ServiceKey=" + serviceKey + "&strSrch=" + strSrch;
new DownloadWebpageTask().execute(strUrl);
}
EditText android:id="@+id/input"
Button android:id="@+id/inputbutton"
TextView android:id="@+id/data"
String URL = "www.myhome.com/";
String subURL = "서울역";
subURL = URLEncoder.encode(subURL, "UTF-8");
URL = URL + subURL ;
System.out.println(subURL);
이것 저것 시도해보았는데... 결국 입력한 값이 다시 뷰에 출력되더라고요 ㅠㅠ 도와주세여