Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

How to stop it programmatically? #61

Open
smilelyj opened this issue Nov 26, 2018 · 2 comments
Open

How to stop it programmatically? #61

smilelyj opened this issue Nov 26, 2018 · 2 comments

Comments

@smilelyj
Copy link

Hi,

I am trying to add a timer to stop the scanner after 30 seconds. Could you tell me how to stop the scanner programmatically? Many thanks!!!

Yongji

@lucazin
Copy link

lucazin commented Nov 27, 2018 via email

@smilelyj
Copy link
Author

make a timer and close the activity Em seg, 26 de nov de 2018 às 20:29, Yongji Li [email protected] escreveu:

Hi, I am trying to add a timer to stop the scanner after 30 seconds. Could you tell me how to stop the scanner programmatically? Many thanks!!! Yongji — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#61>, or mute the thread https://github.com/notifications/unsubscribe-auth/Aa9RlhKh9_o33Yw3g0y9DjhFN2d4gNbWks5uzGsrgaJpZM4Yz9DU .

Thanks for your reply! Here is my use case:
Activity A call Activity B with this Scanner to scan barcode. But if I try to close the activity b by using either onBackPressed() or finish(), activity B is closed but the camera is still open. getCameraSource.stop() or release() doesn't work for me too. I am so confused.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants