sorry for my english :). I need to blur my dialog activity background and I tried this method
And I send my bitmap with this code :
Bitmap back1 = takeScreenShot(MainActivity.this);
Bitmap back2 = fastblur(back1, 10);
Intent intent = new Intent(getApplicationContext(), FilterActivity.class);
intent.putExtra("back", back2);
startActivity(intent);
And recieve bitmap in my activity :
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = new Intent(getIntent());
Bitmap back = intent.getParcelableExtra("back");
BitmapDrawable ob = new BitmapDrawable(getResources(), back);
getWindow().setBackgroundDrawable(ob);
setContentView(R.layout.filter_activity);
}
But it force closed for me with this error in logcat:
03-08 14:03:54.685 16735-16735/ir.aftabeshafa.shafadoc E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 13225428)
03-08 14:03:54.685 16735-16735/ir.aftabeshafa.shafadoc D/AndroidRuntime: Shutting down VM
03-08 14:03:54.686 16735-16735/ir.aftabeshafa.shafadoc E/AndroidRuntime: FATAL EXCEPTION: main
Process: ir.aftabeshafa.shafadoc, PID: 16735
java.lang.RuntimeException: Failure from system
How can I fix this? Or do you know another way to blur the background of dialog activity?