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