Thank you, sorry I did not explain myself well, I have a large panel from which I take two bitmaps, save them as (jpg, png) and I want to join them and save it again with the same format (jpg, png)
On some devices (low range) I have this error. java.lang.OutOfMemoryError: Failed to allocate a 182088012 byte allocation with 4194304 free bytes and 64MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method)...
Thank you, sorry I did not explain myself well, I have a large panel from which I take two bitmaps, save them as (jpg, png) and I want to join them and save it again with the same format (jpg, png)
I think that Erel is suggesting that you draw the two bitmaps on a panel using B4XCanvas, and then use B4XCanvas.CreateBitmap to create a combined bitmap. If you do not want the panel to be visible then move it off-screen.