I have created a program that displays a toast every time I receive an incoming call. It is working fine on all phones I've tried - toast showing on the incoming call screen.
Yesterday I updated my HTC Desire S to Sense 3.0 (Android 2.3.5) and apparently it has a new lock screen that displays incoming calls. Opening the lock screen will bring me to the "original" incoming call screen and answer the call. I can also see my toast on the original call screen just for a second, before the call is answered.
The toast I display uses a custom layout, and it is displayed from a service. The service receives an intent from a broadcast receiver on incoming call.
I use the following code to show my toast:
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.popup_toast, null);
toast = new Toast(getApplicationContext());
toast.setGravity(Gravity.TOP | Gravity.FILL_HORIZONTAL, 0, 0);
toast.setDuration(Toast.LENGTH_SHORT);
toast.setView(layout);
toast.show();
Is there any way to set so that the toast is shown over the new Sense 3.0 lock screen?