Android Question [RESOLVED] Is is possible to assign a notification sound to your app other then the default.

Discussion in 'Android Questions' started by Jmu5667, Jun 24, 2019.

  1. Jmu5667

    Jmu5667 Well-Known Member Licensed User

  2. DonManfred

    DonManfred Expert Licensed User

    i guess the app just get the mp3 from the systemsetting and set this mp3 as notification sound.
    You can do the same. I guess you must; i do not know a api to set it from systemsounds.
    You need to use contentresolver to get the sounds, let the user select one, get the sound, store it for later use.
    Set the sound when creating a notification... That´s what i would do.
  3. wes58

    wes58 Active Member Licensed User

    I am not sure that is what you want but here is a sample to pick the sound using ringtone manager and assign this sound to the notification

    Dim nb As NB6
    Dim uri As Uri       'ContentResolver library
        Dim rm As RingtoneManager
    "rm", rm.TYPE_NOTIFICATION, True"")
    Wait For rm_PickerResult (Success As Boolean, UriString As String)
    If Success Then
    'add code to initialize NB6       
        End If
    jimmyF and DonManfred like this.
  4. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    thanks for the reply, I figured it out last night :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice