can you add the parameter below to the manifest. In my case, this will help me when I have big bitmap and OutOfMemoryError
android:hardwareAccelerated="true" android:largeHeap="true" android:icon="@drawable/ic_launcher_android" android:label="@string/app_name" android:theme="@style/AppTheme"
source share