Lock Screen Compatibility With Notification Apps.
Lock Screen Compatibility With Notification Apps.
I use LLX lock screen with NILS Notification app. However, the developer (Roymam) has told me NILS FP is not compatible with LLX Lock screen because the lock screen is not identifiable as a lock screen within his app, and it is just part of the general LLX desktop. So I tried the Floatify notifications app, and the same happens there. As a key feature of a lock screen is the capacity to display notifications, is there any way possible to identify the lock screen actually as a lock screen from these other apps ?
Thanks,
Nigel
]]>« Hello guys, I’ve got a question : (Previous Post)
(Next Post) I think the ComponentName class is missing, therefore it is not possible to use intent.setComponent »
< ![CDATA[
Why do you want to use llx as lockscreen in this case?
]]>
< ![CDATA[
What ? I don’t understand your question. I use LLX and part of LLX functionality is a great lock screen, which I can customise to suit my needs. I’ve used all lock screens previously and the in-built one is much better / less battery overhead, and completely customisable.
]]>
< ![CDATA[
Maybe use http://www.addictivetips.com/android/notifications-widget-displays-all-alerts-on-android-home-lock-screen/
]]>
< ![CDATA[
Or https://play.google.com/store/apps/details?id=com.nhancify.notify
]]>
< ![CDATA[
If he was going to use a widget, he could just use the NiLS widget.
]]>
< ![CDATA[
I do use nils widget, however nils has desktop and lock screen configuration options to have the widget display differently on different screens. Nils however only recognises the desktop options as opposed to the lock screen options.
]]>
< ![CDATA[
There is a way to do this (sorry, this is a technical answer, but you may forward it to Roymam).
Calling ActivityManager.getRunningTasks () will return a list of tasks. When the LLX lockscreen is active, the first one has a different top activity from the normal activity.
The normal (home) activity is “net.pierrox.lightning_launcher.activities.Dashboard” whereas the lockscreen activity is “net.pierrox.lightning_launcher.activities.LockScreen”.
Current LLX mode can then be discovered by regularly checking the topactivity of the first running task.
References:
http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29
http://developer.android.com/reference/android/app/ActivityManager.RunningTaskInfo.html#topActivity)
]]>
< ![CDATA[
Thanks Pierre, much appreciated. I will pass that on to roymam.
Regards
Nigel
]]>
< ![CDATA[
No problem. This is however quite a “hackish” solution. If Roymam has a better suggestion on how to do this, don’t hesitate to put me in touch with him.
]]>
< ![CDATA[
Nigel Pugh that would greatly benefit me as well because i use nils too.
]]>