I'd like to help my users take a clearer picture by delaying the "snap" while the phone is moving. I've been able to implement this with a cameraOverlayView so a tap on the image takes the picture, but I would like to use the standard camera button. What is the best way to hook in to the standard button? I've seen one answer to put a ...
Hi all,
I need some help with this problem. I want to detect when an object hits a device (which has an accelerometer built in) that's resting on a table. The hit/strike, say by a ball, causes a fast spike in the Z values and if the hit is in the center, very little y or x movement occurs. The problem I am facing is how to differenti...
Hi everyone,
So, the problem I'm trying to solve is to use an iPhone/iPod acceleration to manipulate directly a 3D object.
For that i've been searching lot's of stuff (Euler angles, Quaternions, etc).
I'm using OpenSG, where I have a 3D environment and want to manipulate a certain object (just rotating in all possible iPhone/iPod degree...
I would like add a this Apple example [AccelerometerGraph] the ability to store the data in a file until the app isn't closed. Without locking issues and other crappy problems of real time data collection.
Any idea, sample or something that a semi newbie can play with?
...
hello
I'm creating an iPhone application.
My application needs to detect the movements of the accelerometer and report the case of movement by the user.
In practice I have to constantly check that the coordinates received from accelerometer are equal to the coordinates saved in my movement.
My problem is that its implementation is not si...
I'm looking for an android code example on how I would be able to make my phone listen for a "shake" and then have it trigger webview.reload(); to simply reload the webview on the activity. Anyone have any insight on this topic?
...
http://developer.apple.com/iphone/library/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MotionEvents/MotionEvents.html listing 4-9 and 4-10
i tried to run the code but with no success, i run into a problem with gyroHandler.
can someone post an example of a completed code, without much changing the sample listings? meaning...
Hi,
Could someone please lead me in the right direction to finding out how to recognize that the iPhone has been rotated, using PhoneGap please?
Thanks!
C.
...
Hello all,
To be able to do some accurate calculations that I want for my app, I need to be able to get an accelerometer reading every 100ms. I haven't found a way to do this on android, it seems like the only way to get accelerometer readings is to put a listener that can listen at different intervals. Basically, is there a way to get ...
Hello,
I would like to use the accelerometer in a tab app. All three tabs would access the current x,y,z and change an mage based on that data. My problem is where does the initialization of the accelerometer go so that all three tabs can update based on the data? The update only needs to happen when you are in the current tab.
I can o...
I want to develop an application using accelerometer.
In windows mobile 6.1 pro, C#. I have a HTC touch hd phone for testing.
Is there any SDK for that? how can I start?
Thanks!
...
Hi,
Can anyone help on removing the g factor from accelerometer readings. I am using SensorEventListener with onSensorChanged() method for getting Sensor.TYPE_ACCELEROMETER data. I need only pure acceleration values in all directions. So at any state if the device is stable (or in constant speed), it should give (0.0,0.0,0.0) roughly...
I know how to do shake for the iPhone has been asked a million times on here, but I can't seem to find anything useful regarding the accelerometer with Cocos2D. Everything i have found involves using views and I don't think i am using any views in Cocos2D, if I am they are hidden from me I think. I want to be able to tell when any sort o...
I'm working on a relatively simple 2D side-scrolling iPhone game. The controls are tilt-based. I use OpenGL ES 1.1 for the graphics. The game state is updated at a rate of 30 Hz... And the drawing is updated at a rate of 30 fps (via NSTimer). The smoothness of the drawing is ok... But not quite as smooth as a game like iFighter. Wha...
I have some motion sensor samples that were recorded with an Iphone.
Now I'm into calculating a distance between a user gesture and the gesture that was recorded on the Iphone.
My problem is that the sensor data on the Iphone is represented in a different way then the android sensor data. If i don't move the Iphone I get data between -...
How to move sprite objects smoothly on x-axis on change of Accelerometer in Android using Cococ2d?
...
I am hoping to build an application similar to those egg shaking applications, to better understand how to detect motion on the iphone. I've been looking at accelerometer methods and motion and motion methods, but can't seem to get working what I want to do.
The specifics of my need are as follows: I want to be able to play one sound wh...
I'm working on an iPhone game using OpenGL ES. I recently updated my iPhone 3G to iOS4, and ever since the update, when I've been play-testing my app I've been getting very high latency on my accelerometer and touch events -- my phone will often respond a second later than it should, which makes the game unplayable. This doesn't occur al...
I am writing an application for WIM 6, and one of its features is to detect no movement. How can I access the phone's accelerometer? is there any managed API that wraps it so I can write it on c#?
Thanks.
...
I'm working on adding a calibration feature to an accelerometer-driven game. For the calibration, I need a single value from the accelerometer. Should I register a listener, get the first value it gives me, and unregister it, or is there a better way to get just one value?
...