Click here to Skip to main content
14,880,638 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm planning on connecting my Android project(using Eclipse) to another computer which is the server.

Questions are:
How do I connect it to another computer?
I'm told that i can use Wi-Fi or Lan cable.
But I'm sure I need some computer configs. What are those?
Is it possible to use PHP in sending data to the server?

I'm seriously new to this network thing and PHP and Android, so i apologize if this is a silly question. I've tried searching for solutions, but majority of it is SQLITE.

What I have tried:

I haven't tried anything yet, because I have no idea on how to do it.
Updated 6-May-16 3:50am

1 solution

Assuming that your server and Android system are both connect to the same network it should be easy. Check the MySQL documentation for information on the required connection string, or take a look at MySQL connection strings -[^].
However, you will probably need to learn Android programming first (always depending on what problem you are trying to solve).
Sentell 6-May-16 10:08am
What i'm trying to do is send the data selected to the server.
Can I use this code to do it?
private static String url_all_products = "";
Richard MacCutchan 6-May-16 10:40am
That all depends on what that PHP program is going to do.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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