Why Obscure Event is never fired?

I have and app in Windows Phone 8.1 Silverlight and I want to detect when lock screen is activated... I tried using Obscure Event this way:
On Main Constructor:
App.RootFrame.Obscured += RootFrame_Obscured;
and then...
void RootFrame_Obscured(object sender, ObscuredEventArgs e)
Debug.WriteLine("OnObscured");
...just to test if this event was firing... but even when I activate the Lock Screen, this event is never fired!
Am I doing something wrong?

Hello,
Please verify that the type of App.RootFrame is
PhoneApplicationFrame. Also make sure that you are not running under the debugger and that your app is running directly from the layout.
Thanks,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

Similar Messages

  • BROWSER_INVOKE Event Never Fired

    I am trying to get the BROWSER_INVOKE event to fire in my air application.  I have followed the instruction on the adobe site and use the example install app badge code.  However the event never get fired.  I was wondering if it is because the example app uses the installApplication as opposed to launchApplication api.   If so is there a way to install then use launchApplication so the BROWSER_INVOKE Event will get fired?
    Thanks for the help.

    I have taken some time to generate a super simple app to show my problem.  If someone could take a look and let me know why it is not work it would really help me out.   I an new to AIR development so it could be something really dumb.   Also I have set the allowBrowserInvocation to true and false and the app start starts but either way I do not get the event.
    I first thought it was the installApp call but the docs say it will also call the event.
    The Sample Web Site which is nothing more the the contents of the Install Badge Code is at.
    To test goto http://host/default_badge.html
    The HTML And Install Button
    http://dl.dropbox.com/u/23800478/Sites.zip
    The Application
    http://dl.dropbox.com/u/23800478/testit.zip

  • All the Event receivers getting fired in SharePoint 2010 Event receiver Solution

    Hi friend.
    I have two event receivers. both are deployed as Farm Solution with Site as scope.
    ER1=> This event receiver is attached to Form Library and I have changed it's URL in Element.xml ListUrl as Listurl="TimeLog/Forms"
    ER2=> This event receiver is attached to Custom list and I have changed its Url in Element.xml as ListUrl="Lists/MyList"
    Both the Event receiver have ItemUpdated Event
    Here TimeLog is name of Form Library where I log time and MyList is name of custom list.
    Event Receivers are deployed to my Root site but I have page to redirect to other site collection which are under root site which contains my list and library. (Note: I dont have any list and library on my root site)
    Http://myportal/
    and I have other site collections
    http://myportal/sites/A
    http://myportal/Sites/B and so on..
    When I activate both the Event Receiver feature in SiteCollection "A" and updates some value in myList both the event receiver get fired and logs are generate.
    Can some one help me out to get only relevant event receiver get fired.  
    Thanks & Regards
    Gireesh Painuly

    Thanks all for your response.
    I identified the problem but did not find any solution. I would like to elaborate my requirement in detail:
    1- My Site collection structure is as below
    a. http://SP13/  => my root site as team site
    b. http://SP13/Sites/Client1
    c. http://SP13/Sites/Client 2    ..... and so on.. with same URL pattern.  
    1- I have created a SharePoint 2014 Empty SharePoint solution as Farm solution ( Because I have multiple site collection in a web application which perform same operation but belong to different clients)
    2- I added two Event Receivers in in this solution name ER1 and ER2
    3- I created two features ER1-Feature and ER2-Feature these feature contain related ER1(ER1-Feature) and ER2(ER2-Feature) i.e one feature contains ER1 and another feature contains ER2. Both of these features have scope=Site because I don't have any list
    and library at Root site that's why scope has not set to Web level.
    4. I created two list ERList1 and ERList2 for respected ER's i.e ERList1 for ER1 and ERList2 for ER2
    5. Both ER1 and ER2 has two methods ie. Item was Added and Item was Updated. I have just written code in these methods to create a text file to check which event receiver get called. I am not updating any list or library in these event.
    6. While creating Event Receiver I have selected Custom List as the source for triggering Event. but I modified Element.xml file of both the Receiver as below:
       A. ListUrl="Lists/ERList1" => in ER1 for ERList1 List
       B. ListUrl="Lists/ERList1" => in ER2 for ERList2 List.
    7. I Deployed my Solution to my root site ie Http://SP13/
    8. Now when I go to http://SP13/Sites/Client1 and open the ErList1. after adding a record in this list.. I get two log files generated in my drive that is ER1Executed.txt and ER2Executed.txt ( These files are generated by code which I have written in my
    ItemAdded and ItemUpdated methods of both ER1 and ER2 respectively
    9. Same two files are generate if i add any itme in ERList2 as well.
    10. But I identified it by creating both of these list at my root site to check whether tow file get created or not. but here it works fine just creates respected file. it means on related event receiver get fir as it should.
    So conclusion: 
    when Event receiver is activated in http://SP13/Sites/Client1 it creates two files mens ER is not able to find the list url properly. because in child site collection url get changed
    http://SP13/sites/client1/Lists/Erlist1
    How can I fix the URL in Element.xml so that related Event Receiver gets fired. I have multipla project in same Url pattern so that solution is deployed as Farm.
    Thanks 
    Gireesh Painuly

  • The apexafterrefresh event not being fired in Chart IR's

    Hi all,
    I am adding additional functionality to IR reports using the plug-in architecture in Apex 4.1.1. A Dynamic action has been added to the "After Refresh" event for the #apexir_WORKSHEET_REGION jQuery selector.
    This works fine in all cases except when no data is found in the report. This has been fixed in 4.2 so I can live with this until the upgrade. However, it also does not work when a chart is created in the report, the apexafterrefresh event does not get raised. Therefore my dynamic action will not fire. Looking at the apex_interactive_reports_4_1.js this event gets raised for the table element with an ID stored in apexir_WORKSHEET_ID ie:
    apex.jQuery('#' + $v("apexir_WORKSHEET_ID")).trigger('apexafterrefresh', that.report_id);However this table element does not get rendered when a Chart is displayed and therefore the apexafterrefresh will not get raised.
    In apex 4.2 the widget.interactiveReport.js has been modified to handle the no data found but not charts:
    var lTriggeringElement$, lWorksheetId;
                            lWorksheetId = $v( "apexir_WORKSHEET_ID" );
                            if ( $x( lWorksheetId ) ) {
                                // If the table element containing data exists (ie when the report returns rows),
                                // use that to trigger the event.
                                lTriggeringElement$ = apex.jQuery( '#' + lWorksheetId );
                            } else {
                                // Otherwise, use the span holding the no data found message.
                                lTriggeringElement$ = apex.jQuery( '#apexir_NO_DATA_FOUND_MSG' );
                            lTriggeringElement$.trigger( 'apexafterrefresh', that.report_id );I have created a test case on apex.oracle.com - http://apex.oracle.com/pls/apex/f?p=41357:1 In this example I simply display an alert from a Dynamic action with the following attributes:
    Event - After Refresh
    Selection Type - Region
    Region - Interactive Report
    As can be seen when the user navigates to the report the alert displays, however when you navigate to the Chart the alert does not display.
    In my mind this is a bug and the IR reports JavaScript should be modified to raise the event apexir_WORKSHEET DIV Element instead. This would fix both issues.
    Any ideas on how to overcome this issue?
    Thanks
    Chris.

    For everyone's information Bug 16029272 - ALERT (APEXAFTERREFRESH EVENT) NOT BEING FIRED IN CHART OF INTERACTIVE REPORTS has been raised regarding this issue.

  • Why does the iMessage never show what time it was sent

    Why does the iMessage never show the time the iMessage was sent and also delivered or read

    Matt,
    You can't remove the time.  However, if you make the column narrower, only the Date will show.

  • Why different events in iPhoto and in iPhone when i synchronize all events in my Mac

    why different events in iPhoto and in iPhone when i synchronize all events in my Mac?

    Because there is no connection betind iPhoto on the Mac and iPhoto for IOS other than  the name
    LN

  • Why do some apps never finish installing on my iPad?

    Why do some apps never finish installing on my iPad?

    Something could be clogging the download pipe.
    If the downloads are stalled or "waiting" - try these suggestions.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered.
    If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • PlEASE HELP EASY QUESTION: unload event is not firing at all.

    Hi, onUnload event is not firing in Safari browser. I tried with different ways to capture that event but i failed to capture that event. So please help me on this, give suggestions to capture that event. Or any other event is firing when window is closing. Actually, i need to execute when window is closing. But in Safari the window is closing without firing of any events.

    Safari doesn't execute the unLoad action when closing windows, period!
    It only executes it when loading another page.
    I might be wrong but I think Safari doesn't allow you to close a window with Javascript at all. All close events are blocked.
    Maybe a SWF file can do it somehow. But I'm not sure...

  • Which event will be fired when I after set JFrame.setVisible(false)

    Experts.
    I want to know which event will be fired when I after set JFrame.setVisible(false)?
    Because I need to check a thread is finished it job or not.
    I have checked windowClosing event, but it doesn't work.
    Thanks
    Francis

    Oh....
    Sorry, I find it will fired on componentHidden event.
    Very sorry.

  • Why the event latch: cache buffers chains wait event arises and resolution

    Can any one please give full information about:
    latch: cache buffers chains wait event
    Why this event arises and resolution?

    Google gave me
    http://www.pythian.com/news/1135/tuning-latch-contention-cache-buffers-chain-latches/

  • Why JSlider event listener no response?

    Thanks,
    hi, the JSlider does exist, but when it slides, data is unchanged.
    Please help.
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.Hashtable;
    import java.awt.event.*;
    import javax.swing.event.*;
    // import AppletAndApplicationExample.AppQuitter;
    public class Combox extends JApplet
        private LayoutManager Layout;
        private Container Panel;
        private Drawing drawing;
      ..    private String energyId[];
        private int numberofCells;
        private int numberofsets;
        private int id; //PlotEnergyId
        private double lineWidth;
        private int min = 1, max = 16, inc = 5;
        double scale = 1.0;
        private String currentPattern;
        private JSlider dJSlider;
          public void init() {
             Layout = new BorderLayout ();
             getDrawingData();                               
                    dJSlider = new JSlider(min, max, 6);
                    drawing = new Drawing();
            Panel = getContentPane();
            Panel.setLayout (Layout);
            Panel.add (drawing, "Center");
            JPanel sliderPanel = new JPanel();
            sliderPanel.setLayout(new BoxLayout(sliderPanel,
                                   BoxLayout.PAGE_AXIS));
                            dJSlider.setAlignmentX(Component.LEFT_ALIGNMENT);
            sliderPanel.add(dJSlider);
            dJSlider.setMajorTickSpacing(5);
            dJSlider.setMinorTickSpacing(1);
            dJSlider.setSnapToTicks(true);
            dJSlider.setLabelTable(getLabelTable(min, max, inc));
            dJSlider.setPaintTicks(true);
            dJSlider.setPaintLabels(true);
            dJSlider.addChangeListener(
                    new ChangeListener() // anonymous inner class
                    // handle change in slider value
                        public void stateChanged(ChangeEvent e)
                           int value = ((JSlider)e.getSource()).getValue();
                           scale = (value+4)/10.0;
                        Panel.add(sliderPanel,BorderLayout.NORTH); // ADD Slider
                        scaleData(); // use JSlider to obtain new data
                        System.out.println(scale);// found unchaged data,scale =1,why???
         private Hashtable getLabelTable(int min, int max, int inc) {
            Hashtable<Integer, JLabel> table = new Hashtable<Integer, JLabel>();
            for(int j = min; j <= max; j+=inc) {
                String s = String.format("%.1f", (j+4)/10.0);
                table.put(Integer.valueOf(j), new JLabel(s));
            return table;
        public void getDrawingData()
        public void scaleData()
            for(int i = 0; i < numberofCells; i++)
                  for(int j = 0; j<cellsPointsNumber; j++)
    xCells[i][j] = (xCells[i][j])*scale+TRANSITION;
    yCells[i][j] = (yCells[i][j])*scale+TRANSITION;
    public static void main(String[] args) {
    /* Set up the frame that holds the applet. */
    JFrame appletFrame = new JFrame("My Applet");
    Applet theApplet = new Combox();
    appletFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    appletFrame.setSize(800,800);
    appletFrame.add(theApplet, "Center"); // applet fills
    // frame
    /* Now start invoking applet methods. */
    theApplet.init();
    // applet
    appletFrame.show(); // bring frame and initialized
    // applet on screen
    theApplet.start();
    theApplet.stop();
    theApplet.destroy();
    } // end class 

    System.out.println(scale);// [b]found unchaged data,scale =1,why???[/b]scale is 1 because you set it to 1.0 initially and you never changed it. Notice that this line is executed just once in the init() method. It is not part of the change listener.

  • Urgent:Proration Event group Not firing

    Hello,
    I have setup a Proration event group. What i find is if i set an element with the termination rule as Last Standard Process, then Pro-ration event group doesnt fire , however
    if the termination rule is set as Actual termination rule , then the proration event is firing.
    Can somebody pls explain why this is happening and also i want to pay the employee only till the termination date of the employee. Can someone tell me if i need to set the termination rule to actual termination date?
    Regards,
    Gayatri

    When you set an element with the termination rule as Last Standard Process the 'end date' of the element is set to the last day of the month when the employee gets terminated. This is why the Pro-ration event group doesnt fire.
    You can add the following datetracked events in your proration group and make necessary changes in your fast formula.
    Datetrack Update - PER_ALL_ASSIGNMENTS_F - ASSIGNMENT_STATUS_TYPE_ID
    HTH

  • Why does adobe cc never seem to work for me?

    So a bit of back story, Ive been using adobe products for a while know adobe cs5, cs6 and cc
    Ive never had any problem with cs5 and cs6 in the whole time ive used them, About 7-8 months ago i decided to finally upgrade to cc.
    Ever since I got it ive had major problems all the time, main one being that it seems like i haven't finished the m adobe id profile? When ever i try to use one of my adobe apps like premiere it literally always either fails to sign in, or will sign in yet say that I dont have a sequence type which yo can only get by signing in (dslr video sequences)
    Recently I decided to get a laptop which i put my second license on, It took ages to install and kept failing. Even on my laptop if im not connected to the internet it wont even let me log in, sometimes i am even connected and it still wont let me.
    Its quite hard to explain all this so that's why its a bit vague but come on adobe? What the hell is the problem, ive tried some fixes but nothing seems to work? Stop asking me to update info when all of it is up to date and filled in...

    Turns out it was an Adobe XI GPO assigned to the domain. Very strange as there were no settings within the GPO.
    Disabled and all works fine.
    Thanks for the pointer.

  • Event handler getting fired on all list and libraries

    I have created an event handler and add it to a custom content type. Some how this event handler is getting fired on each every list which are there inside a site. Below is my content type declaration with fields and event handler. This content type
    is being activated using a featur scope at "Site".
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Document (0x0101) -->
    <ContentType ID="0x01010069131024FE3C485FAEF6C36926B5FD67" Name="CIB Document" Group="CIB Content Types" Description="CIB Content Types" Inherits="FALSE" Version="0">
    <FieldRefs>
    <RemoveFieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Hidden="TRUE" Name ="Title"></RemoveFieldRef>
    <FieldRef Name="Metier"
    ID="{F3ABF2F2-437B-4403-8A11-BEAE9F507009}"
    DisplayName="Metier"
    Sealed="TRUE"
    Required="FALSE" />
    <FieldRef Name="Department"
    ID="{0B11D33C-B8D1-485F-A483-755BFE55C2B9}"
    DisplayName="Department"
    Sealed="TRUE"
    Required="FALSE" />
    <FieldRef Name="Owner"
    ID="{FC6FE3D4-5EEE-4812-A77C-499AB9927D1A}"
    DisplayName="Owner"
    Sealed="TRUE"
    Required="FALSE" />
    <FieldRef Name="ExpiryDate"
    ID="{D68E037B-63A2-42FF-8150-412972CB062F}"
    DisplayName="Expiry Date"
    Sealed="TRUE"
    Required="FALSE" />
    <FieldRef Name="SecurityStatus"
    ID="{5954E9C2-921B-46FB-8A7B-2BC0F62BD011}"
    DisplayName="Security Status"
    Sealed="TRUE"
    Required="FALSE" />
    </FieldRefs>
    <XmlDocuments>
    <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
    <spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
    <Receiver>
    <Name>CIBDocumentHandlerItemAdding</Name>
    <Type>ItemAdding</Type>
    <Assembly>Common.SharePoint.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=68d03adf96d84a47</Assembly>
    <Class>Common.SharePoint.Web.Handlers.CIBDocumentHandler</Class>
    <SequenceNumber>10500</SequenceNumber>
    </Receiver>
    </spe:Receivers>
    </XmlDocument>
    </XmlDocuments>
    </ContentType>
    </Elements>

    You need to add the ListTemplateId or ListUrl to the Receiver element,
    E.g. If you had a list definition with the template ID 10500, then your event receiver XML would look like this:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="10500" >
    <Receiver>
    <Name>CIBDocumentHandlerItemAdding</Name>
    <Type>ItemAdding</Type>
    <Assembly>Common.SharePoint.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=68d03adf96d84a47</Assembly>
            <Class>Common.SharePoint.Web.Handlers.CIBDocumentHandler</Class>
    <SequenceNumber>10500</SequenceNumber>
    </Receiver>
    </Receivers>
    </Elements>
    Regards, Matthew
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • Key events are not fired for  SwingTextField

    No event is fired when a key is typed/pressed. Am I missing something here?
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.ext.swing.SwingTextField;
    import javafx.scene.input.KeyEvent;
    Stage {
    title: "MyApp"
    scene: Scene {
    width: 200
    height: 200
    content: [
    SwingTextField {
    columns: 20
    text: " "
    editable: true
    onKeyPressed: function( e: KeyEvent ):Void {
    println("on key pressed");
    onKeyTyped: function( e: KeyEvent ):Void {
    println("on key pressed");
    onKeyReleased: function( e: KeyEvent ):Void {
    println("on key released");
    }

    ya it wont work. just try this one,
    use the keyListener function for all key listener.
    * FxTextField.fx
    * Created on Jan 21, 2009, 9:29:49 AM
    package com.sb.javafx.comp;
    import javafx.ext.swing.SwingComponent;
    import javax.swing.JTextField;
    import java.awt.event.KeyListener;
    import java.awt.event.KeyEvent;
    import javax.swing.JComponent;
    * @author Admin
    public class FxTextField extends SwingComponent{
        var textField:JTextField;
        public var text:String on replace{
            textField.setText(text);
        public var keyListener:function(key:KeyEvent);
        init{
            textField.addKeyListener(KeyListener{
                 public override function keyPressed(e:KeyEvent)
                    text = textField.getText();
                    keyListener(e);
                 public override function keyTyped(e:KeyEvent)
                    text = textField.getText();
                    keyListener(e);
                 public override function keyReleased(e:KeyEvent)
                    text = textField.getText();
                    keyListener(e);
        public override function createJComponent():JComponent
            textField = new JTextField();
            return textField;
    }

Maybe you are looking for