You can either create a class which is available across the entire application and put any data on there and grab it from anywhere (I wrote a tutorial here : http://www.jameselsey.co.uk/blogs/techblog/android-implementing-global-state-share-data-between-activities-and-across-your-application/)
Either that, or use the "Extras" feature of an intent, and sent that intent to another activity (I've got a tutorial, but its not complete yet) Good luck On Oct 19, 7:29 am, fernando <fernandoler...@gmail.com> wrote: > If the underlying data being changed is in a database think about > creating a cursor and adding an observer. In such a way that the > cursor's observer in the B activity will be triggered when the > activity A changes it and updates the database. Look into the android > API documentation, class Cursor and methods registerContentObserver > and registerDatasetObserver. > Using the activityForResult seems to not be suitable in the situation > you described since it is not a nested activity situation. > You could also broadcast and Intent and get in the other activity. > Furthermore, you could define both activities as single instance in > the stack and use the startActivity to pass an intent to the other > activity which will have the onPause/onNewIntent/onResume called. > > On Oct 18, 10:12 pm, Rocky <rkjhaw1...@gmail.com> wrote: > > > use the Bundle for send data from one activity to other, > > startActivityForResult, this will give u that a activity can hold the result > > of next activity. > > > On Tue, Oct 19, 2010 at 10:17 AM, Chandroid > > <chandrathecentur...@gmail.com>wrote: > > > > I have an application where there are two screens(activities.) > > > When I make changes in the second screen those values should get > > > reflected in the first screen. For that I have to pass the values of > > > second screen to the first one. > > > Can anyone help out on how to do this? > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs > > > cr...@googlegroups.com> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > Thanks & Regards > > > Rakesh Kumar Jha > > Software Developer > > Symphony Services Corp (India) Pvt Ltd > > Bangalore > > (O)+918030274295 > > (R)+919886336619 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en