On Tue, Apr 5, 2011 at 5:07 AM, Filip Havlicek <[email protected]> wrote: > Then it should work just fine. > > 2011/4/5 Brad Stintson <[email protected]> >> >> Firstly, I send data using putExtra from A to B. Then I store data in >> variable and then I send again from B to C. >> >> On Tue, Apr 5, 2011 at 1:18 PM, Filip Havlicek <[email protected]> >> wrote: >>> >>> What error? How exactly are you sending the string from A to B and from B >>> to C? Are you reusing the same intent or are you creating a new one? >>> >>> Best regards, >>> Filip Havlicek >>> 2011/4/5 Brad Stintson <[email protected]> >>>> >>>> I have three activities say A,B and C. They are linked as A-->B-->C. >>>> Now I want to send a string of data from activity A to activity B and C. >>>> When I use putextra() then from A to B it works perfectly but from B to >>>> C it shows error. How to achieve that? >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/android-developers?hl=en >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
You will have to elaborate, first give an example of the error you are getting. Is it a null pointer dereference or something? This is most likely the cause of your error, because putExtra isn't likely to "fail" this way. Provide a small sample of your code (<50 lines) and also a small stack dump showing exactly where the error is, then try to identify where your error might be coming from. Then we can help you figure it out. Kris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

