Input dialog for notification sounds?

Post your questions and help other users.

Moderator: Martin

Post Reply
Christofer
Posts: 31
Joined: 27 May 2017 11:19

Input dialog for notification sounds?

Post by Christofer » 01 Jun 2018 17:27

I'm making a setup flow where I'd like to ask the user, in an input dialog, to chose one of the default notifications/ringtones installed on the phone. The sound is later to be played in a flow. The ideal solution would be to show the notification/ringtone menu that you can get from the action "Sound". Is this possible?

//Christofer

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Input dialog for notification sounds?

Post by Martin » 03 Jun 2018 14:04

Hi,

That's possible using action Start Activity. Here's an example:
Ringtone Picker Example

I'll add it to the example section of Start Activity in the next update.

You can play the sound using action Sound with Sound Type: File and File: {ringtone_uri}

Regards,
Martin

Christofer
Posts: 31
Joined: 27 May 2017 11:19

Re: Input dialog for notification sounds?

Post by Christofer » 07 Jun 2018 21:06

Nice, will check that out! Thanks!

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Input dialog for notification sounds?

Post by Rafi4 » 08 Jun 2018 03:04

Hi Martin
Thanks a lot. Also please give an example how to pick time like this
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Input dialog for notification sounds?

Post by Desmanto » 08 Jun 2018 15:51

Pick time and date is already in input Dialog, change the dialog type to Date, Time or Date & Time.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply