Android Tutorial #8: Pass data between activities using explicit intent and bundle object.

preview_player
Показать описание

There are a few ways you can share data between two android activities. If you want to share a primitive data type, like a simple string, you might want to consider using an intent.

Here I show you how to share data using an explicit intent and bundle java object, and also how to programmatically fill a text view of an activity layout using that passed data.

Android studio continues to impress with its predictive coding.
Рекомендации по теме
Комментарии
Автор

Simple, fast, useful and perfectly explained.
Excellent video.
I really appreciate it mate.

vincentvanwyngarden
Автор

That's exactly what I was looking for — nice and elegant solution. Thank you, keep up the good work!

DrAkyla
Автор

Awesome tutorials. Best playlist about Android in Youtube. Thanks!

cesarsc
Автор

This is a brilliant tutorial, clear and concise, thanks for your help.

Bigcocoabear
Автор

It's a good explanation, thanks a lot.
very different with other youtube tutorials that only showoff with their fast explanation and always end with errors for me. You give understandable tutorial for beginner like me. I am doing image gallery application for example home design gallery and I really need to know how to make it with android studio. Hope you can help with video tutorials

PanjitamPratama
Автор

what if its vice versa. like you called the activity2 from your main activity and is expecting a data from activity2? because what you're doing is passing it to the activity. what if you're gonna pass it back again to the source activity? thanks for the tutorials tho. really helpful! :)

arukiri
Автор

what different between just put getIntent.getStringExtra instead of using this Bundle in this tutorial? Thanks

patyue
Автор

sir can u give me the source code of this tutorial?

gally
welcome to shbcf.ru