I am facing few problems while using grid view and shared preference in android.
I am using grid view to get the image resource and pass the image resource to next activity to convert that to an image.
Activity A contains: code to convert resource image to image in EditText
Activity B contains: send image resource to Activity A (Select image from Gridview).
Activity A Code: code in this link: http://pastebin.com/AzUTEFWT
Activity B Code :code in this link: http://pastebin.com/cRp1vQan.
Please guide me in this issue.
I am able to diplay the gridview with images.
I get force close error when i select image in gridview
Ummm, I think I have find the problem. It’s here:
Your SharedPreference Object it’s null, and you are treating to access to it.
You need to return something, for example:
I hope that helps you.