I created an alarm app for android by adobe air in flash cs6.It works correctly and alarms at correct time and show a message on screen . I want write "something in as3 code" that when my app is in the background change to foreground and user can see the message. What is that code? I did some search over the internet and found something about .ANE files , is it possible to do my project with this file?
You should create a Background Service but it's not possible to do it in AIR/AS3 on Android, it must be done in Java.
The Service will wake up the application when it's time. You can write an ANE to do this: here.