How Can I Access the Audio Files made available for Alarm Sounds and Ringtones?

dg2k 1,416 Reputation points
2023-07-02T18:36:53.14+00:00

I want to find out the system audio files used by an Alarm and Ringtone on Android platform.

  • What permission(s) do I need to access these audio files?
  • What .NET MAUI API is available to read and play these files? Or, a tip as to how to use native API to access audio files?

I know I can use my own audio files by putting them in Resources/Raw folder and access them as required. My question is if instead I can find out the system audio files and use them -- why duplicate the effort is my logic -- say by allowing the user choose from the available audio files.

Developer technologies | .NET | .NET MAUI
Developer technologies | C#
0 comments No comments
{count} vote

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2023-07-03T06:32:57.5833333+00:00

    Hello,

    MAUI currently does not provide APIs for modifying ringtones, and you could modify various sounds and ringtones through RingtoneManager on Android.

    Please refer to the following documentations:

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.