accelerometer Questions

11

Solved

Is it possible to detect change in orientation of the browser on the iPad or Galaxy Tab using javascript? I think it's possible using css media queries.
Grewitz asked 31/3, 2011 at 11:15

17

Solved

I need to add a shake feature that will refresh my Android application. All I find of documentation involves implementing the SensorListener, but Eclipse tells me it's deprecated and suggest Senso...
Beaird asked 23/2, 2010 at 10:48

2

The issue that I'm running into is that when a user takes a photo with our app, using AVCaptureSession, I have no way of determining whether they took the photo in Portrait or Landscape mode. Our a...

4

Solved

I can use the following code to rotate object using accelerometer. transform.rotation = Quaternion.LookRotation(Input.acceleration.normalized, Vector3.up); But i would like to rotate object like...
Disentangle asked 21/2, 2015 at 16:25

7

Solved

The apple documentation for UIAcceleration class says, "When a device is laying still with its back on a horizontal surface, each acceleration event has approximately the following values: x: ...
Parahydrogen asked 15/2, 2012 at 12:57

1

TL;DR How come the accelerometer values I get from Sensor.TYPE_ACCELEROMETER are slightly offset? I don't mean by gravity, but by some small error that varies from axis to axis and phone to phone....

2

Solved

I used to use eclipse with android sdk but I just downloaded android studio. I wanted to use the accelerometer but for some reason I keep getting the same issue."Class or Interface expected" I am a...
Yaroslavl asked 11/3, 2015 at 4:49

5

I am developing some application like Runtastic Pedometer using the algorithm but I am not getting any similarity between the results. my code is as follows: public void onSensorChanged(SensorEve...
Malawi asked 2/12, 2013 at 9:2

2

Solved

I need something very simple, but I could not find a suitable example to learn from. My sole purpose is the following: As the device is placed flat (on its back) on the desk, it should show 0 (...
Materiality asked 24/11, 2014 at 13:59

17

Solved

I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this?
Ureide asked 29/9, 2008 at 20:14

1

I'm building a web app in html5 at the moment that needs to be able to detect when the user shakes their phone and how fast they are shaking it. I've been browsing around but can't seem to find any...
Conservative asked 8/9, 2012 at 20:23

1

Solved

I've been trying to implement a gyroscope image viewer using the sensors package, however, the result seems to be very laggy. I have found a similar project on YouTube which is trying to achieve a ...
Berte asked 14/9, 2020 at 20:49

3

I am using a STM32L476RG board and HAL SPI functions: HAL_SPI_Transmit(&hspi2, &ReadAddr, 1, HAL_MAX_DELAY); HAL_SPI_Receive(&hspi2, pBuffer, 4, HAL_MAX_DELAY); I need to receive dat...
Lakesha asked 14/10, 2018 at 18:17

5

Solved

Is there a special method to get iPhones orientation? I don't need it in degrees or radians, I want it to return an UIInterfaceOrientation object. I just need it for an if-else construction like ...
Weidar asked 25/3, 2010 at 19:25

6

Solved

I am using the UIAccelerotmeterDelegate method accelerometer:didAccelerate: but recently that method has been deprecated in iOS 5.0. So what is the alternative way to get the accelerometer data? Th...
Oldster asked 16/4, 2012 at 9:32

5

Solved

I need read about 100 samples per second off the accelerometer on a Android, and at a fixed sample rate. The current sensormanager does or offers neither. I've read Need to read android sensors re...
Clavicle asked 16/11, 2010 at 23:30

6

I am developing application for car acceleration tracking. I used standard accelerometer, calibrating it in specific position beforehand. Then, assuming phone's orientation is not changing, I logg...
Semester asked 22/10, 2011 at 10:7

7

I want to build an app that calculates accurate Distance travelled by iPhone (not long distance) using Gyro+Accelerometer. No need for GPS here. How should I approach this problem?
Foetus asked 11/7, 2011 at 8:3

7

I am working with android project.I need FFT algorithm to process the android accelerometer data.Is there FFT library available in android sdk?
Distillation asked 14/2, 2012 at 5:36

4

Solved

I am working on an application where I would like to track the position of a mobile user inside a building where GPS is unavailable. The user starts at a well known fixed location (accurate to with...
Nashbar asked 17/5, 2011 at 7:39

4

Solved

I have recently come across a few websites that seems to access the accelerometer or gyroscope on my laptop, detecting changes in orientation or movement. How is this done? Must I subscribe to som...
Saulsauls asked 7/12, 2010 at 15:37

4

Solved

Currently, I'm trying to rotate 3D Cube using orientation sensor values, using getRotation() method. Some unexpected behaviors are observed when the android device is rotated above some bounds. For...
Strath asked 7/4, 2011 at 7:15

3

Solved

I tried to use the Z axis data from SensorEvent.values, but it doesn't detect rotation of my phone in the XY plane, ie. around the Z-axis. I am using this as a reference for the co-ordinate axes....
Priscian asked 24/6, 2012 at 7:4

0

Hey when I run my code I get the error: Checksum mismatch for dex base.apk. I am building an App with Xamarin.forms and have Plugins( https://github.com/CrossGeeks/DeviceSensorsPlugin ) installed t...
Maurita asked 26/3, 2019 at 9:25

3

I want to rotate marker as per bearing or sensor value received from Accelerometer to show the user where actually he is moving. I have set marker icon and flat value to true but its not working as...
Geometrician asked 20/12, 2013 at 13:35

© 2022 - 2025 — McMap. All rights reserved.