Hi im new to both android and java
i have php page in my webserver, i want to get this page result in android. I have search a lot for mysql android connection someone says that it is possible through "new URL" in java. But i cannot catch this method. Actually i want to implement a login page for android. I have already created a login page in php. Now i want to just post username and password value to php page the php page will check the data with database and if user is a valid user i need to redirect otherwise i will show an error message.
thanks
解决方案
You should consider writing an API on your webserver that returns JSON data to your client.
The webpage would then return a JSON data result that your Android app can parse for a result (200 success, 403 access forbidden if they entered a wrong username or password, etc. etc.).