Tuesday, September 11, 2012

[android-developers] Change background using another activity

I have two activities, A and B. The activity A is the main, and B is the child from A.
I want to change the background of  A using B.


The activity B open a gallery chooser, to get the image i want to set as background.

I'm trying to send the image path using intents, but when i use the data field of onActivityResult, i get a null value and my App crashes.

what shoul i do? any idea?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment