I was working on call recording with nougat but since oréo, it's not working anymore.
I am using MediaRecorder for recording.It is working on other versions of android.
I've tried many others, but no success.
so i need to know if someone has been successful made this type of application with Oreo, if so, how to do this?
Call recording is not allowed from Android 6 Marshmallow.
There was a workaround in native code around the root requirement, which worked until Android 8.1.
This was patched in Android 9 Pie, and since this version recording calls is not possible anymore. You can find a detailed explanation from the developer of ACR (the most popular call recorder for Android) here.
For the Android 6-7-8 workaround, you can check an example implementation here (it basically uses native C++ code to bypass the check done in Java).
Related
Good day team!!!
I am developing a calling system, In this case we are working on Android, IOS and web/Desktop platforms.
Audio and Video calls were working fine for Android, IOS and Web/Desktop. Until I have upgraded the Android API level to 30 (Android 11, as its mandatory to update app on to Play Store). Once I switch API level to 30. Android to Android, Android to IOS audio/video calls are working fine.
But Android to Web and vice versa is not working.
I am getting ICE server state as CHECKING whenever I am try to connect. After waiting for sometimes its going in to FAIL state.
If I switch Android API level to 29 again, everything is working fine.
What could be the issue with new Android API level 30 for VOIP calls using WEBRTC.
I am using implementation "io.pristine:libjingle:11139#aar" as lib dependency for WebRTC.
Anyone come across this issue? Please let me know I am stuck with this part.
I am not able to share the code due to huge code for this, If needed specific code, let me know in comment I will provide that. Hope you can understand.
Thank you so much in advance
I've received a bug report from an user of my app. She said that after downloaded my app and used it, the speaker of the mobile phone didn't emit any sound anymore, even after deleting the app. She solved the problem only after restarting the device in safe mode.
Is it really possible that my app caused this? Have you heard about similar cases?
The app is an audio player for an audio codec not supported by Android versions previous to 5.0.
I've used the AudioTrack class for playing the audio and a custom decoder made with the Java Native Interface and a third part library written in C.
The device is a Galaxy A3 (2017) with Android 7.0.
I've updated the app some months ago, substituting the old deprecated AudioTrack constructor with the new one that make use of the AudioTrack.Builder. I haven't received new similar report, so maybe the problem is solved.
I have implemented Android Speech Recognition as a service on Android 4.1 & 4.2 recognition solution in my application.
Everything is fine until Android 4.2 OS version, but above the recognition doesn't work. I tested my solution on Kitkat and Lollipop.
The service starts run 2-3 times(i can see the log in the handler), then stops without any error. Here they mentioned about a similar problem, but no solution.
I refreshed Google Play Services to 7.5, but not that is the source of the problem.
Any suggestion is appreciated!
Update:
The suggested solution, to observe if the service runs, just a partial solution, i can restart listen the recognizer with startListening method, but it's not listening at all. I'm considering to use other recognition service, like sphinx. It is so embarrasing, when OS version changes and your app will be wrecked...
I'm aware about the fact, this API is not intended to be used for continuous recognition - as mentioned in documentation.
I am currently developing a mobile application that is all about very short sound recordings and for the time sake I decided to build it with Cordova (not Phonegap). Unfortunately today I have been fighting with the actual sound recording on my Nexus 5.
I am using the Cordova media-capture plugin, The code currently running is exactly the code from their documentation.
On older device, everything runs great. On my Nexus 5 though, when I click on button to record audio, it just returns error code number 3 (No media files recorded) even without opening the audio recorder. I thought it might be problem with new Android, but on simulator it runs fine. I also thought that somehow it could be connected to that I cannot find any audio recording app on my device, so I installed one and still nothing.
Then I thought maybe I am doing something wrong, so I installed this app: https://github.com/Icenium/sample-capture and the same problem.
There has been some advice around here to update the Capture Java file, which I did and still didn't help. What can I try next?
This is because there is no application installed, by default, to handle the intent (as explained above by others).
Try installing an application that handles that intent. For example I used this one:
https://play.google.com/store/apps/details?id=com.brightattic.soundrecorder&hl=en
(Please note I offer no endorsement of the app other than it worked to prove that the problem was a lack of sound recorder app).
Maybe try to set the targetsdk to 18 instead of 19 in androidmanifest.xml (and of course be sure to have installed api 18 in android sdk manager).
This should force the new kitkat chrome webview to operate in quirk mode and behave like the webview in jellybean.
I had the same issue, running adb logcat is useful:
W/System.err(22102): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.MediaStore.RECORD_SOUND }
...
D/CordovaLog(22102): file:///android_asset/www/js/index.js: Line 77 : Capture ERROR: {"message":"Canceled.","code":3}
For me the problem is that Nexus 5 (android 4.4.2) doesn't handle the Intent, i.e. doesn't seem to have a default audio recorder.
On devices which do have a default audio recorder, you might see this error if that application doesn't include a receiver for RECORD_SOUND..
https://github.com/esnyder/callrecorder
I've applied this source code to perform call recording but It's not recording call (Two Way Recording).
After searching a lot I've got android have banned call recording service after version 4.1. But there is an CallRecorder App on google play which is working fine in my mobile too.
How can I perform call recording feature in my app?
AudioSource.VOICE_CALL not working in android 4.0 but working in android 2.3
posting late on thread but still Check this link hope it will help
https://play.google.com/store/apps/details?id=com.rivalogic.android.callrecorder&hl=en