IT. Expert System.

Android Reference

Ringtone


android.media

Class Ringtone



  • public class Ringtone
    extends Object
    Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds.

    For ways of retrieving Ringtone objects or to show a ringtone picker, see RingtoneManager.

    See Also:
    RingtoneManager
    • Constructor Detail

      • Ringtone

        public Ringtone(Context context,
                boolean allowRemote)
    • Method Detail

      • setStreamType

        public void setStreamType(int streamType)
        Sets the stream type where this ringtone will be played.
        Parameters:
        streamType - The stream, see AudioManager.
      • getStreamType

        public int getStreamType()
        Gets the stream type where this ringtone will be played.
        Returns:
        The stream type, see AudioManager.
      • getTitle

        public String getTitle(Context context)
        Returns a human-presentable title for ringtone. Looks in media and DRM content providers. If not in either, uses the filename
        Parameters:
        context - A context used for querying.
      • setUri

        public void setUri(Uri uri)
        Set Uri to be used for ringtone playback. Attempts to open locally, otherwise will delegate playback to remote IRingtonePlayer.
      • getUri

        public Uri getUri()
      • play

        public void play()
        Plays the ringtone.
      • stop

        public void stop()
        Stops a playing ringtone.
      • isPlaying

        public boolean isPlaying()
        Whether this ringtone is currently playing.
        Returns:
        True if playing, false otherwise.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 74 / 158665229. Delta: 0.02743 с