Skip to content Skip to sidebar Skip to footer

Android- Which Thread Does Run Onsensorchanged?

if I attach a listener to a sensor of the device (like below), in this situation while onSensorChanged happens, which thread does run generateNewRotation method, main Thread or...?

Solution 1:

OnSensorChanged() gets called inside the Main Thread, also called the UI Thread.


Post a Comment for "Android- Which Thread Does Run Onsensorchanged?"