The class PhoneStateIntentReceiver has been removed from the 0.9
version, but it is possible to detect an incomming call:
MyPhoneStateListener phoneListener=new MyPhoneStateListener();
TelephonyManager telephonyManager
=(TelephonyManager)getSystemService(TELEPHONY_SERVICE);
telephonyManager.listen(phoneListener,
PhoneStateListener.LISTEN_CALL_STATE);
public class MyPhoneStateListener extends PhoneStateListener {
Context context;
@Override
public void onCallStateChanged(int state,String incomingNumber){
Log.e("PhoneCallStateNotified", "Incoming number
"+incomingNumber);
}
}
In the Incoming Call screen I would like to paint some picture, show
some extra content.
I don't want to intercept the incoming call, I just want to change the
spash screen.
On 8 sep, 23:34, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> 2008/9/8 Jose María González <[EMAIL PROTECTED]>
>
>
>
> > I want to make an application which recognices an incomming call and
> > displays a CallerID and some usefull information.
> > But haven't been able to find an intet-filter action which will call
> > the correspond BroadCastReciver.
> > Is it possible to intercept an incomming call from an application?
>
> For security reasons, you cannot intercept the incoming call in any way,
> except for getting notified of an incoming call through
> PhoneStateIntentReceiver.
>
> > I already have done it with SMS and it works.
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---