Questions tagged [android-ion]

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

179 questions
0
votes
2 answers

how to handle multiple request's response in ION and Volley

i am working with instagram API in that i have use ion lib for API request my question is how to handle multiple request's response using my code like this public class UserProfileActivity extends AppCompatActivity implements FutureCallback { …
MilapTank
  • 9,988
  • 7
  • 38
  • 53
0
votes
2 answers

ListView with 2 TextViews

i am trying to post a certain message per item with 2 Textviews, however the ListView on accepts 1 adapter and shows the data given by that adapter the Screenshot shows that the data from the database has been retrieved and put in de ListView only…
R.Stevens
  • 115
  • 2
  • 12
0
votes
1 answer

Ion POST as url parameters and not JSON body Android

I want to POST to my server API using parameters instead of JSON body. I can implement this: JsonObject json = new JsonObject(); json.addProperty("u_id", "XXX"); json.addProperty("emp_id", "XXX"); …
Abhishek Dey
  • 1,601
  • 1
  • 15
  • 38
0
votes
1 answer

how Post Array Data using Android ion library?

i'm using Ion library for posting data on server database in string name/value pairs and getting JSON response. Say you have a table 'A' in Database with Attributes 'x' and 'y' (say varchars), so you can post a record in table like this : …
Adeel Ahmad
  • 990
  • 8
  • 22
0
votes
1 answer

Passing Array of Strings to another activity to use with ion

I have ListView and i uses ion library to load images in he rows of it, When i tap on any row i take the data on the row like TextView and display it in activity using Intent Sender Activity // Keys public static String TITLE = "title"; public…
Mohamed
  • 656
  • 9
  • 28
0
votes
0 answers

Android Ion - load image (gif) inside RecyclerView.Adapter; OutOfMemoryError

Im using Ion library to load a set of gifs inside a RecyclerView - one Gif per row. Im using the following code to load the gif: @Override public void onBindViewHolder(MyViewHolder vh, int i) { MyObject myObj = data.get(i); …
Bugdr0id
  • 2,962
  • 6
  • 35
  • 59
0
votes
1 answer

Android gallery scrolling issue

When image gallery is wider than screen and I scroll it - images is re-loading all the time. public class ImageAdapter extends BaseAdapter { ..... public View getView(int position, View convertView, ViewGroup parent) { ViewHolder…
Alex
  • 21
  • 1
  • 3
0
votes
1 answer

Android Ion GET Request - Unknown uri scheme

I am developing an API locally using Laravel 5. I have been trying to get an android app I'm also working on to digest a very basic bit of test JSON. I'm using the Android networking library Ion and my code is as follows: Ion.with(this) …
user2014175
  • 169
  • 2
  • 4
  • 10
0
votes
2 answers

Downloading - get a callback when received all the request headers

I use ion library for downloading files in my app. I want to read the response headers, check a particular header and either cancel or continue the download. Of course I can execute the HEAD query, check the header, and then execute the GET query.…
ilyamuromets
  • 403
  • 1
  • 7
  • 18
0
votes
1 answer

Ion w/ Cloudflare free SSL (with SNI) fails with

I'm running into a bug in Ion that koush (the lead dev) thinks may be related to CloudFlare's use of SNI. The bug was reported here: https://github.com/koush/ion/issues/559 I'm looking for a workaround that can deal with CloudFlare Free SSL…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
0
votes
2 answers

Ion koush library

I'm trying to save image from url to a new File with ion library. But nothing happens. Can anybody help me with it? Ion.with(mContext) .load("someUrl") .write(new File(mContext.getCacheDir(), "123.jpg"));
d0pestar
  • 565
  • 1
  • 5
  • 10
0
votes
0 answers

ListView get stuck when loading remote image in imageView

In an application for Android TV, i have a vertical ListView showing a remote image in each cell. Scrolling down the list with the remote control keys this is suppose to show the next element, but it get stuck, if i go back, up, a couple of item…
jalone
  • 1,953
  • 4
  • 27
  • 46
0
votes
1 answer

Any way to hook onto every Ion request on a global level?

I'm using the Ion async HTTP library for Android and I'd like to do some custom logging. What would be ideal was to hook onto every reqest start and end in order to get the total request time and some other meta data like HTTP response code and URL.…
Nilzor
  • 18,082
  • 22
  • 100
  • 167
0
votes
0 answers

Ion - Images failing to load into recyclerview

I have been pulling my hair out over this bug as it isn't exactly reproducible. I have a custom recycler adapter which loads values from a database. It calls a network helper class to build a URL and load an image using Ion. This bug doesn't appear…
fsdhuio
  • 1
  • 4
0
votes
1 answer

Display a scrollable image from a url in android studio

I'm trying to create an activity that display an image that is obtained from an url. I want the width of the image to adapt the screen but the height of the image can be longer than the screen so that the image becomes scrollable (vertically).…
Akou
  • 1
  • 3