Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Showing Camera in a View

Is it possible to show the camera in a view behind other UI elements in android? I do not want my app to open to the separate camera app because the purpose is not to take pictures, it just needs to show the "viewfinder".

Thank you for your time.

— asked September 17th 2010 by Matt Bell
  • android camera
1 Comment
  • I am looking for an answer to this as well. Did you ever find a way to do this?

    — commented September 30th 2011 by Joshua Hamilton

1 Answer

  • You can use the camera overlay on Android to do this. As long as you are targeting Android 2.2+ and using one of the CI builds you should be able to do this.

    Here is an AR example that works on Android https://github.com/benbahrenburg/bARk/blob/master/Resources/poi_camera.js

    To get the CI builds ( It is using 1.8+ ) you want to go here http://builds.appcelerator.com.s3.amazonaws.com/index.html and select the 1.8 branch from the drop down.

    — answered October 1st 2011 by Ben Bahrenburg
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.