Sending Data to a New Activity with Intent Extras

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ส.ค. 2024
  • This video is part of a course named "SQLIte for Beginners 2019". It's free and available on my website: codingwithmitc...
    This is a continuation from another video where I show you how to detect clicks to RecyclerView list items and navigate to another activity.
    Now in this video I show you how to attach custom java objects to a bundle as intent extras. The objects can be retrieved in the new activity by accessing the intent extras.
    Remember: custom object classes must implement the Parcelable interface so they can be attached as an extra.
    ➤RecyclerView OnClickListener video:
    ↻ • RecyclerView OnClickLi...
    ➤Learn to code like me:
    ↻ codingwithmitc...
    ➤Source Code:
    ↻ goo.gl/rfufPc

ความคิดเห็น • 63

  • @Bomb4stic
    @Bomb4stic 5 ปีที่แล้ว +3

    Thank you so much Mitch, this is what I was looking for to send all the data with only one 1 line of code.
    You are just awesome man.
    Thumbs up!

  • @GauravLonkar
    @GauravLonkar 5 ปีที่แล้ว +2

    This is the first channel on TH-cam, where I clicked on the Bell icon to get notifications from this channel.
    Thank you for such great videos! I am glad that I discovered your channel.

  • @f_eyt8870
    @f_eyt8870 5 ปีที่แล้ว +4

    Hey Mitch, I want to say you, that your videos are soooooo great! You explain everything very very clearly and in a way, which I really love.😁 You dont stop when you tell something or say ähh, mhhh or other bad extras.
    Please keep going, youre the best Android Studio Video maker on TH-cam, that I know.
    If you would make youre videos in german, it would be PERFECT🤣🤔😉.

  • @codinginflow
    @codinginflow 5 ปีที่แล้ว +18

    Ah so this is how this works

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว +7

      Make sure to watch my beginners course, I think it will really help you: codingwithmitch.com/courses/sqlite-room-persistence-android/

    • @arpitkumar4525
      @arpitkumar4525 5 ปีที่แล้ว +13

      Oh! So my teacher also learns from my other teacher.

    • @greentechnology7346
      @greentechnology7346 5 ปีที่แล้ว +3

      @@arpitkumar4525 Thats how the world works. :-)

  • @humbertosilvabarros3827
    @humbertosilvabarros3827 5 ปีที่แล้ว +1

    Best 1080p60 resolution.👍 Thank you!

  • @chandannaik7652
    @chandannaik7652 5 ปีที่แล้ว +1

    Hey..you do great videos..have been following you for about a year and half now...still don't understand why your subscribers haven't substantially increased🤔

  • @tillyselak6676
    @tillyselak6676 2 ปีที่แล้ว

    Thank you man! This worked great, it really helped me a lot

  • @marcellocamara
    @marcellocamara 5 ปีที่แล้ว +2

    Seems easy ! Why I didn't know before ? xD
    Thank you.

  • @MogTech
    @MogTech 5 ปีที่แล้ว +1

    Exactly what I wanted

  • @arunachalamk1145
    @arunachalamk1145 5 ปีที่แล้ว +1

    first view and first comment
    a friend from instagram dropoutandroid dev

  • @omar5250
    @omar5250 3 ปีที่แล้ว +1

    Thank you so much! It was really helpul :')

  • @elshazer
    @elshazer 5 ปีที่แล้ว +1

    Than you, I love your videos, very simples.

  • @faridfirdautama5919
    @faridfirdautama5919 4 ปีที่แล้ว

    Hey Mitch,
    I got some stuck...
    I can't set data list of link address from Arraylist into a button on each list's detail.
    If there are TextView we can set with : (example)
    name.setText(heroName.getName());
    What if a button ?
    (Before we call button.setOnClickListener method)
    Thank you

  • @ashpro3259
    @ashpro3259 5 ปีที่แล้ว

    Hi mitch,
    Someone recommended your channel to me.
    I hope if you can give an advice to someone who want to learn android development. What do you recommend for a new starter :)

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      Hey,
      This is where you want to start: codingwithmitch.com/courses/sqlite-room-persistence-android/
      It's free.

  • @katerynaromanyuk2619
    @katerynaromanyuk2619 4 ปีที่แล้ว

    Hi Mitch! Very useful tutorial.
    May I ask you what to do if I have to pass to another activity an object which contains an ArrayList?

  • @ScrubInstitute
    @ScrubInstitute 3 ปีที่แล้ว

    Hello mitch, i got an error! When i type
    intent.putExtra(name"selected_title", adaptor.get(position));
    It says cannot resolve method 'get' in 'Adapter'

  • @Mohit-db1gj
    @Mohit-db1gj 4 ปีที่แล้ว

    how can i select some items from this notes RecyclerView and add to next activity RecyclerView without database maybe sharedpreferences ?

  • @bunhengborath7698
    @bunhengborath7698 3 ปีที่แล้ว

    Hey Mitch can you do a video about Send data between fragment please from Recyleview?

  • @danceracademy3083
    @danceracademy3083 5 ปีที่แล้ว

    Plz make videos on nearby communication...send file from one android device to another using router....

  • @amitmalhotra4278
    @amitmalhotra4278 5 ปีที่แล้ว

    Can we set song to default ringtone by parse from firebase. I have fetched song from firebase and setting it on RingtoneManager but it is not working. Please help #Mitch

  • @jopadjr
    @jopadjr 5 ปีที่แล้ว

    Thanks Mitch !!! Cheers. Anyway, may I ask. What is your next tutorial in Pluralsight...

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      I don't think I'll be making any for Pluralsight this year. I'm making courses for my website. codingwithmitch.com

    • @jopadjr
      @jopadjr 5 ปีที่แล้ว +1

      @@codingwithmitch Cheers !!!

  • @helpyourself1844
    @helpyourself1844 4 ปีที่แล้ว

    What shortcut did you use with log t?

  • @alamin5G
    @alamin5G 5 ปีที่แล้ว

    I want a tutorial base on send intent with Map Location, can you do this for me, please?

    • @Billcomesback
      @Billcomesback 4 ปีที่แล้ว

      Man, you got how to do it? im trying doing this: sending from Main activity an intent with a string that contains an address to geolocate in a mapview to show in a GoogleMapActivity class

  • @shubhammetkar6021
    @shubhammetkar6021 3 ปีที่แล้ว

    I've retrieved data in recyclerview so can you help me in it?

  • @bunhengborath7698
    @bunhengborath7698 3 ปีที่แล้ว

    God bless you i love you men

  • @strykcounter
    @strykcounter 3 ปีที่แล้ว

    i cant get the data sir only i get is Modelclass0@495 please help

  • @fatmaabdullah4866
    @fatmaabdullah4866 5 ปีที่แล้ว

    please i want the explain input and output parameter

  • @DibasDauliya
    @DibasDauliya 5 ปีที่แล้ว

    where did you define mNotes?

  • @arunachalamk1145
    @arunachalamk1145 5 ปีที่แล้ว

    Next time make a video about bundle class...and how to pass bundle one fragment to another

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      I have a video on that th-cam.com/video/BVab9vDrra4/w-d-xo.html

  • @CSSuccessGamer
    @CSSuccessGamer 5 ปีที่แล้ว

    How long does it take to complete the sqlite course? I want to learn.

  • @novanjayesconde3569
    @novanjayesconde3569 5 ปีที่แล้ว

    It is possible to use spreed sheets on google as your database.. ?

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      I'm not sure. If Google docs has an API then yes

  • @TheALFOOS
    @TheALFOOS 5 ปีที่แล้ว

    thanks ilike your videos it help my alot
    can you share your custom theme what font do you used
    how can i send the same Data to two Activityes with Intent Extras ?

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      The theme in the app?
      If you want to send data to two activities its the same thing

    • @TheALFOOS
      @TheALFOOS 5 ปีที่แล้ว

      the android studio editor theme not the theme of the app

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      @@TheALFOOS github.com/mitchtabian/Android-Studio-Settings

  • @samirshrestha5252
    @samirshrestha5252 5 ปีที่แล้ว

    how to set half star rating in android

  • @adigaming1407
    @adigaming1407 5 ปีที่แล้ว

    How to create astrology android app

  • @mohamedeltonopy7278
    @mohamedeltonopy7278 5 ปีที่แล้ว

    how to send an arraylist to "noteActivity.Java " by using Parcelable

  • @fatmaabdullah4866
    @fatmaabdullah4866 5 ปีที่แล้ว

    thanks sir

  • @ahmedmiqdaam2967
    @ahmedmiqdaam2967 5 ปีที่แล้ว

    please mitch halp me ..
    I need code about
    when user add comment to your post ..
    show in your notification fragment..
    complet instagrem clond ..
    please .
    hlep my me brother

  • @pouyahosseiny45
    @pouyahosseiny45 5 ปีที่แล้ว

    bro what's your emulator i never seen that before :| ?

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว +1

      It's vysor, a google chrome extension

    • @pouyahosseiny45
      @pouyahosseiny45 5 ปีที่แล้ว

      @@codingwithmitch thank 's i find it but need usb connect have any way work without phone? connect

  • @mychannel6327
    @mychannel6327 5 ปีที่แล้ว

    Brother how to creat live tv app from api tell me

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      Well, it's very simple. Just get the data from some live tv API and build the app of course.

    • @mychannel6327
      @mychannel6327 5 ปีที่แล้ว

      Brothet I Request You please Creat Video Turorial plz Request you

    • @mychannel6327
      @mychannel6327 5 ปีที่แล้ว

      @@codingwithmitch please btother Request you Pleasw creat video

  • @ahebwachryce3299
    @ahebwachryce3299 5 ปีที่แล้ว +1

    2nd View

  • @ahmedmiqdaam2967
    @ahmedmiqdaam2967 5 ปีที่แล้ว

    please mith
    read me comment
    please