Skip to content

Tag: android

Android equalizer not working with AudioTrack

I am using android equalizer API to create a high pass filter. But even if I set every band to -1500 it does not seems to work. The audio is playing well but no eq effects. Here is my code. I am getting the audio session-id by at.getAudioSessionId() where at is an already initialized AudioTrack. As I said Aud…

Press back button on main activity opens other activity

In my project i move from main activity to activity A and from activity A to activity B. From activity B using home menu on toolbar i jump back to main activity. Now when i press back button application should exit but it opens the activity A again. Answer You should make use of the launch flags to manage you…

Get incoming call number programmatically on android 10

Looking at previous solutions for this problem are now depreciated as of api 29(Android 10). Has anyone been able to get the incoming phone number on for api 29. Apparently now to do this you need to use CallScreeningService Answer Yes, implement the class and add the necessary permission below in the manifes…