1

请咨询云台。在云台处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();
        }
    };
4

1 回答 1

0

云台内部有数据。因此,Gimbal.resetApplicationInstanceIdentifier() 适当的调用均成功了。

于 2015-07-30T06:56:03.763 回答