Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I’m trying to connect to https server on android using Retrofit. Here’s my OkHttpClient @Provides public OkHttpClient provideContactClient(){ HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .tlsVersions(TlsVersion.TLS_1_2) .cipherSuites(CipherSuite.TLS_RSA_WITH_DES_CBC_SHA, ...

  • 0

I’m trying to call an API which requires me to pass in an API key. My Service call using HttpURLConnection is working perfectly. url = new URL("" + params[0]); urlConnection = (HttpURLConnection) url.openConnection();...

  • 0

What is this error ? How can I fix this? My app is running but can’t load data. And this is my Error: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ RequestInterface : public interface RequestInterface {@GET("Erfan/news.php") Call<JSONResponse> ...

  • 0

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/*");ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); imageBitmap.compress(Bitmap.CompressFormat.JPEG,90,byteArrayOutputStream); profilePictureByte = byteArrayOutputStream.toByteArray();Call<APIResults> call = ServiceAPI.updateProfile( RequestBody.create(MEDIA_TYPE_TEXT, emailString), ...