Android Kotlin YouTube: Pass Data Between Activity through Intent (Ep 5)

preview_player
Показать описание
For Android applications that have multiple pages, we have to be able to pass data between each page. In today's lesson, I go over how to use our Intent object to pass strings and integers around. This is a very important aspect of android development so hopefully you find it helpful. Enjoy.

Course Detail JSON Endpoint:

Intermediate Training Core Data

Instagram Firebase Course

Facebook Group

iOS Basic Training Course

Completed Source Code

Рекомендации по теме
Комментарии
Автор

Well I downloaded the video and watched it and then i came back to youtube to your channel to put this comment. I never seen such quality youtube content about programming you are the best. world is beautiful because of the people like you, keep up the good work.People like you must win this world, thank you very much for this video.

yasithaherath
Автор

How can the onClickListener simply return the number of the clicked cell to the MainActivity instead of opening a new activity?

diymicha
Автор

I love learning from yours all videos, very helpful. Thanks bro!!

GamerFamilyLove
Автор

Thank you for Kotlin course. You are great person. Hope you do well.

ДенисС-щш
Автор

holder?.video = video in the main adapter throws an error that says "val cannot be reassigned" please whats the work around?

samuelegwurube
Автор

Thank you for another excellent Kotlin tutorial. Please make more!

venusianoctopus
Автор

Thank you very much for this revelation Master Voong. Understanding the concept of Intent has changed the way I create new Activities.

bobmann
Автор

Thank you very much for these awesome tutorials. I am learning a lot.

marcarch
Автор

Hi Sir.. I need you help in the video for Recycler View data Filtering.. searview or editText. Thanks

ecodisplay
Автор

If I click back from CourseLessonActivity to CourseDetailActivity my app crashed because videoId is null so, JSON request is not validating the data. How to address this problem?

pauljoshiva
Автор

You're reading my mind, thanks for the vid!

venaseph
Автор

Why is it forcing me to import when I try to declare var video: Video? = null in the CustomViewHolder parameters?
The code acts as if it doesn't know about the Video type and says it's an unresolved reference.

rvso
Автор

How could it be done if the channel for example did not have videos (it is assumed that if it is in the main_activity it must have ... but suppose it does not have ...) so that it not only shows a screen without anything ...?

That is to say, the recyclerView would be empty ... as it could be done to show a text that says: "there are no videos available in this channel"?

valeria-
Автор

Great tutorial!!!!,
My suggestion is you use the Interface to come back to MainActivity with the selectedRow and from MainActivity you push the CourseDetailActivity.

anirudhamahale
Автор

Thank you for tutorial. Please make more!

forwork
Автор

When i am trying to pass video.id in intent, it is sending null value. Why it is doing like that

muhammadumairilyas
Автор

Thank you soooo much for this video.. saved my day

khaledmrocketmail
Автор

What is the JSON formatter plug-in you use in Chrome? The one I found does not work as well as yours lol

ConnorXCX
Автор

If your app will expanded it will very very hard to find out connections between activities, is in it? I think best solution to pass data between activities is RxJava+Dependency Injection. Maybe I wrong. But most cases I use this way.

JamesBond-mqpd
Автор

Good day, Brian Voong. I've learned so many on your tutorials. May I ask how do you create your own API? Tools you used like that. Is that when node.js comes in?

HiImMatthewN