Annca icon indicating copy to clipboard operation
Annca copied to clipboard

How to change outfile path?

Open AFAP opened this issue 7 years ago • 4 comments

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

AFAP avatar Mar 16 '17 03:03 AFAP

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.

memfis19 avatar Mar 16 '17 10:03 memfis19

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.

AFAP avatar Mar 16 '17 11:03 AFAP

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)?

Mehul1000 avatar May 29 '17 12:05 Mehul1000

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).

memfis19 avatar May 29 '17 19:05 memfis19