Questions tagged [android-httptransport]
12 questions
11
votes
1 answer
How to update deprecated com.google.api.client.extensions.android.http.AndroidHttp
I have the follow object
HttpTransport t = AndroidHttp.newCompatibleTransport();
but whole AndroidHttp class (com.google.api.client.extensions.android.http.AndroidHttp) is marked as deprecated.
I don't know what is the class that replaces this,…

AndreaF
- 11,975
- 27
- 102
- 168
7
votes
2 answers
GoogleNetHttpTransport.newTrustedTransport() returning Null
I'm trying to load Google credential from json file. So before that, I knew, we have to get the default Google transport. Ref from. But it always gives null. Is anybody faced this issue?
This is my snippet:
try {
JSON_FACTORY = …

Mani
- 17,549
- 13
- 79
- 100
2
votes
1 answer
How to confirm if Android App and server is actually using TLS 1.2
So I have an Android app and my own Web server (which has TLS 1.0, TLS 1.1 and TLS 1.2) support turned on. We are planning an App upgrade where we are trying to force the secure connection between the app and the server to use TLS 1.2.
Please note…

Dibzmania
- 1,934
- 1
- 15
- 32
1
vote
4 answers
creating complex JSON using BasicNameValuePair
How can I create this JSON using ArrayList for posting json in Android
{
"user" :
{
"nickname" : "nickname6",
"password" : "1234",
}
}
I get only to a flat JSON
ArrayList nameValuePairs = new…

user1684140
- 444
- 6
- 18
0
votes
1 answer
Android MediaPlayer Won't Stream from HTTP
When setting a MediaPlayer DataSource to a HTTP URL as opposed to an HTTPS URL, no audio streams and MediaPlayer error code -38 is displayed in logs.

John Harrington
- 1,314
- 12
- 36
0
votes
0 answers
How to solve error on HttpURLConnection in android with URL having special characters?
I am trying to call a get API call using HttpURLConnection in android. I am passing some values as headers on the URL. This API returns not found response if that value contains special characters like & and #. All other special characters working…

Malhotra
- 221
- 3
- 13
0
votes
1 answer
Is it possible to listen on ServerSocket without using android.permission.INTERNET?
I am using NanoHttpd to create a WebServer on the device (I may want to use it only for my Application or allow other applications to use it).
But I am having to provide permission INTERNET.
I have created an application that does this and it works…

Arundale Ramanathan
- 1,781
- 1
- 18
- 25
0
votes
0 answers
NetHttpClient and SocketTimeoutException
I have an android app that is working through wifi and connect only to a local server. Normally the internet must be very fast and everything must work fine, however often i have some SocketTimeoutException :
06-14 01:40:38.141: W/System.err(30529):…

zeus
- 12,173
- 9
- 63
- 184
0
votes
1 answer
How to use Google Translate API v2 with Android
I'm trying to make an Android translator application using Google Translation Api ("google-api-services-translate-v2-rev48.1.22.0.jar).
I managed to get a valid key and I've tested it from a simple Java Project and everything works perfect.
But,…

Alex Chihaia
- 145
- 2
- 4
- 19
0
votes
1 answer
Android Studio Soap Xml Request format not printing
The below Android soap xml request/resposen is printing in Eclipse. But, In Android Studio, Response is print, Request in XML format not printing.
mySample Code:
Android Ksoap Xml request
AndroidHttpTransport httpTransport = new…

harikrishnan
- 1,985
- 4
- 32
- 63
0
votes
1 answer
Android: How to replace deprecated HttpRequestExecutor
I am trying to remove the HttpClient api from my Android project and to transition to using HttpURLConnection.
In the old API, I made use of HttpRequestExecutor, to change some icon in the notification bar when the app is downloading vs…

lyc001
- 777
- 1
- 10
- 25
0
votes
0 answers
How do I use androidHttp to upload multipart video to server
According to the android documentations, I should be using AndroidHttp.HttpTransport instead of Apache as Apache may not be supported in the future, etc. etc. Does anyone know how to use AndroidHttp for sending multipart data to server? I need to…

Katedral Pillon
- 14,534
- 25
- 99
- 199