diff options
author | Peter Rustler <peter.rustler@basyskom.com> | 2015-01-09 15:05:30 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-02-02 08:01:40 +0000 |
commit | 454fb59a5146b4b27756c7787e80681167819a63 (patch) | |
tree | 46da70e8fe05c040f8501293a95e0cdb8aca9c41 /src/android | |
parent | dd0f27136aa1d788c40631d9766fa9d1f11da4e6 (diff) |
Adapt to the new "onNewIntent" API
In Anroid the foreground activity get an intent by
implemmenting onNewIntent callback. This callback will
be called from android when a nfc tag is in range.
To support this callback an API was added in qtbase.
This patch implement an listener of this API to get
nfc events.
Change-Id: I9ecadf6db53fe1269cb9e66f0062e9ce1ec5a95e
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/nfc/src/org/qtproject/qt5/android/nfc/QtNfc.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/android/nfc/src/org/qtproject/qt5/android/nfc/QtNfc.java b/src/android/nfc/src/org/qtproject/qt5/android/nfc/QtNfc.java index bb1375ac..c52f3258 100644 --- a/src/android/nfc/src/org/qtproject/qt5/android/nfc/QtNfc.java +++ b/src/android/nfc/src/org/qtproject/qt5/android/nfc/QtNfc.java @@ -129,11 +129,4 @@ public class QtNfc } return m_adapter.isEnabled(); } - - public static native void newIntent(Intent intent); - - static public void onNewIntent(Intent intent) - { - newIntent(intent); - } } |