Android server implementation process stepped pit

Local server is created using Java Web myeclipse build up

1, java.lang.ClassNotFoundException solution appears when Java Web project is .class files .java files compiled on WebRoot / WEB-INF / classes directory under
2, you can not use 127.0.0.1 in the Android virtual machine or localhost access the local server, should be changed to 10.0.2.2.
3, can not use the Toast pop-up dialog in the sub-thread, to use, to be used before and after, respectively, plus Looper.prepare () and Looper.loop ().

Published 19 original articles · won praise 5 · Views 4211

Guess you like

Origin blog.csdn.net/qq_41409120/article/details/83902659
Recommended