A Complete Image Uploader Android App Tutorial using Java & MVVM Part 1
In this video we're implementing a native Android app that uploads an image to the server and fetch all uploaded images from the server and display them in a list. we've a backend app implemented in nodeJS and running on a localhost that provides 2 APIs one to upload image and the other to get all images (this app is not covered in our tutorial but you can find a download link below). In Android app we use retrofit library to make the network calls to the APIs and we use the MVVM design pattern for app architecture.
Download the backend app here : https://github.com/KarenTechnologies/file-upload-backend
To run the backend app on your machine you need to download the following if you don't have them :
NodeJS : https://nodejs.org/en/download/
Visual Studio Code : https://code.visualstudio.com/Download
To test the APIs you need to install Postman : https://www.postman.com/downloads/
To test the Android app you must use an Android emulator
Find below the dependencies you need to add in build.gradle in your Android project :
implementation 'androidx.recyclerview:recyclerview:1.1.0'
def lifecycle_version = "2.2.0"
// ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
// LiveData
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
// Lifecycles only (without ViewModel or LiveData)
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
// Saved state module for ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
// Annotation processor
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
// alternately - if using Java8, use the following instead of lifecycle-compiler
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation 'com.google.android.material:material:1.2.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
Like our Facebook page : https://www.facebook.com/karentechnologies
Join our Facebook software engineers community : https://www.facebook.com/groups/154102679778025
Download our apps on Google Play Store : https://play.google.com/store/apps/developer?id=Karen+Technologies
And don't forget to like, share and subscribe to our channel for more interesting videos to come.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «A Complete Image Uploader Android App Tutorial using Java & MVVM Part 1», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.