【问题标题】:Android NDK NativeActivity access GestureDetectorAndroid NDK NativeActivity 访问 GestureDetector
【发布时间】:2012-07-31 20:25:39
【问题描述】:

NativeActivity 是否可以访问 GestureDetector 并将事件绑定到它?

我认为这可能必须通过 JNI,很痛苦。

【问题讨论】:

    标签: android android-ndk detection gesture


    【解决方案1】:

    是的,您必须使用 JNIEnv 才能访问 GestureDetector - 它是 Java 类。

    所有 C API 都列在 docs 文件夹下的 STABLE-APIS.html 文件中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-14
      • 2012-02-17
      • 2012-11-22
      • 1970-01-01
      • 2016-08-15
      • 2011-05-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多