set deviceID from MainActivity