Android Code Snippet Updated version of Quick Volume Widget (originally by Jack Cole)

I've updated this volume widget to comply with the newer Android requirements.

Original thread:
https://www.b4x.com/android/forum/threads/quick-volume-widget.10315/

I contacted the original author, Jack Cole, and he kindly gave me permission to publish this updated version.

Quick Volume Widget.jpg
Quick Volume Widget - App.jpg


Changes compared to the original:
  • Moved the service code to the new Receiver module.
  • Added the ACCESS_NOTIFICATION_POLICY permission.
  • Reduced the size of the base panel in the designer. Since this panel determines the widget's minimum width and height, I reduced it to 70 dips so it occupies only one cell. This can be adjusted if needed.

The version number of the original project has not been modified.

This project can also serve as an example of how to create widgets. Or to use this app.

Any corrections, suggestions, or improvements are welcome.
 

Attachments

  • volwidget.zip
    20.3 KB · Views: 47

emexes

Expert
Licensed User
Longtime User
A few minutes ago I was looking at the Great Lakes, and so when I saw "Quick Volume Widget" I thought it must be to do with calculating volumes as in litres etc.

Then I thought maybe it was to do with monitoring stockmarket trading volumes. So I went into the post to see which it was, and turns out I was wrong twice.

English is a funny language. 🫣
 
Top