Asynchronous networking and image loading library for Android. Use with the [android] tag
Questions tagged [android-ion]
179 questions
2
votes
1 answer
Using Ion library to load images from an expansion file
I am using an expansion file to load additional resources and load images. My problem is that I can only use getInputStream and create a drawable from stream. Is that possible with Ion library?

Odysseas
- 301
- 2
- 8
2
votes
1 answer
no post using ion library
I am trying to post a json object through android ion library on a computer in my local network with the following code :
String url = "http://192.168.1.23/ws/svn/branches/application/public/connectMobile";
try {
…

user4086466
- 21
- 1
2
votes
2 answers
Ion using HTTPS
I'm using Ion but when i try to use it with Https it gives me an exception.
Code:
Ion.with(getApplicationContext())
.load(mBaseUrl + "Token")
.setJsonObjectBody(json)
(...)
Exception:
09-24 11:53:00.211 17654-17940/com.gfi.connectelu…

MauroAlexandro
- 347
- 3
- 6
- 18
2
votes
1 answer
Iterate over HTML tags
I am developing some kind of RSS application: the app downloads the content provided by a RSS feed and shows it to the user.
The post's content has tags like p, img and h2, I want to iterate (in order) over them and create TextView's and ImageView's…

Manuel
- 2,236
- 2
- 18
- 28
2
votes
1 answer
Android : How to use Cache in ion library?
In my case, I want to load data from Cache. If there is cache load from cache else load from network. How can I use caching in Ion?
private void loadION() {
final ProgressDialog progressDialog = new ProgressDialog(this);
…

DroidLearner
- 2,115
- 5
- 31
- 50
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
1
vote
0 answers
koush/ion Crash in Android gradle 4.1.1
I upgraded the build Gradle to 4.1.1 and the app is crashed. Please check the following log. Is there any solution for it? I opened an issue in Github.
Fatal Exception: java.lang.AssertionError
at…

newbision
- 124
- 9
1
vote
1 answer
Error "No interface method setCallback" when calling ion client from an coroutine
According to Kotlin Extensions - async/await test, to use async web request i should encapsulate the call inside a coroutine, like the example below, taken from the test:
private fun myGetAsync(url: String) = GlobalScope.async {
try {
…

MiguelSlv
- 14,067
- 15
- 102
- 169
1
vote
0 answers
Can't get data in Android koush/ion
I want to get the data from onCompleted method and send to my view, but I cant access the results inside the onCompleted method.
public double walletApiCall(final Activity myactivity, final String addresses) {
double unCon_balance;
…

zaheer
- 143
- 10
1
vote
0 answers
Upload Image file to Node.js server from android
I have written my image upload API in Node.js, which is working fine in Postman but I'm not getting any way to do that in android. I have tried this library
but still couldn't solve this.My upload image API goes like this
var upload = multer({…

Neha
- 389
- 4
- 8
- 24
1
vote
2 answers
Ion returning XML error whereas expecting JSON
I am using Ion library to send JsonArray to the web service and get JSOn output. The same url and and input are working well on postman giving the correct result. But when supplied the same url and input through Ion library, it is giving the Request…

Suraj
- 165
- 2
- 11
1
vote
1 answer
How to prevent a ProgressBar from sticking?
In my app I'm getting some TEXT from a Website by ion library and I'm using a progressBar to show the progress of downloading that data.
But my main issue is that in onComplete I implemented some methods that work with the TEXT I've got from the…

John K
- 371
- 5
- 26
1
vote
0 answers
Android ION timeout error
since 2 days I have a dramatic trouble with my app: every time I try to get json values from my endpoint I get a timeout client error.
for(int i =1; i < 1000; i++){
ArrayList products = Ion.with(mContext)
…

Claudio Pomo
- 2,392
- 7
- 42
- 71
1
vote
0 answers
using retrofit process of retrying going slow
I am new for retrofit and I am using it and I have implemented in activity directly not inside thread and when I am starting then it taking lot of time and blocking User Interface also and after getting response and when I hit again same by…

Ajay Sharma
- 55
- 5
1
vote
1 answer
Upload Photo using Django Rest Framework
I'm trying to upload a photo using Django Rest Framework and Android Studio, but I'm getting always null when I try to retrieve this image.
Models.py:
class FotoCliente(models.Model):
image = models.ImageField(upload_to='userpic/%Y/%m/%d/', null…

Pedro Gabriel Lancelloti Pinto
- 151
- 1
- 12