Geotag picture

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
muhaliraza
Posts: 44
Joined: February 1st, 2018, 9:00 am

Geotag picture

Post by muhaliraza »

Is it possible to capture geotag pictures in cspro?
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Geotag picture

Post by htuser »

Dear Muhaliraza,
The Geotag feature is related to the Android photo capture software. Once you configure it on Android, CSPro will capture and save a geotagged photo.
Hope this help you.
Best
G.VOLNY, a CSProuser from Haiti, since 2004
muhaliraza
Posts: 44
Joined: February 1st, 2018, 9:00 am

Re: Geotag picture

Post by muhaliraza »

I checked again. The camera software in my device is taking geotag images, but when I take a picture from cspro. The picture is not geotagged. The camera software that cspro application opens by default does not have more options for setting.
muhaliraza
Posts: 44
Joined: February 1st, 2018, 9:00 am

Re: Geotag picture

Post by muhaliraza »

Dear htuser, one quick question. Can i open the camera application in csentery using the SystemApp commenad? any example to do it?
muhaliraza
Posts: 44
Joined: February 1st, 2018, 9:00 am

Re: Geotag picture

Post by muhaliraza »

I tried and open the camera software installed on my device using the following logit:

function picture()
SystemApp pic;
pic.exec("com.sec.android.app.camera");
end;

But I do not know how to save the picture to my csentry folder.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Geotag picture

Post by htuser »

Try to see if CSEntry have permission for location.
If yes, it depends on which app your device is using to take the photo.
I don't see which intent can be used in systemApp to enable or force geotagging...

https://stackoverflow.com/questions/408 ... s-on-or-no
https://stackoverflow.com/questions/694 ... is-enabled
https://stackoverflow.com/questions/602 ... era-progra
https://stackoverflow.com/questions/707 ... and-geotag

The CSPro Developer can help you more!
Best
G.VOLNY, a CSProuser from Haiti, since 2004
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Geotag picture

Post by Gregory Martin »

We'll look into adding this an option in the future.

For now, your best option may be to start the GPS, take the photo, capture the GPS reading that occurred while the photo was being taken (gps with the readlast option), and save it to your dictionary or somewhere where you can later associate it with the photo.
Post Reply