1

Under certain conditions, I need to bring the dialer on top during an ongoing call. I used to use activityManager.getRunningTasks to look for "com.android.phone", and then use the activityManager.moveTaskToFront to bring the in-call screen to the front. Unfortunately, with Lollipop, getRunningTasks is deprecated and only returns activity from my own app, so that no longer works.

So I tried using packageManager.getLaunchIntentForPackage("com.google.android.dialer") and while starting that activity works, it doesn't get me to the call in progress but another screen.

Does anybody have another idea? Please note that it needs to be the in-call screen (where you can mute, drop the call, etc.), not opening a new dialer to make a new call.

user3566056
  • 224
  • 1
  • 12

0 Answers0