Hello!
I am creating an app that uses the camera.
I would like to be able to decide the picture size.
I can do this easily using the Advanced Camera Library.
However, the documentation states that, to do anything
with the camera, you need to preview it.
Which is fine, however it also presents a "crowd"
problem: i.e. I want to avoid having to declare an
object everywhere and use only one as singleton.
Thus, what I was thinking to do is this:
- Create a service, originally named SPeripherals
- Add an "AdvancedCamera" object here(all events will be
handled in the service)
- Connect to the photo taking activity(I already have that)
- Manage requests from other activities in the service
Basically, what I want to do is a sort of "MSMQ" in a service.
Would you advise it's a good idea? If you think it's not, why?
What are the problems I may encounter?
Thank you.
A
I am creating an app that uses the camera.
I would like to be able to decide the picture size.
I can do this easily using the Advanced Camera Library.
However, the documentation states that, to do anything
with the camera, you need to preview it.
Which is fine, however it also presents a "crowd"
problem: i.e. I want to avoid having to declare an
object everywhere and use only one as singleton.
Thus, what I was thinking to do is this:
- Create a service, originally named SPeripherals
- Add an "AdvancedCamera" object here(all events will be
handled in the service)
- Connect to the photo taking activity(I already have that)
- Manage requests from other activities in the service
Basically, what I want to do is a sort of "MSMQ" in a service.
Would you advise it's a good idea? If you think it's not, why?
What are the problems I may encounter?
Thank you.
A