Incoming Calls and extending the keycharactermap

by callingshotgun » Wed, 16 Apr 2008 22:54:52 GMT

Sponsored Links
 Hey all-  I've just now started ripping into building Android apps,
and it's a lot of fun-  But as extensive as the API documentation is,
there are a couple things that I can't quite tell if they're possible
or not, and I'd really like to utilize them for a some personal

1-  Is there a way to programmatically retrieve the number of an
incoming call?  I saw information on how to react to the event, but
there was nothing in there that gave the actual phone number.  This
may have been thought of before, but I was thinking about using the
incoming phone number to cross-ref with an online db of telemarketer
phone numbers, and maybe have the phone blink the background red or
something as a way of warning.  Really simple idea, could probably rig
it up via jabber (to a bot on a webserver that could handle the more
complex interactions with the database and just fire bac a result)-
But I'm missing that one critical component-  The actual phone number.

2-  I've been fooling around with an alternate keyboard layout-  Sort
of a mobile DVORAK for traditional 12-key keypads.  The idea on this
one would be to do away with the "abc,def,ghi" system and come up with
a mapping that minimizes the ungodly wait between letters when you
have to type, for instance, "fed", and the cursor has to blink a
couple times before moving to the next position.  Android seems like
an ideal match for this, if I could just somehow swap out the system
keymapping with my own-  But the documentation on keycharactermap
doesn't really give any pointers on how to create my own.  Is this
possible/undocumented?  Or is it something that Android hasn't/won't
open up to developers via the SDK?

Much appreciated:)


Incoming Calls and extending the keycharactermap

by Megha Joshi » Thu, 17 Apr 2008 18:57:21 GMT

 On Wed, Apr 16, 2008 at 3:54 PM, callingshotgun <[EMAIL PROTECTED]>

You cannot retrieve the incoming call number.

You may want to use an input method.  This is the thing that gets the '2'
keypress and tries to figure out if it's an A, B or C.  The one for the
qwerty key is very simple -- it uses the key character map.  We have basic
support for that now, via the InputMethod interface <> ;,
but we don't have support -- yet -- for supplying them system wide.  Right
now it has to be built into each app.


Sponsored Links

Incoming Calls and extending the keycharactermap

by callingshotgun » Fri, 18 Apr 2008 16:21:20 GMT

 Thanks for the info!  Do you know if there are any plans to support
pulling the incoming number in the future?


Other Threads

1. Overlay in Bounded Lat Long Possible?

Currently, I have been dealing with placement of items in the
ItemizedOverlay class with the google maps android library, which
seems to work just fine.  It handles the icon placments and associated
properties of the icons that I place on the viewer.
  As of lately though, I noticed that I loose the satellite view
altogether in the final zoom features of the map when I want to get in
real close.  I thought this would be a real good opportunity to use a
blueprint of an area as an overly on the gridded map so that there
were still areas of reference when analyzing an area up close.
  Unfortunately I have not been able to place a bounded region for the
blueprint on the map.  If I have latitude and longitude values for
each corner of where the blueprint should be places, I can't seem to
find a method to put this where I want it on the map.  The only
constructor/method that I have found only asks for a center point and
then sizes the object appropriately.  It seems odd that this feature
wouldn't exist but I can't find anything to hint that it does exist.

~ JFrog
"Debugging is twice as hard as coding something the first time.
Therefore, if you make your code as clever as possible, you are by
definition, not smart enough to debug it."


2. How to make a Widget start an app?

I am trying to do something that MUST be very simple but for the life
of me I cannot find the answer.

I have a very simple Widget taken from the book Hello, Android!

All it does is display the date and time. It works fine.

I want to make it respond to a 'click' and start the browser (or any
app for that matter).

I have spent absolutely ages researching how to do this and I can find
no examples on the web.

Can any one point me in the right direction, please.



3. Users marking down free apps because missing paid app features

4. Any androiders in Central Florida?

5. Create soft keyboard dynamically

6. VLC on Android

7. Users marking down free apps because missing paid app features