简体   繁体   中英

Android show on lock screen with Appcelerator Titanium

In Android (and Titanium),

I need a Window shows on Locked screen.

I found a solution making a Activity with FLAG_SHOW_WHEN_LOCKED on Titanium module, and it's working fine.

But can I do this using Titanium code? (I mean using java script code)

I'm using Titanium SDK 5.1.2 and How can I shows a single Window (ie created by Ti.UI.createWindow or any others) appears over the lock screen?

You can set flags on Titanium Window activities via the windowFlags property. You'd have to pass the constant value because Titanium does have a proxy for that constant.

I'm not sure if this would even work for Titanium Windows, but you can try.

If it doesn't work this might make a great feature request. Please check if it has already been requested at the Appcelerator JIRA . If it has not, create a ticket, link to this question but also provide a complete description in the ticket. Don't forget to drop a link to the ticket here so that others can watch it with you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM