Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i show a picture from cache? #40

Open
fossilo opened this issue Sep 6, 2012 · 0 comments
Open

How can i show a picture from cache? #40

fossilo opened this issue Sep 6, 2012 · 0 comments

Comments

@fossilo
Copy link

fossilo commented Sep 6, 2012

Hello i try to show the picture from the iginition support sample in an ImageView,
but cant get this working.. i am not sure why..?

image = (ImageView)findViewById(R.id.imageView1);
HttpResponseCache cache = http.getResponseCache();
        if (cache != null) {
            List<File> cachedFiles = cache.getCachedFiles();
            for (File file : cachedFiles) {
                Bitmap myB = BitmapFactory.decodeFile(file.getAbsolutePath());
                image.setImageBitmap(myBitmap);
            }
        }

The problem is, that my BitmapFactory gives back: null
What is wrong in my code??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant