With the release of Android 5.0 (API level 21), notifications may now appear on the lock screen. Your app can use this functionality to provide media playback controls and other common actions。 the lock screen, and you can designate whether a notification from your app is visible on the lock screen.
從官方文件看,應該是為了獲得其他APP的通知內容從而在自己的鎖定螢幕介面上顯示。
http://developer.android.com/guide/topics/ui/notifiers/notifications.html#lockscreenNotification
取得通知可以不顯示啊,偷偷上傳啊
是作為系統通知層視窗來展示的,你可以去看一下WindowManager.LayoutParams的type屬性。我做過一個類似的功能,是將自己的設定為TYPE_SYSTEM_ERROR這樣的層級,確保自己在所有視窗的最上方。