I want to send a string from Android
to a mysql
database using json. In a .php
file I use $_POST
to take values from Android. And in Android, I heard that it can be done through AsyncTask
. Can anyone please tell how to do it using AsyncTask
?
Asked
Active
Viewed 1,562 times
2 Answers
1
Did you check this Answer? Use this along with AsyncTask
which MT8 suggest you.
Also refer this one.

Community
- 1
- 1

Hardik Joshi
- 9,477
- 12
- 61
- 113
-1
First Search on Google: There are Many Question and Answer Same as Your Question:
On Google : Click to Search
This will help to you : How To Make HTTP POST Request To Server - Android Example

Community
- 1
- 1

Pratik Butani
- 60,504
- 58
- 273
- 437