Android 无法获取httpClient的数据?
PHP中文网
PHP中文网 2017-04-17 16:26:48
0
5
731
PHP中文网
PHP中文网

认证0级讲师

reply all(5)
PHPzhong

Your thread has not been started, what should you do?

new Thread().start();
小葫芦

Have you caught the exception? Is getNametext() placed in the onCreate() method? Can a real browser access this data?

Peter_Zhu

Why don't you try the data on the Internet? The local data is very ambiguous...
And this one can't be started with .start()?

巴扎黑

Try changing localhost to your IP?

左手右手慢动作

To run thread, you need to add start
In addition, put a log in it to see if there is an exception

catch (IOException e) {
  e.printStackTrace();
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template