How-to start service automatically on system startup and on installation + custom Contacts ContextMenu

by Jonas Petersson » Tue, 14 Apr 2009 14:36:29 GMT

Sponsored Links

I do agree with this sentiment. However, for my app (Zap's Hitta) I need 
to grab the phone number just as the incoming call appears. Currently I 
do this by starting a service with a listener at boot time. I'd love to 
find a different way. (I also start it when the GUI is opened if needed, 
hence it starts at installation too.)

Related to my app (but sadly not the original subject): I understand 
that there is no way to use Contacts as a picker from my own Activity 
with my own ContextMenu since that particular case is explicitly 
disabled in an if statement.

Is there any way I could add an entry to the existing ContextMenu (in my 
case: "Lookup address" from phone number and store in phonebook) when 
Contacts is used the standard way?

I suspect it is not currently possible. Would adding such an ability be 
against the design goals?

(At the moment I use an ExpandableListActivity, but it's on the crude 
side for this purpose.)

                Thanks in advance / Jonas


Other Threads


   What is the latest status of the RFCOMM support in android?
   I'd like to write an application using RFCOMM to communicate with
PC. I don't want to
rebuild a custom image. I just want my application can run on a HTC
Magic. Is that doable now?

   I heard of there is an application bluex can transfer files with
obex. Obex is based on RFCOMM.
 So that indicates the rfcomm should be OK.

   But i am confused because lots of post on the list say RFCOMM is
not ready yet.


2. How to get to android jni library to access /dev/ttyS0

for temparately,
you can try "chomd 777 /dev/ttyS0" to see if it works or not.

2009/6/26 Elvis Dowson <>


3. Nokia N97 with the WOW factor

4. G1 now $50

5. Preloading android application by device type

6. Flash Player 10 Coming to Android in October

7. MediaController without VideoView ?