• #1
1,487
1,331
In this article, I will show you how to create a ringtone picker using the RingtoneManager class in Android. You will be able to get the list of tones, display them as RadioButton and let the user pick one tone from the list.
I expect you to have a basic knowledge of programming in Android. You should already have set up Android Studio and all the essential components required to build an Android app.
All code in this article will be in Java and not Kotlin.
An introduction to the RingtoneManager class:
Let’s say you are designing an alarm clock app, and you want the user to choose the alarm tone. Android comes with a set of tones that you can display to the user for this purpose. Tones in Android can be classified into ringtone, alarm tone and notification tone categories. Android comes with the RingtoneManager class so that you can access these tones.
In order to show the list of tones under...
Continue reading...
 
  • Like
Likes Greg Bernhardt

Answers and Replies

  • #2
May I suggest an Insights tutorial aimed at people who would like to get started with Android programming (assuming they have some prior programming on other platforms). What are the dev toolkits available, and which ones are the easiest to get started with?

Just as an example, MIT App Inventor is easy to learn and is surprisingly versatile for a "toy" system -- but where should I go next if I want to use Android features that aren't exposed in its environment?

I think many people would have toyed with the idea of making a small utility for their own use. E.g. -- what would be required if I want to make a mini-app that would add the battery charge percentage to the screen-saver?
 
  • Like
Likes Wrichik Basu and Greg Bernhardt
  • #3
1,487
1,331
May I suggest an Insights tutorial aimed at people who would like to get started with Android programming (assuming they have some prior programming on other platforms).
Good idea, but it cannot be one tutorial; if I write all the basics of Android in one article, it would become as long as LHC's technical design report.

One thing that kills the enthusiasm to some extent is that there is already a huge number of tutorials available on the net that will help you to get started with Android.

The biggest problem when one starts programming in Android is to set up Android Studio. If you have previously worked with Intellij IDEA and Gradle, then you will face lesser problems, but for someone going from NetBeans environment, it would be a big jump.

Anyways, thanks for the suggestion; I will surely look into it.
 
  • Like
Likes Greg Bernhardt
  • #4
1,487
1,331
I added some code to the article. A ringtone picker is incomplete if it does not play the tone you choose. Therefore, I added a media player to the activity.
 

Related Threads on Create an Android Ringtone Picker Using the Ringtonemanager Class

Replies
1
Views
887
  • Last Post
Replies
15
Views
3K
  • Last Post
Replies
8
Views
6K
  • Last Post
Replies
3
Views
6K
  • Last Post
Replies
11
Views
6K
  • Last Post
Replies
6
Views
24K
  • Last Post
2
Replies
41
Views
3K
  • Last Post
Replies
6
Views
666
Top