Android Developer Live Q&A 26 – MVP, RecyclerViews, MVVM, Clean Architecture, Context

Welcome to my Q&A. It’s Live, and it works best when people asks questions :). I don’t have all the answers, but I can often point you in the right direction.

A Dropout’s Guide to Designing and Building Android Apps (Beginner Android ebook):
http://wiseassblog.com/products/

Slack Channel:
https://join.slack.com/t/wiseass/shared_invite/enQtMjY3MTcyOTExMjY3LWUxZGM2ZTBmMjI3NWI3YTUwMTFjNjI0MDc1ZWI3MTllYzFmNjQyNjc3MWI2MGYyODJkN2RmMjE4OGQ3MTJiNjA

Repos:
https://github.com/BracketCove/RoomDemo2017

https://github.com/BracketCove/PosTrainer

https://github.com/BracketCove/RecyclerViewTutorial2017

https://github.com/BracketCove/Calculator

If you appreciate what I’m doing here, check out these options to support me over Social Media:

G+: https://plus.google.com/+wiseass

Facebook: https://www.facebook.com/wiseassblog/

Twitter: https://twitter.com/wiseass301

Patreon: https://www.patreon.com/bePatron?u=5114325

Samsung’s Android Oreo 8.0 Beta!

We look at Samsung’s version of Android Oreo 8.0 and some of the new goodies it has to offer the S8 and S8 plus!

Social media:

Email: beamtupyt@gmail.com

I’m on Snapchat more than -anything-: deodex1

I like to keep up with, but am not a slave to Facebook: https://www.facebook.com/search/top/?q=beamtup

I occasionally post to Instagram (“The Gram”): beamtup

Twitter…I don’t care for Twitter. But it’s: @beamtup if you must know.

Googol plus: https://plus.google.com/113916811654887265403
(I’ve found this to be far more engaging when browsing on a desktop than on a handheld device, strangely.)

Channel: Beamtup
Published: 2017-11-03 07:33:19
Duration: 6M37S
Views: 19342
Likes: 420
Favorites: 0

How Much Android Developer Earns From Free Apps? | ThingsToKnow

How Much Android Developers Make From Free Apps ? What are the factors for Android Apps Earning? Why are Active Downloads so much important for Android App Earning?
Channel: ThingsToKnow
Published: 2017-04-10 12:39:00
Duration: 6M51S
Views: 11859
Likes: 179
Favorites: 0

Let’s Build a Room Database App | Room, ViewModel, LiveData, Dagger 2, MVVM Architecture

Please Note: This is meant to be an Intermediate Tutorial, which follows my Beginner Let’s build a RecyclerView App Tutorial. All of the stuff we copy/paste, and how to build Material Design Layouts, is in that tutorial:
https://www.youtube.com/watch?v=RfTJ2SePYaU&list=PLEVlop6sMHCohK2XryPUqhglysv1Xxakt

Welcome to my Tutorial on Android Architecture Components, including Room Persistence Library, ViewModel, and LiveData. In this tutorial I’ve done my best to emply the following concepts in the creation of a simple Note-Taking Application:
– Model-View-ViewModel Architecture for the Front End/UI/Presentation Layer
– ViewModel from A.A.C.
– LiveData from A.A.C.

– Repository to Abstract Room’s API
– A Simplified Dagger 2 setup (we don’t discuss this much as D2 warrants some fairly length explanation I don’t have time for here)

The Code in this tutorial is based off of my 2017 RecyclerView App Tutorial. If you are a Beginner, or you are curious about building the View itself, you’ll want to get through that tutorial first. This is an intermediate tutorial, and I don’t stop to explain the basics of Software Architecture or the Android Platform here so much.

============
Repositories
============
Main Project Repository (finished Demo for reference/copy paste)
https://github.com/BracketCove/RoomDemo2017

Starting Point, based on RecyclerView Tutorial’s UI:
https://github.com/BracketCove/RoomDemo2017/tree/caf99ee9a29a951e9f77ba487323c1a78e94cb19

Android Architecture Components Samples (Please check these out, I mostly learned Room from them!)
https://github.com/googlesamples/android-architecture-components

Martin Fowler on MVVM (a.k.a. Presentation Model a.k.a. Application Model); gives some history and insight on the pattern:
https://martinfowler.com/eaaDev/PresentationModel.html

================
Timestamps below:
================
If at any point in this Video I come off as being disrespectful (particularly when I’m complaining about MVVM and stuff like that), please forgive me. Part of my content is sharing my expereince as a learner, and it’s never my intention to offend anyone.

0:00 Introduction

3:00 Starting point for Source Code

3:50 Gradle and Res (Mostly copy Paste from the finished Repo here)

9:42 Project/Package Structure

12:05 Project Architecture Overview: Model-View-ViewModel

19:40 Room Entities

22:20 Room Data Access Object (DAO)

33:40 Room Database

37:28 LiveData (Android Architecture Components)

43:27 ListItemRepository (Repository to Abstract Room from ViewModels)

49:52 Activities and Views (This is mostly Copy and Paste, check old tutorial for help with building Layouts)

57:37 A simple Dagger 2 Set Up

1:07:28 ViewModel (Android Architecture Components)

1:17:33 ViewModelProvider.Factory (How to pass arguments to ViewModel Constructor)

1:24:00 Wiring up Views, ViewModels, and Observing the Data

1:34:45 Debugging and Demo

1:39:18 Working Demo!!!

1:41:00 Outro, Thanks, and Future Plans

Channel: wiseAss
Published: 2017-08-30 16:08:10
Duration: 1H44M16S
Views: 3755
Likes: 88
Favorites: 0

Let’s Build a Room Database App Part 1 | Android Architecture Components Tutorial

Curious about how to build an App which uses Room Persistence Library, ViewModel, and LiveData, within the Context of a Model-View-ViewModel style Software Architecture?

In this Video, I outline the project we’ll be building in the next Video, and discuss the Architecture and APIs which we’ll use to get the job done.

Source Code:
https://github.com/BracketCove/RoomDemo2017

Social:
Github: https://github.com/BracketCove

Facebook: https://www.facebook.com/wiseassblog/

G+: https://plus.google.com/+wiseass

Twitter: https://twitter.com/wiseass301

Patreon: https://www.patreon.com/bePatron?u=5114325

Blog: http://wiseassblog.com/

Channel: wiseAss
Published: 2017-08-22 18:26:30
Duration: 10M3S
Views: 2907
Likes: 91
Favorites: 0

Beginner Android Tutorial | 2.2 (MVP) Presenter and Contract | Calculator | 2016

In this video, I walk you through building our Contract Interface class as well as working on our Presenter. Apologies if this one is hard to follow. A lot of this stuff is fairly intuitive at first, and quite difficult to explain in a simple way. Feel free to ask questions!

Project Github:
https://github.com/BracketCove/Calculator

Social:
Hit me up on Bookface:
https://www.facebook.com/wiseassblog/

G+
https://plus.google.com/+wiseass

Website:
http://wiseassblog.com/

Channel: wiseAss
Published: 2016-11-15 18:27:27
Duration: 27M15S
Views: 2135
Likes: 20
Favorites: 0

Leave a Reply

Your email address will not be published. Required fields are marked *