Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
着信音がすでに再生されているかどうかを確認するにはどうすればよいですか? 既に再生中の場合は、再度再生しないでください。
次を使用できます。
Uri ringtoneUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Ringtone ringtone = RingtoneManager.getRingtone(this, ringtoneUri);
そして、着信音がヌルかどうかを確認し、それに応じて決定します。