Questions tagged [ion-koush]

Ion is a networking library for Android by Koushik Dutta.

Ion

Ion is a networking library for Android by Koushik Dutta.

Features

Usage

Usage and more information can be found in the original repository: https://github.com/koush/ion

39 questions
4
votes
2 answers

Koush ION crashes after Gradle upgrade

After Gradle upgrade ION gives me this error, when trying to send very simple request. It gives me same error on AVD and my physical device. For now I dodged error with going reverting the upgrade. What could be causing following error? 2020-10-24…
oto
  • 383
  • 4
  • 18
4
votes
2 answers

Clear BitMap Cache - koush ion

i would like to clear bitmap cache but i am not sure how to clear the bit map . I am using Koush Ion library to load the picture try { bitmap = Ion.with(context).load(URLimage).withBitmap().asBitmap().get(); } catch…
EggRollMan
  • 583
  • 1
  • 8
  • 20
4
votes
2 answers

Android koush/ion lib unable to post and receive JSON response

I am using ION to GET/POST for REST and also to get Images into ListView but I am unable to use POST method and receive response as a JSON The ION version that I am using is 1.3.7. Tested on emulator and also on real devices 4.1.1, 4.2.2 and 4.4…
Rinav
  • 2,527
  • 8
  • 33
  • 55
4
votes
2 answers

Uploading multipart file with Koush Ion library

In my last app I'm going to use Koush Ion library. It's so handy but i have a problem with uploading file to my rest server. note: My server response to success upload Process is 1 My code i like this: public class MainActivity extends Activity { …
MAY3AM
  • 1,182
  • 3
  • 17
  • 42
3
votes
1 answer

How do i get ion library to trust self signed certificates

I am trying to connect to REST Service that has to use self signed certificates (it's a Unify PBXs Web Services Interface). The System will regenerate it's Certificates on Software updates and unless you load a certificate into the system there will…
Jonas Köritz
  • 2,606
  • 21
  • 33
3
votes
2 answers

Detecting argument type in given FutureRequest

Say I have this API that: requires a lot of authentication things. always returns JSON, but sometimes an object, and sometimes an array. It's however, easy to predict what will be returned. And I want to use this super freaking awesome Ion library…
meeDamian
  • 1,143
  • 2
  • 11
  • 24
2
votes
1 answer

Android ION download with progressbar using FileOutputStream

I'm trying to modify koush's code from download sample with progressbar, to make it write to a FileOutputStream instead of File, but eclipse give me the following error: The method progressHandler(new ProgressCallback(){}) is undefined for the…
2
votes
0 answers

onCreate keeps being called

I have an simple activity that binds some data to a listView via an ArrayAdapter. I put a toast in my onCreate. If I leave the phone alone for a few seconds-minutes, the toast shows again. I'm totally clueless as of how this is happening. I'm…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
2
votes
3 answers

Using network library to pull down JSON

I don't work with JSON often, but I was having a bit of trouble just doing it in Android with no other libraries. I stumbeled upon Ion by Koush and I'd like to use it to retrieve weather data for London. The JSON api I will be using is from…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
2
votes
1 answer

Overriding HostnameVerifier with Ion

I am using Koushik Dutta's Ion networking library for Android. I need to override SSL checks for debugging purposes. I've found out how to set my own SSL context and TrustManager…
Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84
1
vote
1 answer

How to build a URL in Koush ion

I am building an app to upload images to my company server I am using koush-ion for the upload, now my problem is I have to dynamically change the URL for upload depending on information entered in another activity(LoginActivity) via edittext…
Ruben Meiring
  • 333
  • 2
  • 21
1
vote
1 answer

Upload image with Ion android library

I've got an app that is connected to a server through a restful API, but I need to upload an image to the server and I'm using Ion library, is there anyway to upload this image to the server?
Isaac Kennedy
  • 179
  • 1
  • 1
  • 11
1
vote
0 answers

Ion Error when loading https url

I am using Koushik Dutta's Ion networking library for Android. I want to make a connection to instagram’s api through this address: https://instagram.com/api/ But when trying via ion, it works with some ISPs and doesn’t work with some others and…
Armin
  • 71
  • 2
  • 9
1
vote
1 answer

Ion load download file from url and write to device gives 'null' file on some devices

I am using https://github.com/koush/ion in my app to download files from urls and write them to Android devices. Most of the time it works great but from the statistics there are around 15% of my users getting null file from the call back…
Keeratipong
  • 41
  • 1
  • 1
1
vote
2 answers

Using Ion with an Application Context

I'm interested in using Ion/AndroidAsync for the "backend" of an Android app. I don't want to make long running calls tied to an Android component, so I have a background layer that stays alive as long as the Application is alive. This background…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
1
2 3