Joke Collection Website - Blessing messages - How to set the ringtone to ring gradually for Gionee mobile phone?

How to set the ringtone to ring gradually for Gionee mobile phone?

The method of setting the ringtone gradient is as follows:

1. Open the phone's Settings, find it in Settings and click to enter "Sound".

2. Find and click "Fade in" on the "Sound" page, check "Enable" in the pop-up page, and then click "OK".

The code of Android ringtone is as follows:

Public void setMyRingtone (File)

{ content values values = new content values(); values . put(MediaStore。 MediaColumns.DATA,file . getabsolutepath()); //? values . put(MediaStore。 MediaColumns.TITLE,file . getname()); //? values . put(MediaStore。 MediaColumns.SIZE,file . length()); values . put(MediaStore。 MediaColumns.MIME_TYPE, "audio/MP3"); //? values . put(MediaStore。 Audio. Media. Artist, "Madonna"); //? values . put(MediaStore。 Audio. Media. Duration, 230); values . put(MediaStore。 Audio. Media.IS _ ringtone, true); values . put(MediaStore。 Audio.Media.IS_NOTIFICATION,false); values . put(MediaStore。 Audio.Media.IS_ALARM,false); values . put(MediaStore。 Audio.Media.IS_MUSIC、false); Uri uri = MediaStore。 audio . media . getcontenturiforpath(file . getabsolutepath()); uri new uri = this . getcontent resolver()。 Insert(uri, value); RingtoneManager . setactualdefaultringtoneuri(this,ringtone manager。 TYPE _ ringtone, new uri); }