Android Question how can I change volume?

Discussion in 'Android Questions' started by khosrwb, May 5, 2015.

  1. khosrwb

    khosrwb Active Member Licensed User

    how can I Volume up or down with touch up or down in activity or panel?
    How can touch the up and down in a voice low and high activity do?
     
    Last edited: May 5, 2015
  2. eurojam

    eurojam Well-Known Member Licensed User

    there some ressources about that. You should search the forum first...
    ->with google you can type: Volume change site:www.b4x.com ... try and you will see tons of results;)
     
  3. khosrwb

    khosrwb Active Member Licensed User

    I try under line code but its not work
     

    Attached Files:

  4. eurojam

    eurojam Well-Known Member Licensed User

    the code in your example does change the volume, but only for music....
    Code:
    valume.SetVolume(valume.VOLUME_MUSIC,1,True)
    If you want t for alarm then:
    Code:
    valume.SetVolume(valume.VOLUME_ALARM,1,True)
     
  5. khosrwb

    khosrwb Active Member Licensed User

    I will change volume by
    move up or down on the panel
    when I move up and up
    add too volume up and up

    like " MX player " application
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice