I’m trying to develop a spectrum based live wallpaper, which will change when the music plays or someone touches the screen, for android 2.3 and up. The problem is that I need to get the session id to initialise the Visualizer so…
How can I get the sessionId from android
And it would be good if you could show me how I need to init the Visualizer properly to get FFT data, or alternative ways to get fft data.
The default audio session id is 0 (It will react on all sound output-music,system sounds).
And to init Visualizer to get FFT one way is:
And the other one would look like this:
And in manifest you need to add some premisions: