Hello,
Pretty new to Android development here... Is there an example out there of a working app with source that does something when you shake the phone? Is this doable in a background app? Done quite a bit of googling and can't find any good examples; only tutorials with little context.
Thanks!
...
I get
0
0
0
0
0
0
0
0
0
0
0
0
- (void)applicationDidFinishLaunching:(UIApplication *)application {resultValues.text = @"";
[[UIAccelerometer sharedAccelerometer] setUpdateInterval: 1.0 / kUpdateFrequency];
[[UIAccelerometer sharedAccelerometer] setDelegate:self];
}
- (void)accelerometer:(UIAccelerometer*)accelerometer didAccel...
Hi,
I'm currently trying to get the 3DAR library (http://spotmetrix.com/documentation) to work with the latest iphone/ipad ios but when I've followed the exact instructions and use the latest github version of the panoramic example (http://github.com/pmark/Panoramic) I keep getting 2 errors:
First error is about a missing
"SM3DAR_key...
I'm using the Android SDK (2.2) with a Droid and I have access to the 3-axis accelerometer and gyrometer.
I apologize in advance if this reveals my ignorance of physics. It has been awhile.
What I don't understand is why the accelerometer is giving different x,y,z values when I tilt the phone. It's standing still, at least, with neglig...
Hi I have an app that reads data from the accelerometer. However after the screen gets locked this not possible.
I have tried the following
-(void)startMonitoring{
UIApplication *thisApp = [UIApplication sharedApplication];
thisApp.idleTimerDisabled = YES;
....
....
}
-(void)stopMonitoring{
UIApplication *t...
I am calling a function in Accelerometer delegate method like this
This is in ViewControllerX.m
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
{
[self methodX];
}
i am also calling another function in interface method like this
This method is in ViewControllerY
- (BOOL)should...
I have a requirement in my app which requires me to display some message to the user if there is no activity happening for about 3 hours on the app/ipad.
I considered the solution of having an NSTimer that would start at launch. If the user performs any action, I invalidate the timer and start a new one. However, there is video playback ...
Hello, attached is a plot of accelerometer data with 3 axis. The sudden bumps in the plot is the noise. I would like to get rid of them. So what filter should be used in this case ? If it is possible provide some pseudo code for it and explanation.
Regards,
Levon
...
I'm using the accelerometer to move an object on my screen.
It's only working when the iphone is flat.
If I use the iPhone in another position, the object is not moving like I want
(the Y axis is not well managed).
So, I've to calibrate the position of the accelerometer, I guess.
But I've no idea how to do this.
Please help me.
Thank...
Hi all.
I want to create an application using which I can measure waist of any human being.
But I am not able to identify how to perform such kind of thing. I may can use ACCELEROMETER but how to use it or else if any kind of another logic any one can suggest me so that I can create such kind of application.
thanks in advance
...
Hi,
I'm trying to rotate a sprite using the accelerometer. when I tilt right, I want him to rotate slightly to the right, and when I tilt left, I want him to rotate slightly to the left...
Thanks in advance,
Reed
...
I've tried several ways of measuring the steps a user makes with an iPhone by reading the accelerometer, but none have been very accurate. The most accurate implementation I've used is the following:
float xx = acceleration.x;
float yy = acceleration.y;
float zz = acceleration.z;
float dot = (mOldAccX * xx) + (mOldAccY * yy) + (...
Has any one developed 6DOF pose estimation using only the iPhone sensors, not video? Drift from the accelerometer and gyroscope are understood.
The gyroscope provides fairly reliable relative orientation rates. I've been able to develop with the gyroscope data.
However, I'm having more problems deriving translation from the acceleromet...
I want to make a simple 2D game where the user has to navigate a ball through a maze (using the accelerometer of course). I used a simple view to make use of the accelerometer and move a ball on the screen. Now how do I go about building the maze? Would I have to use cocos2d or something similar? How do I make the ball stop or rebound wh...
Hi
I have just completed my game with cocos2d, however I go and build for release now (have always been building for debug) and now when I launch the game the accelerometer is screwed up.
It worked wonderfully in debug mode, with no issues at all.
What its meant to do:
Tilt left and right to move player left and right on screen.
What...
Hey all,
I'm trying to detect a swinging motion with an iPhone 4 using the gyro/accelerometer. I searched for some posts on SO about this, but couldn't find anything specific to my issues.
Do I need to do any sort of calibration for data from the gyroscope/accelerometer?
Anyone think of how I would measure a swinging motion?
Thanks!...
Hi, I am migrating from Symbian to Android. For symbian based nokia mobile phones, the support for accelerometer sensing using java is by the Mobile Sensor API (JSR 256) which is provided in the technical specifications of every nokia mobile phone that supports it.
However, for Android based "HTC Desire" mobile phone, I am not sure whet...
Hi, i made my own application in Android that use compass and accelerometer sensors to display the degrees of rotation and inclination of my device. I initialized all the listener and objects i needed (i followed some tutorials), and now i can catch the degrees as i wished. The problem is that the measures that sensors return aren't accu...
Im trying to get the direction of the vector pointing out of the camera, with respect to magnetic north. I'm under the impression that I need to use the values returned from getOrientation(), but I'm not sure what they represent. The values I get from getOrientation() don't change predictably when I change the orientation of the phone (r...
I'm currently working on a project which requires the detection of user state (walking, running, driving), I've looked through some of the existing solutions on Android platform such as pedometer or calculating velocity with given acceleration, but I'm still unsure how I can approach this problem. Is there a way to accomplish this withou...