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. Definite need for a Cupcake SDK & release details.

I did not say otherwise but the best I can do right now is guide you
and help you solve your issue.

We are aware of what you're saying and we understand. Repeating it
over and over will not, unfortunately, make things happen differently.
Believe it or not, we heard you the first time. (And we were even
smart enough to think about it ourselves ;-))

I cannot, at the moment, give you more information about the SDK but
we're working {*filter*} having one available as soon as possible.








-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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

2. I want run my application in background, with "Service component"

Hello
    I want run my application in background, with  "Service
component",
If the application is running in background then there should be icon
of application, so when user click on icon the application should come
in fore ground.
   Is this possible in Android, anybody having suggestions plz
welcome.
   There is provision of Notification Manager for icon, but it is not
reacting to user events. Is there any other way to this.

Thank you
--~--~---------~--~----~------------~-------~--~----~

3. Definite need for a Cupcake SDK & release details.

4. SQLite functions - how to use them?

5. Cupcake availability?

6. Definite need for a Cupcake SDK & release details.

7. ActivityManager question