Asynchronous networking and image loading library for Android. Use with the [android] tag
Questions tagged [android-ion]
179 questions
0
votes
2 answers
how can I resize gif with custom height and width in android?
I am using Koush/Ion library to load gif from internet into imageview but I cannot resize the gifs aspectly, upon calling resize function, gif becomes still
so my question is, is there any way I can resize gif aspectly in android ?
here's my…

winchester
- 65
- 2
- 12
0
votes
0 answers
Android ListView scrolls down, but refuses to scroll back up
I use a navigation drawer.
In the main activity, I load a fragment with a layout containing a ListView inside a LinearLayout.
Everything works fine. Except, the listview content can be scrolled down smoothly, but cannot be scrolled up to the top…

chenzen
- 63
- 1
- 1
- 7
0
votes
1 answer
How to send a Raw Json using Koush/Ion in Android
I am trying to send a raw json from my Android App to a backend service. The call works in PostMan like so:
POST /MyController/MyMethod HTTP/1.1
Host: mysite.com
Accept: application/json
Content-Type: application/json
…

msysmilu
- 2,015
- 23
- 24
0
votes
0 answers
Ion can't be used if using GPRS connection
I use Ion to get Json from server
Ion.with(getActivity()).load(url).setLogging(getClass().getSimpleName(),Log.VERBOSE).asJsonObject().setCallback(this);
If i use wifi i can get JSON correctly. I can't get JSON, if i switch to GPRS (HSDPA). The…

Plugie
- 1,289
- 17
- 25
0
votes
1 answer
HTTP Response logging if using Ion
We can set logging if we use Ion to make HTTP connection to server as below
Ion.getDefault(getContext()).configure().setLogging("MyLogs", Log.DEBUG);
But we can't see the HTTP response from server from log that generated.
How to see HTTP response ?

Plugie
- 1,289
- 17
- 25
0
votes
1 answer
download json using Ion library
I'am working with ion for download image in my custom list, and it's work perfect! Now I want to use this lib for json. So I tried it, but it's not work.
Anybody know why this sample code return NULL? Or how do it simple?
import…

Sergei Maslovskiy
- 37
- 7
0
votes
0 answers
Simple android project doesn't work with ion library
I have ho idea what to do. Finally I created simple android project and attached Ion library, made ImageView and thats all. But even simple project have fatal err. What am I doing wrong?
activity_main.xml:

Sergei Maslovskiy
- 37
- 7
0
votes
1 answer
I can not get JsonArray in Ion and mapped Java class
I use the library enter link description here
my class and method:
public static class Test {
public String name;
public String soname;
public String age;
public String country;
}
private void setData(){
…

Valera Valerianov
- 247
- 1
- 3
- 14
0
votes
2 answers
Transitioning from Using Jar to Dependency for Ion
I originally had ion-1.3.8.jar in my libs directory in Android Studio, with compile files('libs/ion-1.3.8.jar') in my build.gradle file. I also had (and still have) androidasync-1.3.8.jar in my libs folder and an entry for it in build.gradle.
I…

hBrent
- 1,696
- 1
- 17
- 38
0
votes
1 answer
App freezing inside Ion's completion callback
I'm using Ion to handle my request, then I process the response using its onCompleted callback.
My problem is that the app completely freezes before it finishes doing what it's supposed to inside this callback. No crashes, no errors, nothing. It…

fehbari
- 1,429
- 2
- 16
- 22
0
votes
1 answer
android parsing json data using ION
i worked on simple application that retrieve json data from server and display in my application. i am using this link to fetch data, json data
and my code is as below,
Ion.with(this)
…
user2672839
0
votes
3 answers
android-parsing nested json Objects
i have to implement json data in my application. but i can't get it how to fetch data from server. i am using ION library.
{
"search": [{
"id": "5454003",
"description": "Larger Than Life",
"url":…
user2672839
0
votes
1 answer
Why does my URI return the correct JSON in my browser, but not in from my httpClient?
I'm relatively new to Django and RESTful APIs.
I'm writing an Android Application that executes a GET request to my API, which I've set up using Django and Postgresql. I am executing this request asynchronously using the Ion library. I dont think…

Eric S.
- 1,502
- 13
- 31
0
votes
1 answer
Android - Ion FutureCallBack with result=""
I am developing an App and I use the lib Ion from koush: here
Sometimes it works great and I get the result "succeed" or "User already exists" from the php file(echo "succeed";) and sometimes the result is "" an empty string.
I cant post the whole…

ninjaxelite
- 1,139
- 2
- 20
- 43
0
votes
4 answers
ion java.lang.ClassCastException
I'm using ION (https://github.com/koush/ion) to load images from the web into a ListView of ImageView. Currently I want to get the bitmap from the ImageView, but I'm getting one exception that is force closing my app:
java.lang.ClassCastException:…

pluralism
- 1,487
- 2
- 16
- 22