Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change outfile path? #16

Open
AFAP opened this issue Mar 16, 2017 · 4 comments
Open

How to change outfile path? #16

AFAP opened this issue Mar 16, 2017 · 4 comments

Comments

@AFAP
Copy link

AFAP commented Mar 16, 2017

HI,can we change the path of photo?I see the method 'getoutputfile' is private.How to change the target floder?
Thanks.

@memfis19
Copy link
Owner

Hi, to get output file you should use next approach String filePath = data.getStringExtra(AnncaConfiguration.Arguments.FILE_PATH); on onActitvtyResult method. It is not possible right now, but I will add it.

@AFAP
Copy link
Author

AFAP commented Mar 16, 2017

Thanks.
Now,I can copy photo to target folder(Use "data.getStringExtra(AnncaConfiguration.Arguments.FILE_PATH)" on onActitvtyResult),but ,if we can set the target folder by configuration, that's so good.

@Mehul1000
Copy link

Hi memfis19,

Thanks for providing good example of custom camera. Can you please update code where i can set my own path with different folder? Also, in CustomCamera2Activity and CustomCameraActivity can you write code for flash (Auto,ON,OFF) and switch camera (Front/Back)?

@memfis19
Copy link
Owner

Hi, yes I'll add sample for flash and camera switch soon. As for customizing path I'am not sure about it, but will try to do it asap also. Anyway you can use approach provided by @AFAP and copy from specified path to your own. (Currently I'm working on quite big update for library so I'm not sure about adding custom path feature in current version).

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

No branches or pull requests

3 participants