How do you create an app to set custom ringtones? – looking for help

Hi everyone, I'm trying to build an Android app using MIT App Inventor (or Kodular) that allows users to set custom ringtones on their device.

The idea is that the user can choose an audio file and set it as their ringtone directly from the app.

I know there are some extensions that interact with device settings, but I’m not sure which one to use or how to structure the project properly.

Has anyone done something similar or can guide me in the right direction?

I’d really appreciate any advice or suggestions.

It is always good to search the community before asking. I just searched for the word ringtone.