- Видео 15
- Просмотров 15 648
Daniel Talks Code
США
Добавлен 28 сен 2022
Videos about Android Development and building fun things with code 👨🏻💻✨
First Live Stream! Workout App - P1
Come build an app with me! Today I'll create a workout tracker using Views, Jetpack Navigation Component, and RecyclerView and I invite you to join in.
Consider Subscribing 🤩
ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg
Github Repository:
github.com/danpgomez/LevelUpLifts
-----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Consider Subscribing 🤩
ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg
Github Repository:
github.com/danpgomez/LevelUpLifts
-----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Просмотров: 144
Видео
Quick start guide to writing Espresso UI tests on Android - Android Testing Part 4
Просмотров 2,2 тыс.9 месяцев назад
Continuing our series on Android automated testing, in this episode we focus on how to add integration tests using Espresso. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Github Repository: github.com/danpgomez/ImportantTodos The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 ...
How to write Unit Tests for the Database Access Object on Android - Android Testing Part 3
Просмотров 1739 месяцев назад
Continuing our series on Android automated testing, in this episode we focus on how to add unit tests for the DAO (Data Access Object) which is an interface we create for working with Room databases. This test also deals with LiveData and Coroutines, and we continue making use of the Truth library for assertions, ArchCore, and the Coroutines Test library. Consider Subscribing 🤩 ruclips.net/chan...
Android Unit Testing for Beginners - Android Testing Part 2
Просмотров 5959 месяцев назад
Continuing our series on Android automated testing, in this episode we focus on how to add unit tests to a ViewModel class that uses LiveData, Coroutines, and DataBinding using MockK for mocking, the Truth library for assertions, ArchCore, and the Coroutines Test library. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Chapters: 0:00 Intro 0:24 The TodosViewModel 1:28 Depend...
Overview of Android Automated Testing - Android Testing Part 1
Просмотров 55110 месяцев назад
A brief description of some of the different types of automated tests you can use to test Android apps. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Retrofit Android Tutorial for Beginners with Kotlin
Просмотров 6 тыс.11 месяцев назад
Learn the basics of making API calls with one of the most popular HTTP clients for #android using #kotlin. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Retrofit: square.github.io/retrofit/ Moshi: github.com/square/moshi/ OKHttpInterceptor: github.com/square/okhttp/tree/master/okhttp-logging-interceptor Wizard World API: github.com/MossPiglets/WizardWorldAPI JSON to Kotlin...
Let's build an AudioConverter to learn Coroutines
Просмотров 242Год назад
A simple #kotlin project to convert audio files and practice using #coroutines. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg - Github Repository: github.com/danpgomez/AudioConverter - Coroutines: github.com/Kotlin/kotlinx.coroutines/blob/master/README.md#using-in-your-projects - Jave: mvnrepository.com/artifact/ws.schild/jave-all-deps/3.4.0
5 Useful tips to make your coding journey easier
Просмотров 158Год назад
Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Online Kotlin Playground: play.kotlinlang.org Kotlin REPL in Android Studio: www.jetbrains.com/help/idea/kotlin-repl.html Follow me on Instagram: danieltalkscode My blog: www.danieltalkscode.com/
Let's add Navigation! - ToDo App Part 3
Просмотров 284Год назад
Part 3 and the conclusion of my short series on how to build a simple to-do list app on #android. In this video we'll add DiffUtil, DataBinding, and the #jetpack Navigation Component. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg DataBinding Tutorial ruclips.net/video/Mo_S-_5jsmI/видео.html ViewModel and ViewModel Factory Tutorial ruclips.net/video/5d7U3DUxsDo/видео.html C...
Create a dynamic list! - ToDo App Part 2
Просмотров 467Год назад
Part 2 of my series on building a simple to-do list app on #android. In this video we learn how to use the RecyclerView from the #jetpack library to display the data from our database. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Chapters: 0:00 Intro 0:09 How a RecyclerView works 1:00 Adding the Dependencies 1:18 Creating the Layout File for a RV Item 3:02 Building the Ad...
A fun way to learn MVVM - ToDo App Part 1
Просмотров 981Год назад
Part 1 of a short series on how to build a simple to-do list app on Android. In this video we'll learn about the Model-View-ViewModel design pattern, begin building our app, and implement Room Database from #android #jetpack. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Chapters: 0:00 Intro 0:15 What we'll build 0:35 What is MVVM? 1:39 Start building and adding dependenci...
DataBinding Tutorial for Beginners
Просмотров 133Год назад
How to use DataBinding from #android #jetpack in an existing project step by step. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Chapters: 0:00 Intro 0:16 What is DataBinding 0:37 Enabling DataBinding 0:55 Converting XML Layout to DataBinding Layout 1:41 Adding XML Variables 2:08 Bind ViewModel to XML Layout Variable 2:45 Calling ViewModel methods from layout file 3:54 Con...
Android LiveData Tutorial for Beginners
Просмотров 620Год назад
How to add LiveData from #android #jetpack to an existing project step by step. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Chapters: 0:00 Intro 0:09 What is LiveData 0:45 Project Walkthrough 1:27 Adding Dependencies 1:39 Adding ViewModel Properties 2:54 Modifying ViewModel Methods 3:56 Updating the Fragment Android ViewModel Tutorial: ruclips.net/video/5d7U3DUxsDo/видео...
Android ViewModel and ViewModel Factory Tutorial for Beginners with Example
Просмотров 2,1 тыс.Год назад
A simple beginner-friendly walkthrough of how to implement a ViewModel and a ViewModel Factory for a #kotlin #android app. Consider Subscribing 🤩 ruclips.net/channel/UClbv-gIWvuncgfd5umYL3mg Chapters: 00:00 Intro 00:15 What is a ViewModel? 01:22 Example app walkthrough 04:36 Add dependencies 05:11 Implement first ViewModel 12:18 Implement second ViewModel 14:49 Implement ViewModelFactory GitHub...
Super, super helpful and really easy to follow.
THANK YOU. You just helped me complete a similar take home test at the last minute. Everything is clear and concise and most importantly modern so I don't have to look far back. let's go!!
Thank you for the kind words! Glad the video was helpful 🙂
Thank you for the video. Please make more android videos.
I'm running into this problem for MainActivity.kt, line 36: fun WizardData(modifier: Modifier = Modifier, viewModel: MyViewModel = viewModel()) viewModel() is highlighted in red. When I mouse over it, I see "Expression 'viewModel' of type 'MyViewModel' cannot be invoked as a function. The function 'invoke()' is not found". Are there any special imports in MainActivity that we aren't aware of? EDIT: Based on a comment below, the solution is import androidx.lifecycle.viewmodel.compose.viewModel. Thanks commentor!
Thank you so much for using modern android technologies (ie jetpack compose)
Is it basically the same to do it with XML as with Jetpack Compose?
In regards to Retrofit yes, absolutely! The setup is the same 🙂
Great code..neat and clean...pleae update the github
please Daniel the GitHub,very well explained
After following the video, I keep getting crashes when I try to run at the 12:15 mark. From the logs, it looks like there's an infinite loop happening somewhere in the retrofit code. Anyone else? And is there anyway to see the actual code so I'll know I typed (and translated when the code was old, ie build.gradle) correctly?
I was getting an error about invoking viewModel() in the MainActivity, but it fixed after manually adding the import at the top of MainActivity. import androidx.lifecycle.viewmodel.compose.viewModel
these videos help me a lot!
Amazing stuff! Keep going!
Very good explained introduction! Do you have a course on UI testing with espresso?
Thank you so much! I currently don't have a course on Espresso but will consider making one 🙂
@@danieltalkscode Please "consider" it strongly 🙏
Do we need to authorize first, if we want to make PUT operation?
Yes, typically you need to authorize to make a PUT http operation. This is because a PUT request is often used to update or replace a resource on a server, which can have significant implications for data integrity and security.
@@danieltalkscode thanks now i understand, but how can i authanticate on android side just like swagger? I heard that i should pass jwToken value as an header? Is it the correct way?
Sure! That's one of the common ways to authenticate. Save the JWT token in SharedPreferences after login, then use an OkHttp Interceptor with Retrofit to add the token to each request's header. This way, all requests will include the JWT for authentication.
@@danieltalkscode thank you for help, I can handle it now 🙏🏻
Nice. Thanks for all sir
Thank you so much fellow Daniel 😅
Thank you Daniel ☺️
I'm currently learning Espresso (with Kakao) in my job and this video was a good introduction. You explain things really well and I like how you explain the why as well. Thank you!
Thank you! That means a lot!
same way I have created ViewModel and ViewModelFactory but it is giving me error while runtime java.lang.RuntimeException: java.lang.reflect.InvocationTargetException Caused by: java.lang.NoSuchMethodException: com.wedoapps.cricketLiveLine.utils.GoogleAdsViewModel.<init> [class com.wedoapps.cricketLiveLine.utils.GoogleAdsViewModel] private lateinit var googleAdsViewModel : GoogleAdsViewModel private lateinit var googleAdsProviderFactory: GoogleAdsProviderFactory googleAdsProviderFactory = GoogleAdsProviderFactory(requireActivity()) googleAdsViewModel = ViewModelProvider(this,googleAdsProviderFactory)[GoogleAdsViewModel::class.java]
Great video bro
"Edit file templates" not appearing for me!
Hi, I'm sorry I missed your comment before. Try clicking on the root folder within your project (for example "app" folder) or nearly any other file in the file tree. With this folder or file selected click on the "File" menu at the top of the screen and then select "New > Edit File Templates". Hope that helps 🙂
Can i join your course if you having anything?
Just saw your presentation - I was hoping it would be in Compose! Thanks for your other You Tube videos!
Thank you so much for watching! I will definitely be converting the app to Compose soon. Just wanted the experience of converting from Views to Compose.
EXACTLY what I was looking for! Thank you!
Hi, I really appreciate you taking the time to make this. I'm newish to programming and extremely new to Android Studio/Kotlin, so this was very overwhelming the first time through. But I've watched it 3 times now and it's made more sense each time. I would really like to see a continuation of this, maybe something that involved some UI design. Perhaps different buttons the user could click to perform the API calls you set up? Also, I copied your code exactly and there is one single error preventing my app from running. It's in the WizardData function on MainaActivity.kt. Android Studio tells me that "expression "viewModel" of type "MyViewModel" cannot be invoked as a function. The function invoke() is not found." I have been trying to find solutions online but no luck so far. Would appreciate any suggestions you can give me. Keep up the good work with your videos! I subbed to your channel. :) Edit: Figured it out! Needed to import a second, specific ViewModel package. I was able to follow your video all the way through. Thanks again!
Can u make a video on app using multi-module architecture which developers can add in resume?
Nice video on unit testing... Great explanation
Thanks for the content, please keep the series of tests coming. One thing I don't understand, is there a chance that the tests will fail except if the sql query is faulty? Are we testing the sql command here?
Thank you for your comment and I'm glad you found the video useful 😀. In regards to your question, in this video we focus on testing the DAO which is an interface that handles the interactions with the database. Since the SQL queries themselves are encapsulated by the DAO interface and their implementation is done by Room, there's a very low chance that the test would fail due to a faulty query. This test mainly focuses on testing the functionality of the DAO itself (not the SQL commands directly) and ensuring that it returns the expected results from the inMemoryDatabase. Hope that helps!
@@danieltalkscodeThank you for the answer.There is a subject that I cannot understand about testing.There is no business logic in the DAO layer.How can it give an erroneous result.Actually, my question is about testing in general.I would be very happy if there is a video about real use-case about Android testing.Thanks for everything.
Hello Daniel, Can you make tutorial from Rapid Api Please 🙏
Hi could you add Unit Tests and espresso tests to the to do app please?
Hi could you add Unit tests and espresso tests to this app and make a video for it? Thanks
Thats a cool example.
waitting part2🎉😊
Thank you 😊
nice tutorial, I like the calm/chill approach to your lesson. Looking forward to the next video.
Thank you!
Great video can you make one on Couroutines please?
Thank you! Yes. Will work on that
Lets goo {fireEmoji}
Baby wake up new daniel video dropped
thnx for the video.. but im not able to add my factory as a parameter inside the viewModelProvider.. "None of the following functions can be called with the arguments supplied" this is what the error message is.. can you please help?
Hi Luca, how are you defining your factory? Is your ViewModel Factory implementing the ViewModelProvider.Factory interface? Also how are you creating your view model within your fragment code? You'll want to pass two arguments. The first argument is "this" which refers to the fragment you're in. The second is the factory. Let me know if this helps.