sensormanager Questions
2
Solved
I've been waiting to try these APIs. I had already tried them on Beta with no luck and thought on release I would be able to use them. Today I tried with xCode 15 and any calls to start something f...
Journeywork asked 19/9, 2023 at 9:11
1
Solved
TL;DR how can I have an Android sensor permanently running/active/registered for my app, even if I close it?
Objective:
I'm making a Flutter application that counts your steps using the pedometer p...
Administrative asked 3/2, 2022 at 17:33
4
I was using Sensor.TYPE_ORIENTATION to determine current angle of device but TYPE_ORIENTATION is deprecated on API version 8. In SensorManager manual it refers to getOrientation() function in order...
Schiro asked 2/12, 2013 at 23:25
4
Solved
My app is a dialer and when user holding the phone near his head I need to turn screen off and prevent clicking on the controls - like native Android dialer behavior. What API level I need and how ...
Duchy asked 19/2, 2014 at 14:58
3
Solved
I want to find the camera screen orientation in locked portrait orientation mode, well I am using camera in my fragment class and I have already set my screen orientation as portrait, but the probl...
Denver asked 23/12, 2014 at 5:13
3
I am creating a thermometer app in android when I test on Galaxy S3 it shows that
TYPE_AMBIENT_TEMPERATURE NOT Available
TYPE_TEMPERATURE NOT Available
I want to know that Galaxy S3 has above ...
Robertoroberts asked 2/4, 2014 at 4:49
5
API Demos -> Graphics -> Compass
It works properly only, until you don't change the device natural orientation.
In most phones is the portrait and most 10 inch tablets are the landscape. If you ch...
Wynd asked 13/9, 2013 at 9:28
3
I am developing a Pedometer Android application to count number of steps taken and using the steps calculate the distance covered and calories burned. I have followed the tutorial
Create a Simple ...
Goosegog asked 19/10, 2017 at 6:32
2
Is it possible to get the current value of the Proximity Sensor in Android?
I know that I can use SensorManager and Sensor and register a state changed listener, but I have no need to be notified...
Tomsk asked 9/2, 2016 at 21:56
3
Solved
In my app, I am using the light and proximity sensor to detect phone out of pocket functionality and then unregistering the SensorManager when their detection is complete. But even when the CPU usa...
Gavin asked 17/6, 2012 at 11:41
2
Solved
I'm using a sensor for my Android Application. I register the sensor with a line of code:
mySensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_NORMAL);
I have int...
Beene asked 11/1, 2013 at 0:48
2
Solved
Below is sample code I am using:
private final SensorManager mSensorManager;
private final Sensor mAccelerometer;
private long prevTime=0;
public SensorActivity() {
mSensorManager = (SensorM...
Tragacanth asked 20/11, 2015 at 7:36
2
I have some problems with SensorManager.unregisterListener. They are similar with Android, Thread, Cannot unregister SensorEventListener and SensorEventListener doesn't get unregistered with un...
Aeon asked 16/6, 2014 at 8:59
3
I have this following code :
public SensorEventListener sensorEventListener = new SensorEventListener() {
@Override
public void onSensorChanged(SensorEvent event) {
float pressure_value = 0.0f;...
Featureless asked 29/7, 2015 at 4:12
4
Solved
I’m having trouble getting good orientation sensor readings. The sensor readings seemed unreliable, so I tested my code against two free sensor test apps (Sensor Tester (Dicotomica) and Sensor Moni...
Cotsen asked 21/3, 2013 at 0:4
3
Solved
I am trying to get the compass bearing in degrees (i.e. 0-360) using the following method:
float[] mGravity;
float[] mGeomagnetic;
public void onSensorChanged(SensorEvent event) {
if (event.senso...
Koren asked 1/3, 2013 at 10:53
1
I have been using a Samsung Galaxy S3 to work on an app that uses the barometer estimate the user's altitude. I use SensorManager.getAltitude(p0, p), and set p0 equal to the sea-level pressure repo...
Kumquat asked 26/7, 2013 at 2:6
1
Solved
I have been developing an application which needs to perform accelerometer calibration in several steps.
What I have done, is create a SensorEventListener that gets a certain amount of readings, a...
Illusionist asked 11/4, 2013 at 11:43
1
© 2022 - 2024 — McMap. All rights reserved.