Can android application overwrite the volume down/up key's behavior?

by AlCapwn » Fri, 13 Mar 2009 02:41:25 GMT

Sponsored Links
 You can override dispatchKeyEvent which should do the trick.


Other Threads

1. C2DM "NotRegistered" error when sending a message

Hi all

I am currently working on implementing C2DM stuff and have got this

1. Register the device and get back a device registration ID
2. The server gets a Client Authorization Token for "ac2dm" service
3. The server then sends a message to the device via C2DM using the
registration id and the client authorization code and gets the
following "NotRegistered" message back.

NotRegistered The registration_id is no longer valid, for example
user has uninstalled the application or turned off notifications.
Sender should stop sending messages to this device.

The thing is as soon as i get the registration id i am sending it to
my server which is then sending a message via C2DM all within the
space of 1 minute. so how can it not be valid?

I have registered for use the C2DM service and i would expect that if
i was not registered with Google then i would not get a registration
device id right? Although i don't remember getting an email from
google saying i was registered apart from that when i registered to be
white listed it did say something about being added to a list.

Anyway your views and opinions are welcome.



2. Slider Drawer Problem - disappearing slider

Hi there,

I am currently working on a video editing view for my app and I wanted to
include a sliding drawer with different video editing functions, but I
already ran into a problem with the slider itself because when tap it to
open, it opens fine, but when I tap it a second time to close it again, it
disappears entirely (the slider image moves off the screen). As I haven't
found anything similar I am hoping that someone here can help. Thank you in

Here is what I do to create the slider:



        <!-- CONTENT -->


3. Map is Empty, no matter what I do

4. Free trial and payed apps... How to switch from...

5. hTC Desire getting official Android 2 . 2 rollout tomorro

6. AudioPlayer class

7. How to determine if a home screen shortcut exists?