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

by rjy...@gmail.com » Thu, 07 Jan 2010 14:57:15 GMT


Sponsored Links
 Hi
   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.
Thanks.

---------------------------------
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

Hi,

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
()

regards
-bytes

-- 

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