ion-koush

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

蹲街弑〆低调 提交于 2019-12-25 06:35:18
问题 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 file. Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE :app

Android koush/ion lib unable to post and receive JSON response

假装没事ソ 提交于 2019-12-20 01:57:12
问题 I am using ION to GET/POST for REST and also to get Images into ListView but I am unable to use POST method and receive response as a JSON The ION version that I am using is 1.3.7. Tested on emulator and also on real devices 4.1.1, 4.2.2 and 4.4 ION Link on gitHub This code is called on a button click to post to the server after the validations are successful. This is inside support fragment v4:20 defined in gradle compile 'com.android.support:support-v4:20.+' /////////////////// Ion.with

Upload image with Ion android library

一个人想着一个人 提交于 2019-12-11 06:56:22
问题 I've got an app that is connected to a server through a restful API, but I need to upload an image to the server and I'm using Ion library, is there anyway to upload this image to the server? 回答1: You can use .setMultipartParameter("key","value") to upload image along with other text values as well.. If you need to upload many images, You can use the "Part" class to add multiple images. ArrayList<Part> fileParts = new ArrayList<>(); for (int i = 0; i < myImages.size(); i++) { Part part = new

Uploading multipart file with Koush Ion library

有些话、适合烂在心里 提交于 2019-11-30 15:20:35
In my last app I'm going to use Koush Ion library. It's so handy but i have a problem with uploading file to my rest server. note: My server response to success upload Process is 1 My code i like this: public class MainActivity extends Activity { Button upload, login; TextView uploadCount; ProgressBar progressBar; String token, FilePath; Future<String> uploading; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); upload = (Button) findViewById(R.id.upload); uploadCount = (TextView) findViewById(R.id.upload

Uploading multipart file with Koush Ion library

喜夏-厌秋 提交于 2019-11-29 22:32:22
问题 In my last app I'm going to use Koush Ion library. It's so handy but i have a problem with uploading file to my rest server. note: My server response to success upload Process is 1 My code i like this: public class MainActivity extends Activity { Button upload, login; TextView uploadCount; ProgressBar progressBar; String token, FilePath; Future<String> uploading; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity