Name : AndroidVolume, Version : 1.0
All the blocks
Demo Blocks :
### Stream Types (int)
1 = VOICE_CALL
2 = SYSTEM
3 = RING
4 = MUSIC
5 = ALARM
6 = NOTIFICATION
7 = DTMF
### Flags (int)
1 = ALLOW_RINGER_MODES
2 = PLAY_SOUND
3 = REMOVE_SOUND_AND_VIBRATE
4 = VIBRATE
Download AIX :
com.aemo.androidvolume.aix (669.5 KB)
Download AIA :
Volume.aia (670.5 KB)
If you like my work, please support me
13 Likes
Balajidev
(Balaji Dev)
#4
Nice extension. Does it needs any type of runtime permission?
1 Like
Balajidev
(Balaji Dev)
#6
Just use this AndroidUtilCode/VolumeUtils.java at master · Blankj/AndroidUtilCode · GitHub
and it compress your whole extension size. Why did you use whole library which is useless for these volume functions only…
1 Like
I noticed this recently and am working on rebuilding the extension
1 Like
thank you for your contribution…
remember to follow the naming conventions…
you might want to fix it before publishing the new version…
Taifun
2 Likes
New Update
- change package name of extension, if you use old version you need to remove it first
- reduce size of extension from
670.5 KB
to 25.0 KB
thanks for @Balajidev
- follow naming conventions for extension thanks for @Taifun
- rename some blocks
NOTE
### Stream Types (int)
- STREAM_VOICE_CALL = 0
- STREAM_SYSTEM = 1 (DEFAULT)
- STREAM_RING = 2
- STREAM_MUSIC = 3
- STREAM_ALARM = 4
- STREAM_NOTIFICATION = 5
- STREAM_DTMF = 8
- STREAM_ACCESSIBILITY = 10
### Flags (int)
- FLAG_SHOW_UI = 1 (DEFAULT)
- FLAG_ALLOW_RINGER_MODES = 2
- FLAG_PLAY_SOUND = 4
- FLAG_REMOVE_SOUND_AND_VIBRATE = 8
- FLAG_VIBRATE = 16
Blocks:
Download AIX :
me.aemo.androidvolume.aix (25.0 KB)
2 Likes