How to read voice messages programmatically in Android

Just ask yourself, is it possible to access the answering machine using code?

I saw in Android 4.0, Google introduced a new content provider called " android.provider.VoicemailContract.Voicemails ", but I want to do this on older versions of Android? Is it possible at all?

+6
source share
1 answer

No, because each manufacturer of a network / telephone handles voicemail differently. In many cases, there will be no applications on the phone that are aware of individual voice messages. The best thing you can do is create a PhoneStateListener to listen to LISTEN_MESSAGE_WAITING_INDICATOR , which allows you to read the indicator of the waiting message indicator sent by the network operator (answers the question "Are there any new voice messages?").

+1
source

Source: https://habr.com/ru/post/912912/


All Articles