how to get the sound fade in functionality in alarm application using media player in android
<p>Hi i am new to android. I am developing a application with alarm functionality. Here i need to provide the sound fade in functionality. I am using media player to invoke the ringtone for alarm. here is my code for playing alarm sound</p>

<pre><code> try {
                        if(mp==null){
                System.out.println("-------mp is null now------------");
                Uri myUri = Uri.parse("android.resource://com.android.crazy/raw/airtel");
           mp=MediaPlayer.create(Alarm.this, myUri);
            }
mp.setDataSource(songName);
            mp.prepareAsync();
            mp.setLooping(true);

        } catch (Exception e) {
            e.printStackTrace();
        } 
      mp.start();
</code></pre>

<p>Here i need to give the sound fadein functionality. please advise me how to put the sound fade in for a particular amount of time like 5 mins</p>

<p>Thanks in advance</p>
