Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Image picker

Is there a way to get the name of the file selected by the companion?

Author | ch, passion for improvement.

Best Answer
0 Votes
4 REPLIES 4

Try reading through this code https://github.com/Fitbit/sdk-photo-picker

 

In the watch face I developed, I followed the example above and I can capture the URI which contains the generated name. See if it works for you.

Best Answer
0 Votes

Thanks @pablopitty , the code generates a file name, the original file name doesn't seem to be available.

Author | ch, passion for improvement.

Best Answer
0 Votes

Oh, I see what you mean now, sorry about the confusion. You want the metadata, for which case the filename, of the image selected by the user. I read through the documentation and there does not appear to be a way to do that, unless you could decode base64 then reading the imageUri, I suppose it carries the image name there.

Best Answer

@pablopitty- thank you for responding, unfortunately the original file name is not part of the image. But was worth a shot.

 

Hopefully someone from Fitbit will answer.

Author | ch, passion for improvement.

Best Answer
0 Votes