Reputation: 5124
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
Reputation: 1006664
Is this some breaking change?
Yes.
Is this documented somewhere?
Yes.
Upvotes: 4