开发者

Trigger php script through code

开发者 https://www.devze.com 2023-02-02 18:00 出处:网络
I want my app to trigger a php script. Basically, all 开发者_如何学Cit needs to do is visit an url with some get variables (something like www.example.com/foo.php?id=1). Preferably without opening any

I want my app to trigger a php script. Basically, all 开发者_如何学Cit needs to do is visit an url with some get variables (something like www.example.com/foo.php?id=1). Preferably without opening any browser.


Here is a resource from the Android SDK website that demonstrates the HttpUrlConnection object in action:

http://developer.android.com/reference/java/net/HttpURLConnection.html

This call would be made programmatically, without showing anything to the user.

0

精彩评论

暂无评论...
验证码 换一张
取 消