androidhttpclient Questions
7
I am new to android development, and trying to call local .NET web api service in android via retrofit library. After starting my web api on IIS I am getting this error failed to connect to localho...
Showthrough asked 25/7, 2015 at 7:0
14
Solved
I am trying to do a HTTP POST to server using Retrofit 2.0
MediaType MEDIA_TYPE_TEXT = MediaType.parse("text/plain");
MediaType MEDIA_TYPE_IMAGE = MediaType.parse("image/*");
ByteArrayOutputStrea...
Trixi asked 2/1, 2016 at 5:31
3
Solved
Recently I updated android 9 to android 10 but unfortunately, the app sometimes crashes and gives this error.
com.fgapps.maker E/chromium: [ERROR:cookie_manager.cc(137)] Strict Secure Cookie policy...
Casework asked 27/7, 2020 at 8:59
7
Solved
I have made a php script inside localhost and I am connecting that with httpClient but I am getting a problem.
Please tell me how can I connect to a php file at localhost from the emulator?
...
Anathematize asked 3/4, 2011 at 9:56
12
Solved
I have searched everywhere but I couldn't find my answer, is there a way to make a simple HTTP request? I want to request a PHP page / script on one of my websites but I don't want to show the webp...
Baseboard asked 17/8, 2010 at 19:0
6
Solved
I'm working on an app on Android. I'm using httpcore 4.3.3. I get this when I try to use ContentType.parse(string)
java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/mes...
Thirzia asked 8/12, 2014 at 20:35
1
I'm using self-signed CA certificate for testing environment but facing issue to hit api using HttpClient....
Please help me to fix this issue....
W/System.err: javax.net.ssl.SSLHandshakeExcepti...
Split asked 11/3, 2019 at 16:40
2
Solved
I am trying to check at runtime if there is a new version of the app from an url.
I have deployed the app at the online domain which is something like this www.test.com/androidapp/app_debug.apk and...
Zahara asked 9/4, 2019 at 7:51
1
Solved
This is the library that I'm using:
https://github.com/clickntap/Vimeo
I'm trying to use the library for an Android app. My test device is Kitkat (4.4.4).
Here's my gradle config:
compileSdkVers...
Riva asked 21/9, 2017 at 7:55
7
Went to upgrade to Retrofit 2.0 and running into this weird problem.
I have a method to log a user in
public interface ApiInterface {
@Multipart
@POST("user/login/")
Call<SessionToken> ...
Joannajoanne asked 19/10, 2015 at 2:48
2
Solved
How can I get html of a website with retrofit ?
for example I have this url and I need to get html of this url and how can I load more .
Bellow is my code :
MainActivity.java:
public class Main...
Kunzite asked 31/5, 2017 at 9:9
1
I'm reading about certificate pinning on Android and I'm confused. I'm not using okhttp or retrofit so I have to do it manually.
There is a tutorial here: https://www.owasp.org/index.php/Certificat...
Spurry asked 19/6, 2017 at 10:29
3
Solved
My requirement is to use PUT, send a header and a body to server which will update something in the database.
I just read okHttp documentation and I was trying to use their POST example but it doe...
Sensual asked 19/1, 2016 at 20:18
3
Solved
I have two domains: foo.net and bar.com. They both have SSL certificates, and they work well in all desktop and mobile browsers. They are hosted on the same server configured with nginx.
However, ...
Tradesman asked 22/2, 2014 at 15:58
4
Solved
I recently migrate my project from Eclipse to Android Studio (I do not fully control this IDE yet). In this project, I have a file uploader AsyncTask which send multipart over http. To do this, I u...
Liar asked 12/2, 2015 at 6:8
4
Solved
I am getting following errors when I import project into eclipse. I have updated my sdk to M.
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpVer...
Churrigueresque asked 20/9, 2015 at 5:13
3
Solved
I am trying to learn XML parsing using this tutorial but some of the classes are not getting imported. Here is the code:
public String getXmlFromUrl(String url) {
String xml = null;
try {
// d...
Eyrie asked 13/11, 2015 at 11:38
0
I have question. Does retrofit support SSL with use SNI? It's a technique that allows servers to return different SSL certificates depending on the requested host name, which allows using SSL in sh...
Riesman asked 24/5, 2016 at 8:30
1
Solved
I am trying to use OKHttp and https://github.com/hongyangAndroid/okhttp-utils to implement Login function, but I don't know how to create new a JsonObject use Response in the Callback.
OkHttpUtil...
Eximious asked 20/5, 2016 at 3:35
3
I am looking into both these Android Http Networking libraries.
I would like some peoples experiences with using the two libraries. Personally I have always used the http://loopj.com/android-async...
Substitution asked 17/8, 2014 at 6:30
1
I am an iOS Developer starting to learn Android. In Swift, creating a completion handler is very simple, but I still can't find a way to do it in Java.
I am sorry if this question is too noob for ...
Undersea asked 16/12, 2015 at 6:29
4
I was following a tutorial and I got to a point where a lot of the code is deprecated.
ArrayList<NameValuePair> dataToSend = new ArrayList<>();
dataToSend.add(new BasicNameValuePair("n...
Arnuad asked 1/5, 2015 at 21:58
2
Solved
I'm new to Android programming and working with Retrofit. I've done a bunch of research on this topic, but haven't been able to find a solution specific to my needs. I'm working with our API and tr...
Mccaslin asked 5/11, 2013 at 18:36
3
Solved
I have a button, which opens up a dialog box asking user to either "Take Picture" or "Choose from gallery".
I am facing issues when user "Take photo" , image is getting clicked, and for verificat...
Vauntcourier asked 19/5, 2015 at 5:1
2
Solved
I need to upload files using Android's HttpClient. Unfortunately, Android doesn't include MultipartEntity, so I must using Apache's httpmime library.
I don't want to incur possible conflicts betwe...
Congruence asked 15/7, 2014 at 14:49
1 Next >
© 2022 - 2024 — McMap. All rights reserved.