RingtoneManager setIncludeDrm - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for RingtoneManager setIncludeDrm method.

This code example shows how to use the following methods:getCursor, inferStreamType, setIncludeDrm, setType
9
CodeRank
This code example shows how to use the following methods:getCursor, inferStreamType, setIncludeDrm, setType
7
CodeRank
This code example shows how to use the following methods:getCursor, inferStreamType, setIncludeDrm, setType
6
CodeRank
This code example shows how to use the following methods:getCursor, setIncludeDrm, setType
  class BuiltinToneCursor extends ToneCursor 
  { 
    private RingtoneManager mRingtoneManager;
    public BuiltinToneCursor(int ringtone_type) { 
      init(); 
      mRingtoneManager = new RingtoneManager(mContext);
      mRingtoneManager.setType(ringtone_type);
      mRingtoneManager.setIncludeDrm(true);
      mCursor = mRingtoneManager.getCursor();
    } 
    public Tone cacheTone(int position) {
      mCursor.moveToPosition(position);
      Tone tone = new Tone();
      tone.name = mCursor.getString(RingtoneManager.TITLE_COLUMN_INDEX);
      tone.uri = mRingtoneManager.getRingtoneUri(position);
      return tone;
    } 
  } 
 
  class MediaToneCursor extends ToneCursor 
6
CodeRank
This code example shows how to use the following methods:getCursor, inferStreamType, setIncludeDrm, setType
6
CodeRank
This code example shows how to use the following methods:getCursor, inferStreamType, setIncludeDrm, setType
6
CodeRank
setIncludeDrm Method Overview
This method was deprecated in API level 19. DRM ringtones are no longer supported
See Code Examples for other Android RingtoneManager Methods: