简体   繁体   中英

How to send request(String data) from android to PHP server localhost and receive response result form server PHP

This is my PHP code

在此处输入图片说明

This is my Android code

在此处输入图片说明

Example: String data is a first program ( the Hello world is written on Java Code).

I want to send String data from android to server PHP(picture 1). Server PHP will compile Java code and return result and my android application will receive response result from server PHP. Please help me!

您可以将json或xml格式的数据发送到php服务器,它将以json或xml格式提供数据,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM