Trigger php script through code
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.
精彩评论