Skip to content

Getting java.lang.OutOfMemoryError #5

@4tis

Description

@4tis

Hi there,

Two things I would like to understand -

  1. After following the instructions (clean and building project),

I have tried this simple code -

    im = (ImageView) findViewById(R.id.imageView1);
    Bitmap bm = BitmapFactory.decodeResource(getResources(),R.drawable.pic);

      Bitmap newBitmap = BitmapFilter.changeStyle(bm, BitmapFilter.BLUR_STYLE);
      im.setImageBitmap(newBitmap);

The thing is that the app is crushing and i get the java.lang.OutOfMemoryError.

  1. Is it possible to save the bitmap with the filter (that are being shown at the ImageView)? and if so how can it be done?

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