Questions tagged [android-ion]

Asynchronous networking and image loading library for Android. Use with the [android] tag

179 questions
0
votes
1 answer

Set Unkown Number of headers in ION request Android

I am using this library for service requests and I was wondering if I could add unknown number of key-value headers in a loop like from a hashmap using this library and I could not find any way to do that. Can set bodyParemeters through Map…
Atif Rehman
  • 325
  • 1
  • 12
0
votes
1 answer

ENOENT no such file or directory using image picker library and transforming the path every which way, Android image upload issue

I've seen variations on this issue and tried a whole bunch of different things, including encoding the whole thing as a string and so on. Basically, I am getting an array of image path(s) from and Android image picker library (Fishbun), then…
0
votes
0 answers

Ion progress bar not disappearing in adapter

I'm using koush/ion to upload a picture to a server. The picture uploads fine but the progress bar is not disappearing after completion. I've been checking the code over and over and everything seems to be fine. I tried the .progressBarparameter of…
Mauricio
  • 839
  • 2
  • 13
  • 26
0
votes
0 answers

Callback call with Ion on Intent Service(android)

In my application I want to send my recordings to the web site on backgroud. I've researched and I reached the conclusion that I should use and IntentService. But this leads me to a problem, i cannot reach the callback of Ion inside the…
0
votes
0 answers

Ion.with() sometimes work on Android

I want to get data from a server by Ion. I have this problem: just when run the project I can get data, but for other times I can not get any response. My code is: public void GetData(final Context context, final String user_id){ …
AndroidDev
  • 701
  • 3
  • 9
  • 21
0
votes
1 answer

How to correctly send multiple files and params with Koush / Ion

I'm using Koush / Ion library. I'm trying to send a request with regular parameters and files, like an html multipart form, but seems that don't send anything. Are this the correct way? or i'm doing it a bit weird? When the request goes with files…
emmgfx
  • 573
  • 7
  • 17
0
votes
1 answer

Ion.context uses same object for every request

I was just going through the source code of Ion and found that Ion uses static HashMap static HashMap instances = new HashMap(); for storing Ion objects and calling Ion.with(context) should return the same instance as…
mallaudin
  • 4,744
  • 3
  • 36
  • 68
0
votes
2 answers

How to download and save image into the app directory using Ion library

I am using the Ion library, and its working well. But on the other Hand I have to download image and save it to app directory. What I am trying to do is , using a Image view in the navigation view header and want to download image one time and to…
Allay Khalil
  • 674
  • 3
  • 11
  • 31
0
votes
3 answers

Does asynchronous execution means that data is not getting loaded using main thread in Android?

I am currently doing the following: I have a RecyclerView to display in a fragment.I load the data along with the images from the server. I am using Ion library to load the server data and the images.I have googled and found out that Volley excutes…
Tiny
  • 109
  • 12
0
votes
1 answer

?Random GIF image form Assets to ImageView using Ion?

Hi I am new in programming.. I want to show a random GIF image to ImageView using Ion. For single GIF it is ok, I simply use this line Ion.with(imgView3).load("file:///android_asset/gif130407.gif"); But I have multi GIF images in multi…
behking
  • 9
  • 4
0
votes
0 answers

Android koush/ion post request being blocked by firewall

I'm using koush/ion library to send post request to my server. It works using my home wifi, my friend's wifi, mobile data, and other's mobile data except for the office wifi. It returns null and I've been wondering why. I somehow manage to print the…
0
votes
1 answer

All Images not loading in ImageView while using Ion Library in Android

I am loading images from the server using Ion library. Some of my images load while some don't load. i am getting a message as follows: SkImageDecoder::Factory returned null I have referred to the following questions here and here. Can anyone help…
anu_r
  • 1,602
  • 7
  • 30
  • 61
0
votes
1 answer

Server not found error, 000Webhost domain and Ion library for data sending?

I am a newbie for data transfer to online sever. I have been following multiple tutorial for it, as DefaultHttpClient has been deprecated in latest sdk so i have been using a 3rd party library Ion Github Link, I am using 000Webhost domain as an…
Usman
  • 87
  • 1
  • 13
0
votes
1 answer

Making http call using ion with in intent Service gives error on data network

I am using intentService for making http calls with Ion. On Wifi it works well but when I switch to data network things start breaking. Ion.with(Application.getApplicationContext()) .load(url) .as(new TypeToken()…
0
votes
1 answer

Ion Android and wrong URL

I'm using Ion library for Android https://github.com/koush/ion I download files from server and when I pass the url for file that is not on the server it is saved on sd card anyway. To be clear, let's assume I have following url:…
Max Zavernutiy
  • 1,771
  • 1
  • 18
  • 27