I need to modify pitch or tempo of an audio, but need to do them separately. Is there any example in Android for that or any library which provides support for Android.
you could try Tarsos !
Here some cool demo links from Tarsos:
http://0110.be/posts/Phase_Vocoding%3A_Time_Stretching_and_Pitch_Shifting_with_TarsosDSP_Java
http://0110.be/posts/Pitch_Shifting_-_Implementation_in_Pure_Java_with_Resampling_and_Time_Stretching