Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Volume Buttons
Forum Updated to NodeBB v4.3 + New Features

Android Volume Buttons

Scheduled Pinned Locked Moved Mobile and Embedded
androidvolume
1 Posts 1 Posters 546 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thompson
    wrote on last edited by
    #1

    Hi,

    Is it possible to ensure the volume buttons change the 'media volume' and not the 'ringtone volume' on Android.

    I'm using the SoundEffect item. When a sound is playing, the volume buttons change the media volume. However, if no sound is playing, the volume buttons change the ringtone volume. This is on a Samsung device running 5.0.

    My problem is that I'm using only short and sporadic sound effects so it is difficult to change the volume of the app from within the app.

    Something like the native call:

    setVolumeControlStream(AudioManager.STREAM_MUSIC)

    Thanks,

    thompson

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved