Passing bitmap to other activity getting message on logcat FAILED BINDER TRANSACTION

前端 未结 1 2004
不思量自难忘°
不思量自难忘° 2020-11-30 15:53

when i\'m passing bitmap image to other activity i\'m getting mag on logcat as-

 03-20 12:06:56.553: E/JavaBinder(280): !!! FAILED BINDER TRANSACTION !!!
         


        
1条回答
  •  [愿得一人]
    2020-11-30 16:20

    Putting that amount of data in extras is not a good approach. Easiest work around is keep a static reference of the new Bitmap

    public static Bitmap getBitmap(Bitmap changeBitmap){
    return bitmap;
    } 
    

    And after using it recyle it i this manner.

    if(changedBitmap!=origanlBitmap)
    orignalBitmap.recycle();
    

    0 讨论(0)
提交回复
热议问题