2017년 4월 28일 금요일

Orientation Sensor 160426


Hi, I am using a Lenovo TB3-710 tablet that has an accelerometer sensor. I tried downloading a compass app and kinetics sensor app as per the forum below but it still doesn't work. When I tried to download the compass app it says that the tablet doesn't have a compass sensor, is this the problem?

orientation sensor works on some devices , and doesn't for others

--
Problem as to why my orientation sensor doesn't work I mean. Anything basic that I am trying to do on my app with the orientation sensor doesn't work at all.

--
Did you check your tablet's specs? Does it have the sensor? If your tablet doesn't have the sensor, there's not much we can do here.

-- 

When I tried to download the compass app it says that the tablet doesn't have a compass sensor, is this the problem?


it seems to be, your device does not have an orientation sensor?

what happens, if you try the suggestions from sstephan: orientation sensor works on some devices , and doesn't for others

-- 
Hi Italo, the tablet has a GPS and accelerometer sensor, am confused because other android mobiles that we are using such as the Oppo, Samsung Galaxy Nexus and Xiaomi, don't have orientation sensors in their specs and yet it works. Would it be that for the orientation sensor to work it needs accelerometer and compass sensor? I am reading also that it needs a GPS received.

Hi Taifun, i tried all the suggestions from sstephan and it didn't work :(

Thank you both for replying :)

-- 
Most tablets have an accelerometer, some tablets do not have an orientation sensor and/or a GPS,   GPS receivers are only available on the more expensive versions of tablets.

A GPS is a Global Positioning Sensor receiver.  It is not an orientation sensor.    An accelerometer is not a orientation sensor.   An orientation sensor is built-in hardware 
that interacts with the Earth's magnetic field.

Here is a link to the orientation sensor documentation for App Inventor 

You can check to see if a device has an orientation sensor by using the OrientationSensor.Available property.   If querying results in false; the device does not have an orientation sensor or the sensor is inoperative.

Properties
Available
Indicates whether the orientation sensor is present on the Android device.
Do the check.  Some tablets DO NOT have an orientation sensor...what is needed for a compass app.    If the app you downloaded requires a GPS and your tablet does not have a GPS the app might work under WIFI or NETWORK which will 'fill in' for the GPS in a LocationSensor call.

-- 
thank you this helps.

When i buy an android device though, what should i look out for in specs? As none of the specs these days would say "Orientation sensor". Should it be compass sensor?

-- 
The key words would be either Orientation sensor  or  magnetometer. What hardware is provided is up to the manufacturer.  Often the product documentation is incomplete.

If a device has a GPS, the manufacturer will state it has a GPS, if the maker does not brag about a GPS, then it probably does not have a GPS.  The issue of having an orientation sensor 
probably is more complex.  Almost no manufacturer will say their device does not have an orientation sensor.

If the device is very inexpensive, I guess it will lack certain hardware features.  If unsure you might go to the manufacturer's web page and ask if the device has a magnetometer or orientation sensor..they might tell you.

-- 
ok thank you

-- 

댓글 없음:

댓글 쓰기