getURL = “http://localhost:8080/servicezjm/Good” + "?username="+ URLEncoder.encode(username.getText().toString(), "utf-8");getUrl = new URL(getURL);HttpURLConnection connection = (HttpURLConnection) getUrl.openConnection();connection.connect();//连接服务器BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));String getmag = reader.readLine();
android 学习心得1---网络编程
最新推荐文章于 2023-06-11 17:35:52 发布