Asynchronous networking and image loading library for Android. Use with the [android] tag
Questions tagged [android-ion]
179 questions
1
vote
0 answers
why the hindi text is changing in symbol in android development
I am trying to fetch the value same as client paste in editView.
Before the below code I print story and get the text in hindi same as client paste.
Android code
Ion.with(Createfunction.this)
.load(url)
…

Meeti Sharma
- 1,072
- 1
- 7
- 13
1
vote
0 answers
Extending Library - "Didn't find class on path: DexPathList"
I am extending a class imported into my library successfully. Everything works perfectly until I try to extend it using a custom class which errors out when requesting the BasicNameValuePair. The file is near a direct copy paste of…

Mark Ro
- 11
- 1
1
vote
0 answers
Retrieve data from Database with Ion
I have a MySQL database where I'm storing data for my app. Now I want to retrieve this data with Ion over PHP, in the Line
JSONObject jObject = new JSONObject(result);
it gives me an error in result
Error
Error:(207, 17) error: method setCallback…

rib
- 190
- 1
- 11
1
vote
0 answers
Smooth downscaled Bitmap drawn on canvas
I want to display on my watchface an image retrieved by my mobile from an api. The size is fixed. For that I use ion and I downscale the image so it fits on the watchface. Then, I send it to the watch using the DataApi.
The problem is that the image…

Kapouter
- 147
- 10
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
0 answers
Android - Setting wallpaper using Ion library
I'm using Ion library for loading image into Imageview.
Ion.with(this)
.load(imageURL)
.intoImageView(imageview);
I want to set loaded image in wallpaper via Intent
this code :
Uri bmpUri = getLocalBitmapUri(imageview);
Intent emailIntent =…

hamedjj
- 658
- 6
- 20
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
loading image into android imageView with ion returns a blurry result
I'm trying to load an image from filesystem into an imageView with the ion library.
When I'm using the following code:
Ion.with(imageView)
.placeholder(R.drawable.placeholder_image)
.error(R.drawable.error_image)
.load(uri);
it (sometimes) results…

c7n
- 1,131
- 16
- 29
1
vote
1 answer
Transparent image(gif) has black background in ViewPager
I have fragment which has ViewPager:

Alex
- 21
- 1
- 3
1
vote
0 answers
Android Image Upload With Jax-rs Restful Service
I have jax-rs restful file upload service.
My Upload service code :
import java.io.File;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import…

onder
- 795
- 3
- 14
- 32
1
vote
2 answers
How to post multiple image files using ion library?
I am using this code to upload single image file on server.
But i need to upload multiple 'n' number of files at once
Ion.with(MainActivity.this)
.load(Constant.UPLOAD_IMG)
.setMultipartFile("UploadForm[imageFiles]",…

VISH
- 31
- 7
1
vote
1 answer
How to use the ion library in Android?
I am using the ion library to download the json object response from php web services.
I am using it this way :
Ion.with(getActivity())
.load("http://amd.com/loginService.php")
.progressBar(progressBar).progress(new…

pana doll
- 29
- 1
- 2
- 6
1
vote
0 answers
First authenticated request to server always fails
When trying to access a server that's secured with basic authentication, my first request always fails, but the second succeeds with the same credentials.
Here is the relevant method:
// username and password are entered by the user, the serviceurl…

germi
- 4,628
- 1
- 21
- 38
1
vote
1 answer
How to handle no Internet connection with Ion (android library)?
I'm using the Ion Library (Android Asynchronous Networking and Image Loading) on Android. The typical code to do a generic HTTP petition is similar to this:
Ion.with(context)
.load("http://example.com/thing.json")
.asJsonObject()
.setCallback(new…

webo80
- 3,365
- 5
- 35
- 52
1
vote
1 answer
issue with using Ion android networking library
I am working on android web application.
When I am calling web service using simple HttpPost method.
where url is
http://xxx.xx.xxx.xxx/api/UploadFile/InsertFolder?userID=2039&folderName=issue&parentFolder=0
Using simple http
String url =…

Vijay Vankhede
- 3,018
- 1
- 26
- 46