Thursday, July 22, 2010

[android-developers] Activity/ Layout on top of the InCallScreen

Hi All,

When I receive ringing state, I tried to launch an Activity to run my
apps.
case TelephonyManager.CALL_STATE_RINGING:
{
Intent intent = new Intent(context, ABC.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
context.startActivity(intent);
}

but I noticed that my apps is go behind the InCallScreen.
tried using delay to make the InCallScreen pop up first, then launched
my app, but still cannot replace on top of the InCallScreen layer.
Somtime its works (display InCallScreen for 2-3 second and then launch
my apps )

Could someone help me?

thanks
Sandeep

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate