Set android sound stream to STREAM_MUSIC

  • by default it seems that my app's sound stream gets set to notification, meaning when i hit the volume rocker, it changes the notification sound volume. This unfortunately means that right now if i want to unmute the volume for media(which my app uses), i have to go to a different app, hit the volume rocker and then go back.

    i looked up how to set the output stream using java and the sdk, but how do i do it using ndk?

  • this works. if you use jactivity.callObjectMethod instead of jactivity.callMethod it just crashes.

    QAndroidJniObject jactivity=QtAndroid::androidActivity();

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.