I was wondering what the most efficient way of saving an image on Android is.
What my app basically does is this: you see a default credit card, next you can choose to scan a barcode (with zxing), which will then generate a QR-code for it, and place the QR-code in the ImageView where the default card was stored.
So far so good; however, there's an issue with the app remembering which image to show when navigating away from the result (another screen in the app, going to the homescreen of your device, etc) and going back to the screen. It shows the default card again.
Now, I understand I have to save the QR-code but I can't come up with a solution. The device has no SD-card so saving to external storage is not an option.
I've tried solving it via SharedPreferences, OutputStream, and the cache; but couldn't get it to work.
Which of those 3 ways (or maybe a different one, all help is welcome) would you choose and what would the code be for that?