2013/7/31 Zeus <zeus.alex@gmail.com>
Verifiquei que alguns APPs conseguem "perceber" quando o usuário abre algum outro aplicativo, como alguns App Blockers (https://play.google.com/store/apps/details?id=com.sp.protector.free)
Tem idéia de como fazer isso?
Ele pediu essas permissões:
Your applications information
retrieve running apps
run at startup
Dê uma olhada nesses links (principalmente o segundo)
http://developer.android.com/reference/android/Manifest.permission.html#GET_TASKS
http://developer.android.com/reference/android/app/ActivityManager.html#getRecentTasks%28int,%20int%29
http://developer.android.com/reference/android/app/ActivityManager.html#getRecentTasks%28int,%20int%29
Cuidado com esse método.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comentários:
Postar um comentário