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. Figuring out Google Checkout

I put out my first paid app this afternoon and have gotten 4 orders so far.
 When I initially set up my merchant account with GC, I had it set to
authorize only and not to authorize and charge.  So of my 4 orders, it shows
my net revenue as $0.00 for each.  How can I charge these orders?

I've gone into my merchant account now and set it to do both in the future.
 I guess I should have found a resource on this before setting it up.

Chris Stewart


2. Mod: Pre-order HTC Desire + Wildfire untuk member id-android

Rekan-rekan ID Android yang berbahagia, berikut ada special price dari
HTC untuk member id-android.
Untuk info/persyaratan terbaru soal pre order Desire dan Wildfire,
akan saya update di milis id-android.

-Tersedia masing-masing 50 unit untuk pre-order selama 2 minggu (30
Jul 14 Aug 2010)

-Untuk pembayaran, akan saya info lebih jelas ke milis id-android

-Bagi yang berminat, silahkan kirim ke email jalur pribadi (japri)
saya:  sertakan:

Nama, No Tlp/HP, Alamat lengkap berikut kode pos dan No KTP

-Akan saya update juga harga/biaya pengiriman (jika memang ada biaya
pengiriman, baik dalam/luar kota)

-Masih saya pertimbangkan apakah perlu DP, agar lebih serius.

Berikut harga special:

Desire  : Special Price: Rp 5,499,000 (Retail Price
Rp. 6,500,000)

Wildfire  :   Special Price: Rp. 3,299,000 (Retail
Price Rp. 3,733,000)

Note: Desire & Wildfire akan tersedia paling lambat akhir Agustus.
Mekanisme pengambilan akan di beritakan setelah unit tersedia. Masing2
yg sudah pre-order akan dihubungi melalui milis id-android (wajib
pantau milis).


Agus Hamonangan

3. Nexus One 2n

4. Texturing a square with OpenGL ES

5. Looking for Android Developer

6. Android JNI AttachCurrentThread throws an exception in java

7. Airplane mode & scheduling of PendingIntent(s) problems (Froyo Android OS 2.2).