How to Pass data from One to another Activity || Android studio tutorial

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 82

  • @TruthAlways563
    @TruthAlways563 2 роки тому

    This method worked for me , earlier I had this issue that my xml ID was not same as in the activity.java so it was crashing, but now the issue is resolved...thank you so much brother...God bless you 😊😚

  • @MohammedAsif-o4k
    @MohammedAsif-o4k Рік тому

    I Must Thank you for being a Tremendous help..May God Bless uh abundantly.....

  • @deep1998-j1v
    @deep1998-j1v 2 роки тому +2

    It was easy and straight to the point, thanks 👍

  • @aryajr4078
    @aryajr4078 2 роки тому +1

    Thankuuuu...That was easy to understand as well as to learn..

  • @rainybaby2113
    @rainybaby2113 4 роки тому +4

    Hi, can I check with you how to make it so that if you click the "save" button it doesn't automatically redirect you to SecondActivity. This means you input data using EditTexts and saves (doesn't redirect to SecondActivity) and later on, you right-click the SecondActivity and run still will show the input data of the previous activity.

    • @TechnicalCoding
      @TechnicalCoding  4 роки тому +1

      For this you have have to store the data using sharedpreference and loads it when you start your secondactivity

  • @mohdiszamirismail3987
    @mohdiszamirismail3987 Рік тому

    Thank you very much bro. Please keep posting more great videos like this. God bless you and your family :)

  • @soulapparel9388
    @soulapparel9388 3 роки тому +3

    Do you have a continuation tutorial for this? It just shows one result. Can you do like if you add many names it will show all you added, and the results will have a button that you can add if its already final.

  • @pranabacharya6652
    @pranabacharya6652 2 роки тому

    Thank you so much.. your tutorial is very helpful

  • @depression_plusplus6120
    @depression_plusplus6120 3 роки тому +1

    My second activity doesn't work..it crashes..in the logcat it says
    CompatibilityChangeReported, state Enabled..
    Please help

  • @its_shaun8122
    @its_shaun8122 3 роки тому +3

    why does it say Unfortunately (my appname has stopped) everytime i try to open the second activity with the submit button? i followed your tutorial and i have no errors btw

  • @samindirathnayake99
    @samindirathnayake99 4 роки тому +2

    Thank you so much.. It was really helpful

  • @sahilasheikh123
    @sahilasheikh123 4 роки тому

    thankyou so much bro you help me a lot…
    love you and god bless you brother...

  • @technosk3145
    @technosk3145 3 роки тому +1

    I want to gettext from main_activity to 4th activity into the listview
    please reply

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому

      before that answer me if you have any button or something that leads to main activity to your 4th activity

    • @technosk3145
      @technosk3145 3 роки тому

      Actually i made 4 different activities including main_activity and each activity has 1 button for next activitiy
      .
      But first 3 activities consists information which i want to get
      And on licking next button of 3rd activity, Information of each activitiy should be retrieved and displayed into the list view in 4th activity.

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому +1

      there are many ways to do this takes. If you want you want to get a small value like name or something then you can create a public static variable and put your value in it, then you can can acess that variable from your 4th activity.

  • @montezmusic
    @montezmusic 3 роки тому +1

    Can anyone reply this please,
    I have 3 activity which each activity hold different edit text, and I want set this text in one activity
    For example activity 1, activity 2, activity 3, activity 4 and I want get text from this activity and I want to set this text in activity 5

  • @Odaznarak
    @Odaznarak 3 роки тому +1

    thank youuu for this video, great and simple. It helps me a lot!

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому

      WELCOME

    • @averysalvador3379
      @averysalvador3379 3 роки тому

      dunno if you guys gives a damn but if you are stoned like me during the covid times then you can watch all the latest movies on instaflixxer. Have been streaming with my girlfriend for the last few months =)

    • @harrisonmathew5001
      @harrisonmathew5001 3 роки тому

      @Avery Salvador Definitely, have been watching on Instaflixxer for years myself :D

  • @nelronjayag9643
    @nelronjayag9643 3 роки тому

    does it still do the same output when mine is EditText instead of TextView?

  • @javatmz
    @javatmz 4 роки тому +1

    Nice tuto it's verry helpfull

  • @niladrimallik3172
    @niladrimallik3172 3 роки тому +1

    Thank you, it was a good explanation. Solved my problem.

  • @sabrinafeliz4822
    @sabrinafeliz4822 2 роки тому

    hello sir , i want to send data between 2 app installed into 2 phones so how can i do it

  • @odedaranirali6360
    @odedaranirali6360 Рік тому

    If we will send a result of main activity to second activity, so can we store that result in second activity? Any solution for this..?

  • @denimugi4317
    @denimugi4317 3 роки тому

    thanks sir, that's really helpful!

  • @hrulekhnandan5293
    @hrulekhnandan5293 4 роки тому +1

    Is it written in kotlin or java?

  • @homerashaikh1803
    @homerashaikh1803 2 роки тому

    Thank you.It saved time 🙂

  • @sudipta_pradhan
    @sudipta_pradhan 3 роки тому

    If I have to pass a number, for e.g a phone number how do I modify the line inside public void onClick(View v){ }

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому +1

      If you want to passa phone number from one activity to another activity it would be best that you pass the phone number as a string and use intent for that. Like I showed in this video

    • @sudipta_pradhan
      @sudipta_pradhan 3 роки тому

      @@TechnicalCoding(1) I actually did that but the problem is after I enter my details the app crashes. What might be the possible reason? (2) new View.onClickListener() shows in grey.... What might be the possible reason?

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому

      I can't actually tell that what that error is from without seeing your logcat here but view.onclickListener colour is showing gray because you are using Java 8 in your Android project and you can replace that whole click listener with Lambda and that click listener is an anonymous class

  • @loquenotematatehacegordo5763

    nice video bro; you save me

  • @youngwooh
    @youngwooh 3 роки тому

    Thanks! i solve my problems

  • @Linebeck
    @Linebeck 3 роки тому

    Thank you so much!! The best video about this ;)

  • @basharatbala7617
    @basharatbala7617 3 роки тому +1

    Great

  • @dimust8940
    @dimust8940 2 роки тому

    your genius indian genius

  • @KB_Umutikitifuu
    @KB_Umutikitifuu 3 роки тому

    thank u very much it worked

  • @ximerfrostofficial5985
    @ximerfrostofficial5985 2 роки тому

    thanks bro 😊❤️

  • @thenoch2418
    @thenoch2418 3 роки тому

    Please sir, how do I do this but with float value?

    • @anisexpert4604
      @anisexpert4604 3 роки тому +1

      convert the float value to string and send it then reconvert it again to float

    • @thenoch2418
      @thenoch2418 3 роки тому +1

      Thank you I solved it a long time ago ☺️

    • @anisexpert4604
      @anisexpert4604 3 роки тому +1

      @@thenoch2418 okayy 😁

  • @Aakash_mishra8
    @Aakash_mishra8 3 роки тому +1

    Thank you sir

  • @muhammadalifhaikal3981
    @muhammadalifhaikal3981 4 роки тому

    why set text in my android studio become red color

    • @TechnicalCoding
      @TechnicalCoding  4 роки тому

      have you checked the xml attributes of that textview?

  • @oscarpeter2904
    @oscarpeter2904 9 місяців тому

    very easy way to dispatch

  • @viveksorathiya2336
    @viveksorathiya2336 3 роки тому

    Thank you so much...

  • @createsmart6477
    @createsmart6477 Рік тому

    Number kese le jayega

    • @createsmart6477
      @createsmart6477 Рік тому

      Number le jane ke liye kya karna padega

    • @TechnicalCoding
      @TechnicalCoding  Рік тому

      It's the same for the first activity, in the next activity call getIntegerExtra() to get the number

  • @coderunner743
    @coderunner743 3 роки тому

    thanks bro

  • @222noor5
    @222noor5 Рік тому

    Sir kindly provide the code.

  • @alibanot7517
    @alibanot7517 3 роки тому

    help me do my app

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому

      Tell me in details

    • @alibanot7517
      @alibanot7517 3 роки тому

      @@TechnicalCoding do you know how to create a searchable spinner?

  • @jaisiya_raam
    @jaisiya_raam 3 роки тому

    Axomia nki bupai?????????????????

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому +1

      Sorry I don't understand what you're saying?

    • @jaisiya_raam
      @jaisiya_raam 3 роки тому

      @@TechnicalCoding i thought you are Assamese .... Das likha no tumi ?

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому +1

      No I am Bengali

  • @amdanm7954
    @amdanm7954 7 місяців тому

  • @code642
    @code642 3 місяці тому

    Hi

  • @laxmanhansda1023
    @laxmanhansda1023 3 роки тому

    Why are u crying bro

  • @ahmedmassalha7602
    @ahmedmassalha7602 3 роки тому

    Thank you Sir