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 to delete files from Android device file system

Hi,

I would like to delete file under "/data/etc/test" on my device which
has android FroYo.

I made an APK which does this using following lines of code:
++++
String test = "/data/etc/test";
File file = new File(test);

if (file.exists())
    file.delete();
else
    context.finish();

++++

Here in above code, it returns true for "file.exists()" but while
delete() call, it always returns FALSE.

I've included following permissions in my manifest file:
++++
<uses-permission
android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" />
    <uses-permission
android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
    <uses-permission
android:name="android.permission.CLEAR_APP_CACHE" />
    <uses-permission
android:name="android.permission.DELETE_CACHE_FILES" />
    <uses-permission
android:name="android.permission.DELETE_PACKAGES" />
    <uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission
android:name="android.permission.WRITE_SECURE_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" /
    <uses-permission
android:name="android.permission.WRITE_SYNC_SETTINGS" />
++++


I put my "test" file under "/sdcad" and that works fine, (i mean
deletes file) but same is not happening from /data/etc/....

Any help would be really appreciated.

Thanks in advance.

Regards,
polk.

-- 

2. DB changes for next version, how to debug?

I see that I need to do some queries to back up the data in the
onUpgrade method. My question is how do I test the two versions to
upgrade from X to Y without touching the actual marketplace?

Sources:

3. problem parsing the package

4. Problem with AudioRecord--java.lang.IllegalStateException: Unable to retrieve AudioRecord pointer for setPositionUpdatePeriod()

5. Back button problem

6. andriod

7. ant build seems to be broken on lib-projects with Android 2.3 SDK