Questions tagged [ion-koush]

Ion is a networking library for Android by Koushik Dutta.

Ion

Ion is a networking library for Android by Koushik Dutta.

Features

Usage

Usage and more information can be found in the original repository: https://github.com/koush/ion

39 questions
1
vote
1 answer

How do I use a library with my Android project using Gradle?

I'm only just starting with Android development so I'm sure this is incredibly basic and a dumb question, but I'm getting the following error when I try and include a library to use in my code with Gradle: Gradle 'MyApp' project refresh failed: You…
BT643
  • 3,495
  • 5
  • 34
  • 55
0
votes
1 answer

Getting error when use Android Koush Ion to call Laravel route

I'm trying to learn android development, I'm using Android Studio. I need to access an external database (to insert, get itens ... CRUD) and I've found a tutorial that tells me to use koush ion, from Android using Ion, I call a web page that is a…
Doug
  • 11
  • 4
0
votes
0 answers

PDF files not uploading to my server on some devices

In my App, The user uploads images(converted to PDF) to our server, and the issue I am having is that the uploading does not work for some users, On wifi or mobile data, The app functions perfectly on my device, several emulators, and several other…
Ruben Meiring
  • 333
  • 2
  • 21
0
votes
0 answers

Why does the image from the camera returns as thumbnail?

In my app I use Koush ION to upload images to a server, Now my problem is the images uploaded with the camera are only Thumbnails and not the full Image ps. The Images taken via the gallery are the full image In the code I provided I removed ALL the…
Ruben Meiring
  • 333
  • 2
  • 21
0
votes
1 answer

My App Is not retrieving a response from the server on upload

I have an app to upload Images to my company server I am Using koush Ion for the upload Now the Issue is The Upload Itself Works the images are being uploaded to the server BUT I don't get a popup response from the server saying Upload Success…
Ruben Meiring
  • 333
  • 2
  • 21
0
votes
0 answers

How to display JSON data fetched from url in ListView in Android using ION Library

I have fetched JSON data from url using ION library, but I am facing problem in displaying it in a listView in android studio. I debug it in this way: JSONObject jsonObject = new JSONObject(String.valueOf(result)); JSONArray jsonArray =…
Sam
  • 11
  • 1
  • 5
0
votes
1 answer

Android: Get file path while uploading image file as multi-part file using Ion Koush library

I am picking an image via the following intent: Intent getIntent = new Intent(Intent.ACTION_GET_CONTENT); getIntent.setType("image/*"); Intent pickIntent = new Intent(Intent.ACTION_PICK,…
Michael Hathi
  • 1,933
  • 2
  • 17
  • 27
0
votes
1 answer

How send key value in addMultipartParts Ion Koush library?

I'm using the Ion Koush Library in my android project, it is working fine but I don't know how to specify the key request when I use the addMultipartParts function. My code: Ion.with(this) .load("POST", UPLOADIMAGESTG_URL) .setTimeout(5000) …
Wavrik
  • 61
  • 9
0
votes
1 answer

parsing JSON using "koush/ion" not working?

*the JsonObject json is empty, but result in onCompleted function works fine and correctly returns json data but I can't use it outside the oncompleted function * final JsonObject json = new JsonObject(); Ion.with(MainActivity.this) …
Muslem Omar
  • 1,021
  • 12
  • 12
0
votes
1 answer

Throw exception if response code isn't 20x

I'm using Koush Ion library, and I want to know if there is an option to throw an exception if the response code is not 20x (like if it's 400, 401 etc).
Shalev Moyal
  • 644
  • 5
  • 12
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
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
3 answers

Android Studio Gradle Error:Execution failed for task ':app:dexDebug' using Ion koush lib

I want to use the Ion Lib from koush in Android Studio. But after I synchronize the libraries in my gradle file and try to run the application a strange error occurs. My thought is that the Ion Lib does not accept the other libraries in my gradle…
0
votes
3 answers

Android Model for JSON parsing shows ClassCastException: com.google.gson.JsonObject can not be casted to com.google.gson.JsonArray

I am fairly new to Android development and I am creating an app that requires me to consume the Zomato Rest API. I am using the Koush ION library https://github.com/koush/ion for sending the http request and receiving a response. For using this…
0
votes
1 answer

How to correctly send multiple files and params with Koush / Ion

I'm using Koush / Ion library. I'm trying to send a request with regular parameters and files, like an html multipart form, but seems that don't send anything. Are this the correct way? or i'm doing it a bit weird? When the request goes with files…
emmgfx
  • 573
  • 7
  • 17