I used the method in this question to post to a Google Spreadsheet form from my Android app. The method in the question uses the Apache HTTP Client which was removed in Android 6.0. While it is possible to use the Apache HTTP Client on Android 6.0, I'd like to implement the same functionally with HttpURLConnection. How can I post to a Google Spreadsheet form using HttpURLConnection?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
I assume that the method you post a Google Spreadsheet is similar to the answer of this question.
I recommend you to use a 3rd party library which called okhttp.
okhttp is reliable, easy to use, and it also has several additional features.
The following is the sample code. Hope it would be helpful.