Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

corona can utilize android phone camera?
Started by ojee.bienes Mar 12 2020 12:27 AM

5 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ojee.bienes

[GLOBAL: userInfoPane.html]
ojee.bienes
  • Observer

  • 10 posts
  • Corona SDK

is there an API or event listener or plugin or whatever means that corona can utilize android phone camera?



[TOPIC: post.html]
#2

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Contributor

  • 207 posts
  • Corona SDK

Yes. Check docs:

[TOPIC: post.html]
#3

ojee.bienes

[GLOBAL: userInfoPane.html]
ojee.bienes
  • Observer

  • 10 posts
  • Corona SDK

I can't find it. can you provide the link to me? thanks

[TOPIC: post.html]
#4

GrahamRanson

[GLOBAL: userInfoPane.html]
GrahamRanson
  • Contributor

  • 131 posts
  • Corona SDK

https://cse.google.com/cse?cx=009283852522218786394%3Ag40gqt2m6rq&ie=UTF-8&q=android+camera&sa=Search


  • pixec likes this

[TOPIC: post.html]
#5

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 552 posts
  • Corona SDK

Out of the box you can call up the native camera app to capture photos, but you're somewhat reliant on the user actually then taking a photo with it. https://docs.coronalabs.com/api/library/media/capturePhoto.html

To display the camera preview and take captures directly, without relying on user interaction, we have a plugin: https://marketplace.coronalabs.com/corona-plugins/android-custom-camera-preview

Our plugin is built in native Java so displays on top of the rest of your app, but does include the ability to display text and imagery overlaying the preview, so that you can show instructions or results to the user at the same time, or a custom cross-hair graphic. There's no way of showing the preview behind other display objects unfortunately.
  • pixec likes this

[TOPIC: post.html]
#6

ojee.bienes

[GLOBAL: userInfoPane.html]
ojee.bienes
  • Observer

  • 10 posts
  • Corona SDK

thanks to all.  ;)




[topic_controls]
[/topic_controls]