Daniel Talks Code
Daniel Talks Code
  • Видео 15
  • Просмотров 15 648
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.
Просмотров: 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...

Комментарии

  • @andrew7324
    @andrew7324 25 дней назад

    Super, super helpful and really easy to follow.

  • @benakin9172
    @benakin9172 Месяц назад

    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!!

    • @danieltalkscode
      @danieltalkscode Месяц назад

      Thank you for the kind words! Glad the video was helpful 🙂

  • @unmedicated_insomnia
    @unmedicated_insomnia Месяц назад

    Thank you for the video. Please make more android videos.

  • @MrACrazyHobo
    @MrACrazyHobo 2 месяца назад

    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!

  • @MrACrazyHobo
    @MrACrazyHobo 2 месяца назад

    Thank you so much for using modern android technologies (ie jetpack compose)

  • @cristiancelis3410
    @cristiancelis3410 2 месяца назад

    Is it basically the same to do it with XML as with Jetpack Compose?

    • @danieltalkscode
      @danieltalkscode 2 месяца назад

      In regards to Retrofit yes, absolutely! The setup is the same 🙂

  • @jhandel9292
    @jhandel9292 2 месяца назад

    Great code..neat and clean...pleae update the github

  • @yusufhandal9758
    @yusufhandal9758 3 месяца назад

    please Daniel the GitHub,very well explained

  • @scottbiggs8894
    @scottbiggs8894 3 месяца назад

    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?

    • @rodrigogarcia3904
      @rodrigogarcia3904 3 месяца назад

      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

  • @rubenomaraguero1
    @rubenomaraguero1 4 месяца назад

    these videos help me a lot!

  • @2batyanya
    @2batyanya 5 месяцев назад

    Amazing stuff! Keep going!

  • @ulianasteblii4229
    @ulianasteblii4229 6 месяцев назад

    Very good explained introduction! Do you have a course on UI testing with espresso?

    • @danieltalkscode
      @danieltalkscode 6 месяцев назад

      Thank you so much! I currently don't have a course on Espresso but will consider making one 🙂

    • @pzpalasti
      @pzpalasti Месяц назад

      @@danieltalkscode Please "consider" it strongly 🙏

  • @arjinkavalci172
    @arjinkavalci172 6 месяцев назад

    Do we need to authorize first, if we want to make PUT operation?

    • @danieltalkscode
      @danieltalkscode 6 месяцев назад

      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.

    • @arjinkavalci172
      @arjinkavalci172 6 месяцев назад

      @@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?

    • @danieltalkscode
      @danieltalkscode 6 месяцев назад

      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.

    • @arjinkavalci172
      @arjinkavalci172 6 месяцев назад

      @@danieltalkscode thank you for help, I can handle it now 🙏🏻

  • @giapxuan4208
    @giapxuan4208 7 месяцев назад

    Nice. Thanks for all sir

  • @danielsgrunge
    @danielsgrunge 7 месяцев назад

    Thank you so much fellow Daniel 😅

  • @kevplays9879
    @kevplays9879 7 месяцев назад

    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!

  • @MatchLine-n1s
    @MatchLine-n1s 7 месяцев назад

    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]

  • @MateusBauer-xk2wu
    @MateusBauer-xk2wu 7 месяцев назад

    Great video bro

  • @excalibur8147
    @excalibur8147 7 месяцев назад

    "Edit file templates" not appearing for me!

    • @danieltalkscode
      @danieltalkscode 6 месяцев назад

      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 🙂

  • @Utubewonderful
    @Utubewonderful 7 месяцев назад

    Can i join your course if you having anything?

  • @pauldoolittle5745
    @pauldoolittle5745 8 месяцев назад

    Just saw your presentation - I was hoping it would be in Compose! Thanks for your other You Tube videos!

    • @danieltalkscode
      @danieltalkscode 8 месяцев назад

      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.

  • @fixitman5453
    @fixitman5453 8 месяцев назад

    EXACTLY what I was looking for! Thank you!

  • @DanielBernens
    @DanielBernens 8 месяцев назад

    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!

  • @shalenmathew
    @shalenmathew 9 месяцев назад

    Can u make a video on app using multi-module architecture which developers can add in resume?

  • @shalenmathew
    @shalenmathew 9 месяцев назад

    Nice video on unit testing... Great explanation

  • @mehmetpeker9047
    @mehmetpeker9047 9 месяцев назад

    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?

    • @danieltalkscode
      @danieltalkscode 9 месяцев назад

      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!

    • @mehmetpeker9047
      @mehmetpeker9047 9 месяцев назад

      @@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.

  • @thanakornsrisuwan2498
    @thanakornsrisuwan2498 9 месяцев назад

    Hello Daniel, Can you make tutorial from Rapid Api Please 🙏

  • @jamaal1282
    @jamaal1282 11 месяцев назад

    Hi could you add Unit Tests and espresso tests to the to do app please?

  • @jamaal1282
    @jamaal1282 11 месяцев назад

    Hi could you add Unit tests and espresso tests to this app and make a video for it? Thanks

  • @vengateshm2122
    @vengateshm2122 11 месяцев назад

    Thats a cool example.

  • @khabbazz89
    @khabbazz89 Год назад

    waitting part2🎉😊

  • @tede9921
    @tede9921 Год назад

    nice tutorial, I like the calm/chill approach to your lesson. Looking forward to the next video.

  • @ahmadxrizvi
    @ahmadxrizvi Год назад

    Great video can you make one on Couroutines please?

  • @atilailhanyatagan2388
    @atilailhanyatagan2388 Год назад

    Lets goo {fireEmoji}

  • @oselcukyatagan
    @oselcukyatagan Год назад

    Baby wake up new daniel video dropped

  • @lucatae9599
    @lucatae9599 Год назад

    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?

    • @danieltalkscode
      @danieltalkscode Год назад

      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.