老规矩,先上GIF动态图,看个效果,如果符合你的项目或者确定你要了解的内容,再往下看吧:
接口使用php本地服务器,简单说就是使用phpStudy开启本地服务器,不会的同学请看我写的关于php的博文:
这个是最基础的方法来实现登陆,虽然方法比较low,但是了解原理来说,最好不过。只是,不建议在实际项目中使用,因为比较代码量比较大。
以下是php和Android的代码:
----------