Can I scan a barcode?

Hi,

I need my app to scan a bar code. Can i do this in corona sdk? I don’t know what type of bar code it would be but it could be changed to whatever is accepted here. It is just a validation scan to launch the app when inside a place of business.

Thanks,

Warren
[import]uid: 184193 topic_id: 32432 reply_id: 332432[/import]

Btw, this would only be for the iPhone.
[import]uid: 184193 topic_id: 32432 reply_id: 128960[/import]

You can take a photo of a bar code, but unless you get Corona Enterprise edition, to load in 3rd party libraries, it won’t do you any good since there is no way to process it. Someone managed to scan it, upload it to a PHP service that was able to process it, but that’s kinda of an ugly way. [import]uid: 19626 topic_id: 32432 reply_id: 128993[/import]

Thanks. We actually decided to use GPS to tell if the user is in the building to use the app. The bar code was only to allow the user to run the app in the building. I came up with GPS.

Now I’m trying to find a tutorial on recording video and take a picture so I can then upload it to my server. Is this possible with corona?

Warren
[import]uid: 184193 topic_id: 32432 reply_id: 128994[/import]

Use the media library to enable the camera in your app -

http://docs.coronalabs.com/api/library/media/index.html

To upload it to a server -

http://developer.coronalabs.com/code/how-upload-image-server-multipartform-data

Dave [import]uid: 117617 topic_id: 32432 reply_id: 129044[/import]

Btw, this would only be for the iPhone.
[import]uid: 184193 topic_id: 32432 reply_id: 128960[/import]

GPS to find out if the user is in the building?

GPS works poor inside buildings and most often not…I maybe misunderstood you?

Joakim [import]uid: 81188 topic_id: 32432 reply_id: 129056[/import]

You can take a photo of a bar code, but unless you get Corona Enterprise edition, to load in 3rd party libraries, it won’t do you any good since there is no way to process it. Someone managed to scan it, upload it to a PHP service that was able to process it, but that’s kinda of an ugly way. [import]uid: 19626 topic_id: 32432 reply_id: 128993[/import]

Thanks. We actually decided to use GPS to tell if the user is in the building to use the app. The bar code was only to allow the user to run the app in the building. I came up with GPS.

Now I’m trying to find a tutorial on recording video and take a picture so I can then upload it to my server. Is this possible with corona?

Warren
[import]uid: 184193 topic_id: 32432 reply_id: 128994[/import]

Use the media library to enable the camera in your app -

http://docs.coronalabs.com/api/library/media/index.html

To upload it to a server -

http://developer.coronalabs.com/code/how-upload-image-server-multipartform-data

Dave [import]uid: 117617 topic_id: 32432 reply_id: 129044[/import]

GPS to find out if the user is in the building?

GPS works poor inside buildings and most often not…I maybe misunderstood you?

Joakim [import]uid: 81188 topic_id: 32432 reply_id: 129056[/import]

I used this barcode reader SDK before. You may take a look.

I used this barcode reader SDK before. You may take a look.