Closed Dhina17 closed 6 months ago
After upgrading our targetSdkVersion to 34, HBRecorder has started crashing on Android 14.
Looks good to me, would be nice if this can get merged 🙂
Nice contribution @Dhina17!
I wonder if this is really how Android 14 intended us to use? What is the underlaying platform change that requires this? Could you link to the documentation?
Handler handler = new Handler(Looper.getMainLooper());
mMediaProjection.registerCallback(new MediaProjection.Callback() {
// Nothing
// We don't use it but register it to avoid runtime error from SDK 34+.
}, handler);
@HBiSoft when do you plan to merge these changes?
@mirjalal
Merged and is available in 3.0.2
Thank you for the pull request. I will have a look and test it later today.