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

1. onSaveInstanceState() normally not called ?

Am I right to assume that onSaveInstanceState() is not normally called
(which my logging indicates) - but only when the system is forced to
kill an Activity.

If so, since onPause() does not receive a bundle, what is the best way
to save state that should be restored the next time the Activity is
created ?


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

2. BroadCastReceiver Alternate

hi All ,

I m exploring Android SDK for ADC2 challenge.  I need to know If my
application main activity calls
intent for doing some network activity (blocking call in separate
thread ) meanwhile it starts another activity . how can I BroadCast
network response to second activity I guess through extending
BroadCastReceiver class but is there any alternate ? any interface
that should I implement ? I just need to show on top of that activity
a dialog box with Commands OK and CANCEL.

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

3. Surface to Native

4. onSaveInstanceState() normally not called ?

5. LogCat showing unknownHost Error

6. Why can't you see some paid apps on Market with Devphones?

7. How to prevent the user to enter nothing to a EditText?