简体   繁体   English

Adobe AIR / FlashBuilder 4.6:在Android App中创建提醒

[英]Adobe AIR/FlashBuilder 4.6: Create reminder in Android App

I am using Flash Builder 4.6 along with Adobe AIR to create an Android App. 我正在使用Flash Builder 4.6和Adobe AIR来创建Android应用程序。 I am looking to create some sort of reminder/appointment that will display a notification on screen or in the app bar at the specified time. 我希望创建某种提醒/约会,在指定时间在屏幕或应用栏中显示通知。 So far I haven't found a way to do this. 到目前为止,我还没有找到办法做到这一点。 I thought I might find this functionality in an ANE[Actionscript Native Extension], however I have yet to come across one. 我想我可能会在ANE [Actionscript Native Extension]中找到这个功能,但是我还没有遇到过。

Is this possible? 这可能吗? Thanks, in advance! 提前致谢!

There are open-source Native Extensions available that enable you to send Notifications on Android. 有一些开源的Native Extensions可用于在Android上发送通知。 This example by Daniel Koestler includes the ane file, as well as an example project and a tutorial. Daniel Koestler的这个例子包括ane文件,以及示例项目和教程。

To send a Notification at a specific time, you'd need a Native Extension for the Android AlarmManager . 要在特定时间发送通知,您需要Android AlarmManager的本机扩展。 See SO question Set notification to specific time for more details. 有关详细信息,请参阅SO问题将通知设置为特定时间

I'm not aware of any available native extension for the AlarmManager on Adobe's Developer pages or github. 我不知道Adobe的Developer页面或github上的AlarmManager有任何可用的原生扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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