No accelerometer

derez

Expert
Licensed User
Longtime User
My device, the Wits A81E, doesn't have an accelerometer.
Is there a way to launch the process of rotation from the program, not by the external sensor ? I would like to be able to change orientation without having to re-launch the program.
 

derez

Expert
Licensed User
Longtime User
Erel
I found this site in which there is open source for testing called Robotium, which includes orientation change by code Solo (Robotium :: Solo 1.4.0 API)) :
setActivityOrientation

public void setActivityOrientation(int orientation)
Method that sets the Orientation (Landscape/Portrait) for the current activity.
Parameters:
orientation - the orientation to be set. 0 for landscape and 1 for portrait

May be this can help creating such functionality.

see this also: http://groups.google.com/group/robotium-developers/browse_thread/thread/fdf2ab0412b47e7b
 
Last edited:
Upvote 0
Top