Regarding on key left

by Gladys » Thu, 25 Feb 2010 14:33:49 GMT


Sponsored Links
 Hi,

I am trying to move a window by changing its attributes when ever a
key is pressed.

The code i am using is
WindowManager.LayoutParams lp = getAttributes();
lp.x+=10;
setAttributes(lp);


for key right event.

This is working.but the left key event where i am using lp.x-=10 is
not working.

I am using this code in OnKeyDown() in PhoneWindow.java.

Can anyone help me out?

Thanks in advance

--



Other Threads

1. Who will call AddDataSink to use custom MIO node.

Hi ,

I  need to write a custom MIO node based on my hardware capabilities
for decoding and rendering video. This will reduce the datapath
(skiping OMXDecoderNode )

SourceNode -->  Custom_MediaOutputNode --> HW


The above should be the new datapath. If the custom MIO node,
indicates the compressed format (PVMF_M4V) in getParametersSync
( Capabilities exchange) I hope it can directly accept the Data from
the Parser.

My Query:
Looking at the Sample application sample_player_app.cpp in opencore
folder I see that the  I can explicitly specify the DataSinkNode.

But looking at the source code in /frameworks/base/media , I see only
the DataSource being set. How do I set the Sink to my custom MIO node
so that the DataPath bypasses OMXDecoderNode ?


Thanks
Ajay



--~--~---------~--~----~------------~-------~--~----~

2. LocationListener and location api working in Android Dev Phone (G1)

Thank you for your response...

I have been using the some wat same  code to run in the emulator and
it works fine as you have mentioned in response....

My actual doubt was that, does it work in the ADP1 as i dont have
handson  G1 or the DEV PHONE......

I like to know .....Have u tested above code in the dev phone if it
has worked well my doubt very much cleared ........

Thank you agin.......
regards
sheik





--~--~---------~--~----~------------~-------~--~----~

3. TextView with autoLink

4. SMS sync with Gmail or something else

5. problem with "Could not find helloAndroid.apk!"

6. help with my installation ADT and SDK in eclipse

7. SDK 1.1_r1 javadoc issue is fixed.