Hi All,

I'm in the process of creating an Adobe Air for Android app and am
having trouble bringing the app to the foreground in the Android
system.

Part of the functionality of the app is to set alarms, when an alarm
sounds I want to wake the phone and bring the app to the foreground.

I have tried this:

public function onAlarm(event:TimerEvent):void
{
        NativeApplication.nativeApplication.systemIdleMode =
SystemIdleMode.KEEP_AWAKE;
        NativeApplication.nativeApplication.activate();
        alarm.stop();
        popup.addEventListener(MouseEvent.CLICK,onPopUpClick);
        this.parent.setChildIndex(this,this.parent.numChildren-1);
        this.addChild(popup);
        alarm_tone_channel = alarm_tone.play(0,20);
}

When the alarm goes off I can hear the alarm tone but the phone is not
woken from sleep and when the phone is unlocked the app is not in the
foreground.

I tried adding: this.stage.nativeWindow.activate();

This works on the computer but seems to create an error on the
phone...

Hope you can help!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to