Skip to content

How can i show a picture from cache? #40

@fossilo

Description

@fossilo

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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions