Skip to content Skip to sidebar Skip to footer

One Activity Data Is Transferring To Another Activity

I was in trouble with logical error somewhere in my program, what happening is when I use time picker and Switch in my MainActivity then the time selected and Switch state getting

Solution 1:

Your activity, won't get the new data, because it's receiver was already unregistered, to make this easier for you, I would advise, you start the activity with startActivityForResult that way when you are done, you can set the data and the previous activity will receive the data in a bundle on this callback onActivityResult(...)


Post a Comment for "One Activity Data Is Transferring To Another Activity"