Click here to Skip to main content
16,004,686 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,
What is the best way for connecting android application to a server?
Using libraries like volley or other ways?
Thanks

What I have tried:

Best way to connecting android application to the server.
Posted
Updated 16-May-17 20:56pm
Comments
Dave Kreskowiak 17-Nov-16 19:02pm    
Without knowing the server type and what you're doing with it it's pretty much impossible to answer this.
suraty 21-Nov-16 4:10am    
Php or asp server and a small app.
Dave Kreskowiak 21-Nov-16 9:02am    
You're going to have to be more specific than that.

PHP is a programming language, not a server. It's commonly used to write various types of servers, like your normal HTTP web server and WebAPI servers.

What is your "server" going to be doing? Serving up HTML content, WebAPI, ... what?
suraty 22-Nov-16 2:11am    
I'm a beginner, and I want learn to connect a standard application to server to send and receive data normally as a test! What can I do?
Thanks
Dave Kreskowiak 22-Nov-16 8:46am    
Again, you're using terms that can mean a variety of things. That's terrible for writing code. You have to be far more specific.

Write a WebAPI server and deploy it to a server. Google for "How to write a WebAPI <language>", replacing <language> with the language you want to do write it in.

After that, Google for "Write Android WebAPI client application".

This is where YOU have to do a bunch of research and teach yourself. You're not going to get this massive amount of information handed to you in a forum environment. There's just too much to fit in a few forum posts.

1 solution

To connect android to MySQL, you need to involve third party - PHP
You may refer to this tutorial
How to connect Android with PHP, MySQL[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900