0

Recently, I am coding the android launcher.

I found a function in Nova Launcher and Apex Launcher, which can show the views of recent tasks by touching a button without a long press on the home key.

I'd like to get it, but who can tell me how to do?

Pascal Belloncle
  • 11,184
  • 3
  • 56
  • 56
Nyle
  • 79
  • 2

1 Answers1

0

Take a look at

performGlobalAction(int Action)
GLOBAL_ACTION_RECENTS

in android API documentation [here]: http://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html#performGlobalAction(int)

Alright, I think i found a solution for real this time, Check this thread at [here] : Android: Programmatically open "Recent Apps" dialog

Community
  • 1
  • 1
Peshal
  • 1,508
  • 1
  • 12
  • 22
  • Thank you,I read the docs just a moment ago.But now,I have two questions: One,how can I get the instance to use the method? Another one,the method appears in API 16,but I want to match the API 14 in my app. – Nyle Mar 12 '13 at 03:48
  • Oh,no,it means I can't access unless use my own UI , right? Anyway else? – Nyle Mar 12 '13 at 07:14