Tibi Giurgiu

Greenhorn
+ Follow
since Jul 01, 2011
Tibi likes ...
Android Python Linux
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tibi Giurgiu

Yes, that's for opening a file, i guess i've misunderstood your question.
Are you asking how to implement those options, how to show the context menu or if it's possible to open the context menu of an external app (Astro I asume)?
12 years ago
try this
12 years ago


this is the example from that docs that you are referring to.


to start your activity you can do something like this


and you set an intent filter for that action
12 years ago
You can use onCallStateChanged (int state, String incomingNumber) method from android.telephony.PhoneStateListener.

This method gets called when the phone is ringing with state TelephonyManager.CALL_STATE_RINGING and after that it will be called again with TelephonyManager.CALL_STATE_OFFHOOK if the user accepts the call or TelephonyManager.CALL_STATE_IDLE if the call is rejected or not answered.
The same method will be invoked with TelephonyManager.CALL_STATE_OFFHOOK when you place a call but in this case the incomingNumber will be empty.

have a look here for an implementation
12 years ago