我正在尝试调用getSystemService(method of Activity) 来访问传感器,但看起来它不存在。
这是我尝试过的代码:
(in-ns 'com....) ; Some Neko project
(.getSystemService a) ; a is :def of Activity
我什至检查了awith的所有方法
(use '[clojure.reflect :as r])
(require '[clojure.pprint :only print-table])
(print-table (:members (r/reflect a)))
有getSystemService一个清单。但不知何故我不能称之为:Clojure 说没有这样的方法。
更新: getSystemService不是静态方法,所以这就是原因,我猜。
但是,有没有办法?