An app which can take an image with location

Hi,
I want to make an app that could take an image and save it with the name as
[latitude_longitude]
Thanks

I'm new to file saving, but you could use the Location sensor component, using location.GetLatitude and location.GetLongitude. You could then join those two together (using the Text Join block).

Yes. And, you can use the TinyDB to store the value. Also, set the DefaultFileScope of Screen1 to Legacy.

image

1 Like

Use this AIA file.

Location.aia (2.1 KB)

Hope this AIA file is the solution.

1 Like

Works well for me.

1 Like

I want the name of the file to be latitude_longitude but the name of the always shows app_inventor_xxxxx.jpg

xxxx over here are random numbers

Name of the what?

name of the image

Use the join block to join texts.

1 Like

You can use one of Taifun's extensions (I forgot the name sorry :sweat:) to do that, this should be the name of the file:
image
Edit: Here's the extension: App Inventor Extensions: File | Pura Vida Apps
All about using extensions in App Inventor: App Inventor Extensions (mit.edu)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.