How to use the key event to emulate the acceleration sensor to let the screen change orientation.

by » Thu, 07 Jan 2010 14:57:15 GMT

Sponsored Links
   My hardward has not a acceleration sensor, But I need test screen
change orientation function. So I need emulate this function use the
key. How can I do.
  I seach a lot of infomation from internet, Some proposal is send the
KEY_ROTATE(Key code is 99) to /dev/input/event0,  But no effect.

RongJun Ying

Other Threads

1. listactivity xml

I definto manually strings to Displayed in the listview now I want to
make sure they are richimate by string.xml defining an array that drew
me to see the listview as the first


2. Interpretation


I'm newbie to Java, could anybody explain the meaning of

sp<MemoryHeapBase>         mMemHeap

const sp<IMemory>& sharedBuffer //In an argument list to function

const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger



3. UTF-8 encoding problem

4. How to Load My Local Asset Html File ? Content is in Hebrew

5. BaseAdapter getView() gets called 3x per item

6. Problems with the new ContactsContract API when picking a contact

7. play video encounter PV SW DECODER IS USED FOR MPEG4