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
projects.

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:)

-Alex
--~--~---------~--~----~------------~-------~--~----~



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 <
 http://code.google.com/android/reference/android/text/method/InputMethod.html> ;,
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. How do I customize the parent in an ExpandableListView?

Hi,
I'm trying to customize the parent(or header) for an expandablelist
and I haven't found a solution yet.
I want an imageview and two textviews in the parent.
This is driving me insane atm. Please help me.

Regards
Ben

-- 

2. ORMLite 3.2 with native Android support for Sqlite released

We have released version 3.2 of the ORMLite package with a new backend which 
supports Android OS native database API calls to SQLite.

You can download the Android release files here:

http://repo1.maven.org/maven2/com/j256/ormlite/ormlite-android/

Example projects using ORMLite are posted here:

http://ormlite.sourceforge.net/android/examples/

ORMLite home page here with the feature set and online documentation:

http://ormlite.sourceforge.net/

Documentation about how to get started with Android is here:

http://ormlite.sourceforge.net/javadoc/ormlite-core/doc-files/ormlite_5.html

Love to get some feedback from more Android developers.
gray

-----------------

ORMLite provides the following features:

* Setup your classes by simply adding Java annotations.
* Powerful abstract Database Access Object (DAO) classes.
* Flexible QueryBuilder to easily construct simple and complex queries.
* Supports native support for Android OS.  Also has backend for JDBC 
connections.
* Handles "compiled" SQL statements for repetitive query tasks.
* Supports "foreign" objects with the class field being the object but an id 
stored in the table.
* Basic support for database transactions.
* Auto generates SQL to create and drop database tables.
* Support for configuring of tables and fields without annotations.

-- 

3. Verizon Moto droid auto update to 2.2 yesterday

4. getting and stopping a single running service

5. How to add option to "share via" menu

6. Fil-rate workaround with FBOs?

7. communication to oracle