【问题标题】:Import attribute values in the gimbal导入云台属性值
【发布时间】:2015-07-30 04:28:26
【问题描述】:

请咨询云台。 在云台处getValue 继续发生NullPointerException。 代码如下。

 placeEventListener = new PlaceEventListener() {
        @Override
        public void onVisitStart(Visit visit) {
            String beaconName = visit.getPlace().getName();


            try {
                Toast.makeText(getApplicationContext(),
            "KeyAll : " + visit.getPlace().getAttributes().getValue("X").toString(),
            Toast.LENGTH_LONG).show();
            }catch (Exception e) {
                e.printStackTrace();
                Toast.makeText(getApplicationContext(),
            "Err : " + e.toString(),
            Toast.LENGTH_LONG).show();
            };

            beaconRegiste(beaconName);
        }

        @Override
        public void onVisitEnd(Visit visit) {
            Toast.makeText(getApplicationContext(),
            "End of " + visit.getPlace().getName(),
            Toast.LENGTH_SHORT).show();
        }
    };

【问题讨论】:

  • 你能调试你的代码并告诉我你得到异常的确切行吗?
  • 对不起,请访问.getPlace()。获取属性()。在(“X”)中获取值。 toString() 它没有找到getValue("X") 的值。但我试图在云台管理器中指定一个属性。

标签: attributes gimbal


【解决方案1】:

Gimbal 内部有数据。因此,Gimbal.resetApplicationInstanceIdentifier() 相应调用均成功。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-09-03
    • 1970-01-01
    • 2015-08-02
    • 1970-01-01
    • 2019-12-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多