9 changed files with 131 additions and 6 deletions
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* Copyright (C) 2018 Pinecone Inc. All rights reserved. |
||||
* |
||||
* QGroundControl is licensed according to the terms in the file |
||||
* COPYING.md in the root of the source code directory. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#include <QtAndroidExtras/QtAndroidExtras> |
||||
#include <QtAndroidExtras/QAndroidJniObject> |
||||
#include "QGCApplication.h" |
||||
#include "AndroidInterface.h" |
||||
#include <QAndroidJniObject> |
||||
|
||||
QString AndroidInterface::getSDCardPath() |
||||
{ |
||||
QAndroidJniObject value = QAndroidJniObject::callStaticObjectMethod("org/mavlink/qgroundcontrol/QGCActivity", "getSDCardPath", |
||||
"()Ljava/lang/String;"); |
||||
return value.toString(); |
||||
} |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* Copyright (C) 2018 Pinecone Inc. All rights reserved. |
||||
* |
||||
* QGroundControl is licensed according to the terms in the file |
||||
* COPYING.md in the root of the source code directory. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#pragma once |
||||
|
||||
#include <QObject> |
||||
#include <jni.h> |
||||
#include <QtCore/private/qjni_p.h> |
||||
#include <QtCore/private/qjnihelpers_p.h> |
||||
|
||||
class AndroidInterface |
||||
{ |
||||
public: |
||||
static QString getSDCardPath(); |
||||
}; |
Loading…
Reference in new issue