How to Pass data from One to another Activity || Android studio tutorial
Вставка
- Опубліковано 2 лис 2024
- In this android development tutorial i explained that how you can pass or send data from one activity to another activity in your application. We are gonna use INTENT class to do it. So user types their name and surname then click the button and he goes to next activity or page and he sees his name and surname are their.
#PassData #androidDevelopment #Intent
Thank you for Watching.
Follow me on facebook:
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 😊😚
I Must Thank you for being a Tremendous help..May God Bless uh abundantly.....
Thank you very much bro. Please keep posting more great videos like this. God bless you and your family :)
It was easy and straight to the point, thanks 👍
Thankuuuu...That was easy to understand as well as to learn..
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.
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
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.
For this you have have to store the data using sharedpreference and loads it when you start your secondactivity
Thank you so much.. your tutorial is very helpful
Thank you so much.. It was really helpful
welcome
thank youuu for this video, great and simple. It helps me a lot!
WELCOME
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 =)
@Avery Salvador Definitely, have been watching on Instaflixxer for years myself :D
thankyou so much bro you help me a lot…
love you and god bless you brother...
I am glad you like it
My second activity doesn't work..it crashes..in the logcat it says
CompatibilityChangeReported, state Enabled..
Please help
Nice sir thankyou very much ❤
Thank you, it was a good explanation. Solved my problem.
Glad you like it
Thank you so much!! The best video about this ;)
Great
thanks
does it still do the same output when mine is EditText instead of TextView?
Nice tuto it's verry helpfull
thanks for your support
Thank you.It saved time 🙂
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..?
nice video bro; you save me
Thanks! i solve my problems
I want to gettext from main_activity to 4th activity into the listview
please reply
before that answer me if you have any button or something that leads to main activity to your 4th activity
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.
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.
hello sir , i want to send data between 2 app installed into 2 phones so how can i do it
thanks sir, that's really helpful!
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
have you got any solution for this ?
your genius indian genius
very easy way to dispatch
thank u very much it worked
Thank you sir
WELCOME
thanks bro 😊❤️
❤
Is it written in kotlin or java?
I used java of course
JOVA
Kotlin is a old language and nobody uses it
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){ }
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
@@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?
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
thanks bro
I am glad you like it
Thank you so much...
Welcome
why set text in my android studio become red color
have you checked the xml attributes of that textview?
Please sir, how do I do this but with float value?
convert the float value to string and send it then reconvert it again to float
Thank you I solved it a long time ago ☺️
@@thenoch2418 okayy 😁
Sir kindly provide the code.
Hi
help me do my app
Tell me in details
@@TechnicalCoding do you know how to create a searchable spinner?
Number kese le jayega
Number le jane ke liye kya karna padega
It's the same for the first activity, in the next activity call getIntegerExtra() to get the number
Axomia nki bupai?????????????????
Sorry I don't understand what you're saying?
@@TechnicalCoding i thought you are Assamese .... Das likha no tumi ?
No I am Bengali
Why are u crying bro
No I am not
@@TechnicalCoding ok
Thank you Sir