Questions tagged [android-ion]

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

179 questions
1
vote
1 answer

Returned JsonObject Null for only some GSON method calls

EDITED MY QUESTION: I've been working on my first ever programming and Android project. In the following code I receive a: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.gson.JsonElement.toString()' on…
JohnnyJem
  • 23
  • 1
  • 5
1
vote
2 answers

Endless adapter for android ListView

I use Ion library to receive data from server. I have problem, that my code makes get request multiple times, so I have data duplication in my list. My adapter code: public class ArticleAdapter extends ArrayAdapter
{ Future>…
Max
  • 1,534
  • 1
  • 18
  • 24
1
vote
1 answer

Android using ION with PhotoView Library

My application keeps crashing every time I try to use the PhotoViewAttacher on my application of the PhotoView library. I'm using ION to display images and trying to get the PhotoView library to allow me to zoom into them. My code currently…
John McKenzie
  • 420
  • 6
  • 16
1
vote
0 answers

Check Ion cache before loading

I want to check if an image is in the cache of Ion before calling to load so I don't set the in animation. Ion.with(view).animateIn(animation).load(url) alternatively is there another way to only do the animation when the image is loaded from a…
pablisco
  • 14,027
  • 4
  • 48
  • 70
1
vote
1 answer

How do you enable ION debugging in Android kernel?

I'm trying to track down lost RAM in the Android kernel, and I see from the post below that the ION drivers keep track of this. What is the concept behind “Lost RAM” which appears in Dumpsys meminfo? Can someone tell me how to enable ION driver…
ckrugo
  • 49
  • 1
  • 5
1
vote
1 answer

Ion library and async operations

I am using ion library for network operations in my app. (https://github.com/koush/ion) I have a question about this.I am downloading data from my server with ion,and in onComplete method I am saving this datas to app database.Do I need use a new…
Okan
  • 1,379
  • 3
  • 25
  • 38
1
vote
0 answers

Ion timeout post file to sails(skipper)

My situation is when I post a jpg file to my Sails server in Android with Ion, it went timeout. Here is my code: Android: Ion.with(ctx, URLConstant.getURL(URLConstant.URL_TYPE_UPLOAD_AVATAR)) .setMultipartFile("avatar", new…
Frankzhao
  • 11
  • 2
1
vote
0 answers

File uploading with ion

I am trying to upload image file to my server with ion library.I am using following code Ion.with(this, "upload_url") .setMultipartFile("imagefile", "image/jpeg", new…
Okan
  • 1,379
  • 3
  • 25
  • 38
1
vote
1 answer

Possible to enable persistent disk cache with Android Ion?

I'm using Koush's terrific image loading library, Ion, but I want to be able to persist images on disk across application launches. This is to avoid reloading images from the network when the app exits and restarts. Currently, it appears the cache…
Jackpile
  • 1,075
  • 9
  • 18
1
vote
2 answers

Ion sets the imageView height to a wrong value

I dont know why this is happening: After loading the image with the Ion library, my image shows two white bars below and above image. I don't want to have that. My ImageView is displayed in a listview item. My adapter code looks like this: if…
stoefln
  • 14,498
  • 18
  • 79
  • 138
1
vote
1 answer

IonDrawable cannot be cast to android.graphics.drawable.BitmapDrawable

Trying to insert and image to Rounded Image using RoundedDrawable Class (Got it from https://github.com/vinc3m1/RoundedImageView). The image is from a URL. If I use Koushik dutta's ION library for the image loading part I get the following error: …
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
1
vote
1 answer

Unable to upload image to server using Ion library

I am using Ion library to upload image to web server.But when ever i try to set the parameters using setMultipartParamter i am getting null values.Why this is happening. Code …
user3844417
  • 139
  • 1
  • 4
  • 12
1
vote
2 answers

Adapter behaviour when loading image from URL ion library

I m facing a problem when I want to load images from an adapter using the ion library. In fact, I have items with a string corresponding to the url of the iconic image that I want to load for each item on my gridview. The problem is due to the…
mfrachet
  • 8,772
  • 17
  • 55
  • 110
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
vote
1 answer

How I can establish a saved cookie in Ion library when the app is destroyed?

I have a cookie from the server and I save this cookie in a Shared Preference. When I send requests to the server from Ion library it goes right because I'm logged in the app and Ion has this cookie. And when I close the app and re-open, Ion has my…
beni
  • 3,019
  • 5
  • 35
  • 55