Android Retrofit - Retrofit Upload | Beginner Simple Example

Android Retrofit - Retrofit Upload | Beginner Simple Example

Ryudith Tutorial

54 года назад

218 Просмотров

Android Retrofit - Retrofit Upload | Beginner Simple Example

This video aim for beginner who search for simple example while they learn Android programming. The history to make this video is when my self difficult to find simple example to understand the concept what I want to learn. Usually I find complicate example, maybe because author the other example want to make their example interesting.

In this example I show to use Retrofit to upload file on Android and use local server using XAMPP and simple PHP script, I hope this video can help you with your journey in Android development. :)

If you have some problems or difficulties or have some other questions then you can ask me in the comment bellow. I will try answer your questions. :)

Support me on https://ko-fi.com/iryudith

Contents :
0:00 Intro
0:36 Retrofit upload file dependencies
1:11 Set internet permission and clear text traffic
1:26 Create / copy RetrofitHelper class
1:59 Create package to manage file, response object mapping class and URL mapping interface
3:47 The XAMPP server and PHP script to handle upload file
4:40 Compose view and code in main activity
7:26 Android file chooser / pick function
12:08 Create helper function in main activity to get info and help process file before upload
14:14 Write code to process and run upload file
17:01 Test the application
17:48 Create new activity to show data from response, compose view and write the code
21:30 Create helper function to download image for the ImageView and show it to layout
24:21 Outro


Basic Retrofit :
https://youtu.be/ymREq5ScoMk


Retrofit POST Method:
https://youtu.be/pfBfVgZXqhM


Example ZIP Code :
https://github.com/ryudith/RetrofitUpload


Retrofit documentation :
https://square.github.io/retrofit/


#RYUDITHTUTORIAL

Тэги:

#ryudith #ryudith_tutorial #tutorial #programming #install #android_tutorial_for_beginners #android_tutorial_kotlin #android_tutorial #android_beginners_guide #android_studio_tutorial #retrofit_android_tutorial #retrofit_kotlin #retrofit_android #retrofit_rest_api_android #retrofit_post_kotlin #post_json_data_using_retrofit_android #retrofit_upload_file_android #retrofit_upload_image #retrofit_file_upload_example_android
Ссылки и html тэги не поддерживаются


Комментарии: