Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7630053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:59:56+00:00 2026-05-31T05:59:56+00:00

I have developed an Android application for changing ringtones. It works quite well, but

  • 0

I have developed an Android application for changing ringtones. It works quite well, but one thing bothers me.

When I set a ringtone as a notification tone, it plays when I receive an SMS message. However, if I have chosen a custom SMS tone earlier (ie. anything else than “Default ringtone” which is active by default) in the SMS settings, the new notification tone will not play when I receive an SMS.

This might lead to a situation in which someone installs the ringtone app from the Android market, sets the notification tone and gets disappointed because the chosen notification will not play when (s)he receives an SMS. The solution is quite easy (SMS -> Settings -> Select ringtone -> Default ringtone), but it’s truly a nuisance if (s)he doesn’t know this.

This is what I use to set the notification tone:

values.put(MediaStore.Audio.Media.IS_RINGTONE, true);
values.put(MediaStore.Audio.Media.IS_NOTIFICATION, true);
values.put(MediaStore.Audio.Media.IS_ALARM, true);

…..

RingtoneManager.setActualDefaultRingtoneUri(this, RingtoneManager.TYPE_NOTIFICATION, persistentUri);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:59:57+00:00Added an answer on May 31, 2026 at 5:59 am

    You can’t do this unless you do it as root.

    The ringtone used by the stock MMS/SMS application is stored in its own shared_preferences. As every shared_preference is only accessable by its owner (this is enforced by android, unless you are root) it’s simply not possible.

    You can look it up yourself if you have a rooted phone (or just use an emulator) and look at /data/data/com.android.mms/shared_prefs/com.android.mms_preferences.xml on the device via adb shell.

    It contains the shared_preferences used by the app and also contains a key pref_key_ringtone which contains a content URI.

    Edit:
    I have not confirmed this, but I think the default value of the pref_key_ringtone will be set to Settings.System.DEFAULT_NOTIFICATION_URI. This will route to the system default notification sound when played. When the user has not changed this, your solution will work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed the android phonegap application using html page and css. But My
I have developed a music app for Android. At one stage in the application,
I have developed the Android application, but my customer wants to get an application
I have developed an Android application using Eclipse which works perfectly on the Android
I have developed an Android application that has 1 process and 2 services. But
I have developed android phonegap application using javascript. I am having one parent div
I have developed an Android application and had it tested on emulator as well
I have developed one android application for the devices with exact screen size of
I want to Reading Color from Android Application. Here I have developed one Application,
We have developed one android application which will send the request and receive the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.