Link to home
Start Free TrialLog in
Avatar of Jeff Everett
Jeff EverettFlag for United States of America

asked on

'action' buttons in Android camera overlay camera preview

I am having trouble finding any code or simple way to create an 'action' button in the camera overlay/surface view in Android. For instance, I would need a button to be visible in the camera preview mode to turn on the flash and keep the flash on. I want to make this an app to create some fun photo projects I am going to share on my blog. So when a person would turn on the camera they would touch the button that is labeled with a light bulb and it would turn the light (flash) on, and keep it on. I tried the app inventor but its so basic you cant put any kind of overlay in it. Or can you? I imagine this has to be programmed in xml or java. I know neither language! There are apps that make use of the camera flash as a flashlight app so I know it can be done, it just has to work with the camera preview. Anyone interested in helping please let me know. I figured I would talk to all my fellow experts first before I take the day off to try and figure this out. You guys always come up with some kind of solution! Thanks!
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

try to use RelativeLayout placing inside a view with camera surface and then whatever controls you want over it
Avatar of Jeff Everett

ASKER

What would 'relative layout' mean. I am a total novice only using the basic App Inventor. I could not figure out how to overlay any other control buttons in the camera view. I do not know if modifying this view in a program as simple as AppInventor is possible.  If you have any solutions or other editors/emulators to use please let me know! I am trying to gather as much feedback as possible to see if I can pull this off myself,but I am such a novice I dont know if its possible. I am open to seeking help from a developer as well. Thoughts and advice are very welcome. I need to get this app finished soon for my photography blog.
ASKER CERTIFIED SOLUTION
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah its time for a developer I think ,I am short on time this morning so I will take a look later but I just may not be able to figure it out. Thanks for the info. I plan on contacting the pecan developer. Any more suggestions are welcome.  I will leave the thread open till tomorrow and then award points. If you know of any other suites to develop on besides AppInventor please let me know. Thanks!
well, it all depends on what you need. for camera usage - it'll be 'native' app anyway, be it Java or anything else (like PhoneGap or Mono).
What I need is the easiest way to get the camera open on the phone and into preview mode. Then I need to map 3 buttons to a specific function that will allow the special effects to be created when taking a picture.  One effect button for sure has to keep the flash on, the others.... I am working on what they will exactly be. As I stated I got the camera app built on app inventor but I need the actual camera preview to have the buttons so a person can line up the shot with the light on. I am working on posting the work on Odesk and such but I trying here first was my initial thought. If you know anyone or suggest any app developers pass them on! I am sure people on Experts Exchange are looking anyway.