Questions tagged [android-ion]

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

179 questions
0
votes
1 answer

Add more types in Ion Response

Using Ion by Koush, I need to make a JSON request that I cast directly into type, this way: public interface UserCallback extends FutureCallback> {} Builders.Any.B builder; TypeToken userType = new TypeToken() {} void…
shaithana
  • 2,470
  • 1
  • 24
  • 37
0
votes
1 answer

Ion producing null result

I am having trouble receiving data from my API call using Ion. I am working through an Udacity tutorial that uses a bunch of boilerplate code to receive the data from the API. I wanted to go a different route - primarily to learn - and use Ion to…
Chasen Bettinger
  • 7,194
  • 2
  • 14
  • 30
0
votes
1 answer

ClassNotFoundException after adding Ion library in Android 4.4 (19)

After adding the Ion library to my project, I can't start my app in Android 4.4, everything higher works fine. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.swe.gruppe4.mockup2, PID: 3281 …
0
votes
1 answer

Querying mongoDB using the mlab data API with Ion returning the message: "Please provide a valid API key"

I'm trying to do a simple query on my mongoDB database using the mlab data API. Making a GET request using the browser works fine, but when I try to make the same request using Ion, it keeps returning the message: "Please provide a valid API…
deewhy
  • 31
  • 1
  • 2
0
votes
1 answer

Bing web search api v5.0 returns "Resource not found" from Android app

I queried the Bing web search api with the "food" word. This is the code: Ion.with(this) .load("https://api.cognitive.microsoft.com/bing/v5.0/search") .setHeader("Ocp-Apim-Subscription-Key", "xxxxxxxxxxxxxxxxxxxx") …
Elnatan Derech
  • 987
  • 2
  • 12
  • 18
0
votes
1 answer

ION library print Request that is sent to PHP server

I am using ION library for my project. Now I am facing some problem in sending the parameters to the server. The parameters are not being sent to the server sometime. I wanted to know whether my parameters are being sent to my server properly How do…
karthik kolanji
  • 2,044
  • 5
  • 20
  • 56
0
votes
2 answers

Display json data in listview

I am trying to display data fetched from an api. I can display the data as a textview andin a log but I cannot get it to display as a list. I am getting an error "Cannot resolve constructor " Error:(72, 68) error: no suitable constructor found for…
noname
  • 305
  • 4
  • 15
0
votes
1 answer

Loading data into a Url while changing an Item in a spinner Asynchronously to load JSON

This is the Array of the two spinners + their declarations in the onCreate am using. String semester_list [] = {"1","2","3"}; String acad_yr []= {"1","2","3","4","5","6"}; semester = (Spinner)findViewById(R.id.spinner_semester); …
user6827252
0
votes
0 answers

Setting json data to a TextView Using Ion library

I am trying to look for a way of setting data of each object in json to a different TextView , but i don't know how to use the result of Json in the onCompleted method. Below is my JSON sample i want to retrieve. [ { "progname": "BACHELOR OF…
user6827252
0
votes
1 answer

The requested resource does not support http method 'POST'

I'm trying to send an HTTP post request from Android using Ion framework to ASP.NET WebAPI v2. Here is what I've done so far. In ASP.NET WebAPI: [System.Web.Http.HttpPost] public IHttpActionResult SubmitPosition([FromBody] string foo, string bar) { …
s.k.paul
  • 7,099
  • 28
  • 93
  • 168
0
votes
2 answers

android ion, ioctl of ION_IOC_IMPORT return <0, errno = 9

I have written an example of android ion usage: The father process creates a pipe, then opens "/dev/ion" device, ioctl of ION_IOC_ALLOC, ioctl of ION_IOC_MAP and mmap, and finally I delivered the fd returned by ION_IOC_MAP and the length to the…
Ben Zhu
  • 1
  • 3
0
votes
1 answer

Android using Ion to upload file

In my webservice i have simple upload function which tested by cUrl and its work fine without any problem, and I can upload file by cUrl successfully, now I want to upload file from android with Ion library, but i get this error: unable to parse…
DolDurma
  • 15,753
  • 51
  • 198
  • 377
0
votes
0 answers

Does Ion Android library supports hindi text?

I am using Ion library and sending data android app to server. I pasted hindi font in story editview but while receiving at server, text changed in symbols. Android code: Ion.with(Createfunction.this) .load(url) …
Meeti Sharma
  • 1,072
  • 1
  • 7
  • 13
0
votes
0 answers

Ion deep zoom with bitmap

I've tried to download a bitmap using Ion. However, zooming the image a lot I see that the quality is lower than expected. How can I download it without any quality loss using Ion? I've tried deep zoom and it works if I put the image directly with…
Filnik
  • 352
  • 1
  • 12
  • 33
0
votes
0 answers

Ion library null pointer exception while getting array as result from server

I am using ion library for getting data from server and storing that data in Ralm. final Context context = view.getContext(); Ion.with(context) .load(TeamConstants.TEAM_URL + "team-masters") .asJsonArray() …
Manpreet
  • 31
  • 9