Colin,
Here's what I am doing. It works PERFECTLY on iOS. On Android (Galaxy Tab 2),
x is a out there number!
global currentAccel
on accelerationChanged x, y, z
put round(x*10) into currentAccel
end accelerationChanged
on doSetCar
put the left of btn "car" + (currentAccel*abs(currentAcc
I think I know what I would do, but I want to try it first before describing
the idea. Sadly, neither the mobileSensorReading or accelerationChanged
features appear to be working.
Can you show the code you're currently using to read the accelerometer?
On Sep 1, 2012, at 1:22 AM, Dan Friedman
Exactly! So, what do you do?
> But, aren't you reading the accelerometer in order to make something slide
> around? If you're assuming that a Y rotation is what happens in the user
> turns the left edge away from them, that will be right for phones but wrong
> for tablets.
>
>> Yes. My app
But, aren't you reading the accelerometer in order to make something slide
around? If you're assuming that a Y rotation is what happens in the user turns
the left edge away from them, that will be right for phones but wrong for
tablets.
On Aug 31, 2012, at 5:37 PM, Dan Friedman wrote:
>
> >
On 8/31/12 4:00 PM, Dan Friedman wrote:
Hi!
In an iOS project I have a button on the screen that when you tilt
the device, it slides left or right. Using the accelerationChanged
message, this is easy. However, now that I am trying to replicate
this on Android, it's not working. The "x" value
Colin,
Yes. My app is portrait only. I selected "Portrait" as the Initial
Orientation in the Standalone App Settings and I don't alter the orientation
settings in code. If you (or anyone else) has some advice, I'm all ears!!
-Dan
> I didn't know about that text file, but I do know about t
I didn't know about that text file, but I do know about the issue. Generally
speaking Android phones are in a default orientation when portrait, and
generally speaking Android tablets are in a default orientation when landscape.
So, for LiveCode to really let you know what's going on you have to