|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.media.Ringtone
public class Ringtone
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.
RingtoneManager| Constructor Summary | |
|---|---|
Ringtone(Context context)
|
|
| Method Summary | |
|---|---|
int |
getStreamType()
Gets the stream type where this ringtone will be played. |
String |
getTitle(Context context)
Returns a human-presentable title for ringtone. |
boolean |
isPlaying()
Whether this ringtone is currently playing. |
(package private) void |
open(AssetFileDescriptor fd)
|
(package private) void |
open(FileDescriptor fd)
|
(package private) void |
open(Uri uri)
|
void |
play()
Plays the ringtone. |
void |
setStreamType(int streamType)
Sets the stream type where this ringtone will be played. |
(package private) void |
setTitle(String title)
|
void |
stop()
Stops a playing ringtone. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Ringtone(Context context)
| Method Detail |
|---|
public void setStreamType(int streamType)
streamType - The stream, see AudioManager.public int getStreamType()
AudioManager.public String getTitle(Context context)
context - A context used for querying.
void open(FileDescriptor fd)
throws IOException
IOException
void open(AssetFileDescriptor fd)
throws IOException
IOException
void open(Uri uri)
throws IOException
IOExceptionpublic void play()
public void stop()
public boolean isPlaying()
void setTitle(String title)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||