Android device reboots after running ExoPlayer video + MLKit Pose Detection for a while
I’m facing an issue where my Android device reboots after running ExoPlayer to stream a video and MLKit Pose Detection for some time. The device works fine initially, but after a while (usually after several minutes of video playback), it unexpectedly reboots without any clear error or crash log.
Android device reboots after running ExoPlayer video + MLKit Pose Detection for a while
I’m facing an issue where my Android device reboots after running ExoPlayer to stream a video and MLKit Pose Detection for some time. The device works fine initially, but after a while (usually after several minutes of video playback), it unexpectedly reboots without any clear error or crash log.
Exception in thread “main” javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
i decided to learn kotlin and after basics wanted to try kord. but when i run code i get this error. i tried with multpile java versions
Kotlin Android having problems recording videos of 1 minute chunks
private fun startVideoRecordingProcess() { Log.d(“TestInterfaceActivity”, “Starting video recording process”) videoHandlerThread = HandlerThread(“VideoBackground”).also { it.start() } videoHandler = Handler(videoHandlerThread.looper) Timer().schedule(object : TimerTask() { override fun run() { recordVideoInBackground() } }, 0, 60000) // Record every 60 seconds } private fun recordVideoInBackground() { Log.d(“TestInterfaceActivity”, “Recording video in background”) setupMediaRecorder() videoFile = File(getExternalFilesDir(null), “video_${System.currentTimeMillis()}.mp4”) mediaRecorder?.apply { setOutputFile(videoFile?.absolutePath) prepare() […]
Kotlin Android having problems recording videos of 1 minute chunks
private fun startVideoRecordingProcess() { Log.d(“TestInterfaceActivity”, “Starting video recording process”) videoHandlerThread = HandlerThread(“VideoBackground”).also { it.start() } videoHandler = Handler(videoHandlerThread.looper) Timer().schedule(object : TimerTask() { override fun run() { recordVideoInBackground() } }, 0, 60000) // Record every 60 seconds } private fun recordVideoInBackground() { Log.d(“TestInterfaceActivity”, “Recording video in background”) setupMediaRecorder() videoFile = File(getExternalFilesDir(null), “video_${System.currentTimeMillis()}.mp4”) mediaRecorder?.apply { setOutputFile(videoFile?.absolutePath) prepare() […]
Kotlin Android having problems recording videos of 1 minute chunks
private fun startVideoRecordingProcess() { Log.d(“TestInterfaceActivity”, “Starting video recording process”) videoHandlerThread = HandlerThread(“VideoBackground”).also { it.start() } videoHandler = Handler(videoHandlerThread.looper) Timer().schedule(object : TimerTask() { override fun run() { recordVideoInBackground() } }, 0, 60000) // Record every 60 seconds } private fun recordVideoInBackground() { Log.d(“TestInterfaceActivity”, “Recording video in background”) setupMediaRecorder() videoFile = File(getExternalFilesDir(null), “video_${System.currentTimeMillis()}.mp4”) mediaRecorder?.apply { setOutputFile(videoFile?.absolutePath) prepare() […]
Kotlin Extension Method to work on all Number types?
How to write generic code in Kotlin to work with numbers – Double
, Int
, etc.?
Kotlin Extension Method to work on all Number types?
How to write generic code in Kotlin to work with numbers – Double
, Int
, etc.?
Kotlin Extension Method to work on all Number types?
How to write generic code in Kotlin to work with numbers – Double
, Int
, etc.?
How to access a local variable from outside the function where it is declared?
How would I get the val selectedCountry
which I believe is local to that function available to use in other functions or is there a way I can get what the current selected value of the spinner is?