Create an Android Ringtone Picker with Ringtonemanager Class

  • Context: Insights 
  • Thread starter Thread starter Wrichik Basu
  • Start date Start date
  • Tags Tags
    Android Class
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 3K views
Messages
2,188
Reaction score
2,694
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.

Table of Contents
ToggleAn introduction to the RingtoneManager class:Launching the default ringtone picker using an implicit...


[url="https://www.physicsforums.com/insights/create-an-android-ringtone-picker-using-the-ringtonemanager-class/"]Continue reading...
 
Last edited by a moderator:
  • Like
Likes   Reactions: Greg Bernhardt
on Phys.org
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   Reactions: Wrichik Basu and Greg Bernhardt
Swamp Thing said:
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   Reactions: Greg Bernhardt
Is it possible for a standard Android app (one built on the regular dev tools) to turn on and turn off the charging current? And if so, would it work without rooting the device?
 
Swamp Thing said:
Is it possible for a standard Android app (one built on the regular dev tools) to turn on and turn off the charging current? And if so, would it work without rooting the device?
Unfortunately Android does not provide any standard way of controlling charge current. All you can do is read the battery status (charging/discharging), battery health, and charge percentage, and for these Android provides the BatteryManager class, and three broadcasts: ACTION_BATTERY_CHANGED, ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY.

Even if your phone is rooted, there is no standard way of doing this, because rooting itself is considered non-standard by the Android devs. There are Magisk modules that can control charge by modifying the firmware.
 
  • Like
Likes   Reactions: Swamp Thing