-
Notifications
You must be signed in to change notification settings - Fork 247
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
Added geotag api #305
Added geotag api #305
Conversation
@@ -0,0 +1,229 @@ | |||
package com.o3dr.android.client.utils; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chaviw create a geotag
package for this class.
getInstance().execute(new Runnable() { | ||
@Override | ||
public void run() { | ||
File saveDir = new File(getSaveRootDir(context).getPath(), "GeoTag"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chaviw you can pass a File
object argument to the File
constructor, so there's no need to use getPath()
.
…into add_geotag_api
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | ||
File dirs[] = context.getExternalFilesDirs(null); | ||
for (File dir : dirs) { | ||
if (Environment.isExternalStorageRemovable(dir)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chaviw check that dir
is not null
before checking if it's removable.
Hi, how would i use this to geotag my GoPro images taken by my Solo drone? Thanks! |
This api is intended to help developers integrate geotagging in their app. It requires some data from the vehicle, which the app will need to extract. We are working on adding the feature to the Tower app that will use this api to allow geotagging to work in specific situations. When that feature is added to Tower, we will update the release notes and documentation explaining how and when this feature can be used |
No description provided.