Core button override

by djdan1...@gmail.com » Sat, 07 Mar 2009 10:53:27 GMT


Sponsored Links
 While in a call i would like to change the function of certain
buttons.  I have a service running that allows me to know when I'm in
call but i cannot get the onKeyDown function to work properly.  I have
gotten onKeyDown to work with activities and views.  Is this a
limitation of the function that it can't be used with services.  If
so, is there anyway to change what a button does such as the call
button or home button using a service?  Thanks for your help.

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



Other Threads

1. Get my SIM Phone Number

Is any way to get the SIM phone number without use
TelephonyManager.getLine1Number()?

I tried use :
TelephonyManager tMgr
=(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
  mPhoneNumber = tMgr.getLine1Number();

but don't work with my SIM Card. Anybody know other method to get the
SIM phone number without use the rild to get this information?

Best Regards,
Andr Barbosa.

-- 

2. drawing and refreshing small paint over static bitmap

Hello. I thought it was an easy find over all these android forums but
it seems i cannot find if there is a pre-built way to draw my sprite
(made up with a couple of shapes) over a static bitmap as background.
What I currently do is redrawing the background and drawing over same
canvas the sprite, for each onDraw() event, with some performance
issues ofcourse.
I remember some mode 0x13h experiments in old C, so there surely are
ways to copy-pixels behind the sprite, move the sprite, rederaw the
copied part of background to cover the old sprite, and draw the new
sprite position.
My question is different: is there a way to set up a certain number of
layers/levels and leave the bitmap on the bottom layer and going on
erasing-drawing only the sprite in the top layer? That would you
normally do for instance in actionscript3, you create 2 canvas, and
operate them individually. But if you want to be old-school you can
work with copypixel but there is almost never the need.
But whenever I search for "layers" or "overlays" searches spit out
GoogleMaps layers coding, MapView overlays stuff which really don't
matter :D
So what classes am I missing for doing this very basic thing?

Thanks

-- 

3. Open tablet device? And whatever happened to the TI Blaze tablet?

4. Question regarding RelativeLayout

5. AttributeSet, getAttributeValue method returns null.

6. Harvester: [HRD FORUM] Undangan: Customer Service Workshop

7. Create Parser for the given JSON