diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-06-30 13:40:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:14:22 -0700 |
commit | aed7528443b68ce8aced14130fc3622ddf8ec866 (patch) | |
tree | effebf48082e60b641939064decdfeeac32cf2f2 /android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java | |
parent | d27777790ee956c532be1dcefb59332e424bedd2 (diff) | |
download | subsurface-aed7528443b68ce8aced14130fc3622ddf8ec866.tar.gz |
Android: add callback from Intent
Right now all this does is add the device string to the log.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java')
-rw-r--r-- | android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java b/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java index 25bc08bc7..432785f3c 100644 --- a/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java +++ b/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java @@ -27,6 +27,7 @@ public class SubsurfaceMobileActivity extends QtActivity public static boolean isIntentPending; public static boolean isInitialized; private static final String TAG = "subsurfacedivelog.mobile"; + public static native void setDeviceString(String deviceString); // we need to provide two endpoints: // onNewIntent if we receive an Intent while running @@ -58,6 +59,7 @@ public class SubsurfaceMobileActivity extends QtActivity // Log.i(TAG + " onNewIntent product name", device.getProductName()); // } Log.i(TAG + " onNewIntent toString", device.toString()); + setDeviceString(device.toString()); super.onNewIntent(intent); setIntent(intent); // Intent will be processed, if all is initialized and Qt / QML can handle the event |