rouen
rouen

Reputation: 5124

ActivityManager getRunningTasks not working on Lollipop?

If you want to get activity "on top", you call getRunningTasks(1) on ActivityManager, and you will get something like com.google.android.maps.MapsActivity in result.TopActivity.ClassName.

But I just tried it on Nexus 5 with Android 5, and no matter what app is on top (chrome, maps, home screen..), i get com.google.android.launcher.GEL

Is this some breaking change? Is this documented somewhere?

Upvotes: 2

Views: 845

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006664

Is this some breaking change?

Yes.

Is this documented somewhere?

Yes.

Upvotes: 4

Related Questions