Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Applications

Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.



Reply
 
LinkBack Thread Tools
Old December 23rd, 2011, 08:14 PM   #1 (permalink)
New Member
 
Kerbs's Avatar
 
Join Date: Dec 2011
Location: Ontario
Posts: 1
 
Device(s): Acer Iconia A100
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Kerbs
Default App Inventor - I need help

Hello everyone, I'm not savvy with creating apps on any device so this is pretty new to me. I have looked at google app inventor, and I can do some of what I want, but not everything. What I have in my app so far is 5 different buttons(pictures), that when pressed, will produce a unique tone.

What I need to do is create a volume control on screen in a slider format, that will alter the volume of the tone being played, from 0-100%. I understand there are physical buttons on the device, but for my application I need to do this. Any help, or direction towards some tutorials would be much appreciated. I don't know if the app inventor is capable of doing that, and how complicated this would be to create in a different environment.

Thanks in advance,
Andrew

Kerbs is offline  
Reply With Quote
Sponsors
Old February 8th, 2012, 09:33 AM   #2 (permalink)
New Member
 
Join Date: Feb 2012
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sliders

Unfortunately, AI does not natively support sliders, but a slider can be coded fairly easily using buttons (but the slider button cannot be dragged, you must click on the track itself). The size of the spacer button (which is emulating the track that the slider button rides on) determines the volume. Or, you can place an image sprite on a small canvas and allow the user to drag it. The position of the sprite on the canvas determines the volume.

The formula to change between user slider values and the app's native values are:
user value = app value / (app max value - app min value) x (user max value - user min value)
app value = user value / (user max value - user min value) x (app max value - app min value)

Color Picker: https://groups.google.com/forum/#!topic/app-inventor-shared-utilities-repository/l5o8nDOI1u4

Android Style Sliders: https://groups.google.com/forum/#!topic/app-inventor-shared-utilities-repository/AFCb5RmTeWs

Scott Ferguson
scottfromscott@gmail.com
scottfromscott is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Applications User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:59 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo