通过C++遍历Android SensorList
#include <sensor.h>
ASensorManager *mpSensorManager;
ASensorList list2;
int n = ASensorManager_getSensorList(mpSensorManager, &list2);
printf("list = %d\n",n) ;
for(int i=0;i<n;i++){
printf("%d:type = %d\n",i,ASensor_getType(*(list2+i)));
}