tAudioEncoder(MediaRecorder.AudioEncoder. Log.d(TAG, "onTouch: Temp Path "+TempPath) String TempPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath()+ "/" + subfolder String filename = Session.getUserFname()+"_Voice"+time+".3gp" How to Install V Recorder - Screen Recorder, Video Editor for PC: Download BlueStacks for PC with the download option presented within this web page. String time = new SimpleDateFormat("yyyyMMddhhmmss", Locale.US).format(new Date()) Here is my code: String subfolder = "Exotel/Media/Exotel Audio/Voice Messages/Exotel Temp" No matter what i try i still get the same error whenever i tried to save into external shared storage. String TempPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath()+ "/" + subfolder. I am using official documentation but they are saving recording into app specific storage( getExternalCacheDir().getAbsolutePath() ) and i am saving on external public storage Prepare() failed /storage/emulated/0/Music/Exotel/Media/Exotel Audio/Voice Messages/Exotel Temp/Exotel_Voice1658709937668.3gpp: open failed: EPERM (Operation not permitted) I am trying to record audio on my Android 12 Device with File and Media Permission granted but recorder.prepare() throws
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |