[Catch event NFC - BB10]

Dear friends,

How to catch the event NFC by the native APIs (from NDK, do not use Cascade.) Although I used 'bps_initialize(); nfc_request_events"but do not have the NFC event yet.

I want to catch seeing (attached) and (loosely) event removing an NFC tag.

Thank you very much.

Best regards

Dennis.

Dear friends,

I think that these functions can solve my current problem:

nfc_register_tag_readerwriter (TAG_TYPE_ALL);

bps_get_event

bps_event_get_domain

nfc_get_event_type

nfc_get_target

NFC_TAG_READWRITE_EVENT

NFC_TARGET_LOST_EVENT

Dennis.

Tags: BlackBerry Developers

Similar Questions

  • Minimize the catch event

    Hello

    I would like to run some code when the user reduces a window, but there is no event in the structure of the event that catches to minimize the events. Any ideas how to do this?

    in fact there are:

  • How to catch events with ActionScript in InDesign CS5

    Could some kind soul please be proivde a complete example or provide a link to a complete example to listen to and manipulate one even in InDesign with ActionScript extensions? All of the examples I see are for JavaScript and will not work in ActionScript.

    TIA,

    mlavie

    Hey!

    I suggest you look here: http://blogs.adobe.com/cssdk/2010/08/makesideheads-a-complete-indesign-cs5-panel-2.html

    It is the excellent post from Olav on the creation of Panel for InDesign. There are also "id_host_adapter.swc" which is necessary to create event listeners. Import library:

    import com.adobe.cshostadapter.*;
    

    After the successful importation of library, you can attach event like this:

    IDScriptingEventAdapter.getInstance().addEventListener(com.adobe.indesign.Event.AFTER_SELECTION_CHANGED, listener);
    

    Hope that helps.

    --

    tomaxxi

    http://indisnip.WordPress.com/

  • How to catch events button that is added through customization

    Dear friends,

    I Googled, otn ed but couldn't find a solution.

    I created a button thru pers.n (Req, this is when the user clicks this button must run a simultaneous program).

    Not able to set fireaction, can be a help in this regard.

    Let me know for any clarification

    Thank you

    Aravinda

    Hello

    try to set fireAction in CO by using code below if you can get the button handle successfully.

    OAButtonBean xxButton = (OAButtonBean) webBean.findChildRecursive ("xxCustButton");

    xxButton.setFireActionForSubmit ();

    Then get the handle to this button in LICS.

    BR, 906099.

  • [Service of NFC - ON / OFF - when locked screen - BB10]

    Dear RIM,

    I have a question:

    When the device is locked, the NFC service will be switched off. We somehow serving the NFC always be on when the device locked?

    Thank you.

    Best regards

    Dennis.

    When the screen is locked the NFC is off (you can check if you have an external NFC reader) so it is impossible to detect a passive target presented to the handset - there is no field of radio NFC being generated by the handset to the passive target to interact with. That's why no event NFC associated with present or remove a passive target (for example, an NFC tag) will be generated.

    As I have already mentioned, in card emulation mode, a player external (active target) is able to interact with an element that is secured at the level of the handset to the NFC, even when the screen is locked or put off the unit (this is configurable as already reported as well)-because the external reader generates a field radio NFC handset (as a passive target) can interact with.

  • onPause on BB10

    What does really mean by this event? Apparently not catching anything, even if I add the listener to it.

    The Ripple, there is an option to trigger an onPause event and it works well, but does nothing on a real device.

    What action triggers onPause event on BB10?

    I don't think we're going to be broke up the forums. There is fragmentation points, but the vast majority of subjects is all understandable to developers WebWorks.

    You can do a lot more games on the Dev Alpha today, although the WebWorks extensions are limited. If you build with waterfalls, the only way to see it on the device is with a Dev Alpha. As developers WebWorks, we can use a PlayBook for most all apps and releasing them on the market now, while tinker us with the Alpha of Dev and try the new APIs, as they are released.

    The next version of the SDK WebWorks for BB10 will add some new features that will really increase the value of having a WebWorks development.

  • WebWorks BB10 build error.

    EDIT: I have the same problem using the following command line (IE without ripple):

    bbwp v:\first\out\morfGPS.zip-d so that I presume that there are no associated ripple (edited title).

    [BlackBerry 10 SDK 1.0.0.15 WebWorks]

    When I build my application with ripple, I get the following error in the console:

    Could not find the feature with id: blackberry.system.event

    I have read the FAQ of PB and learned I have to respect in the strokes and then added hirachy before the .

    Still no luck... any idea?

    PS: the "" is present in the BBui.js documentation, especially why it is in mine. Thought it was necessary...

    
        http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0" rim:header="MorfGPS" id="SuperMorf">
        MorfGPS
        blah GPS and utilities App
        Antoine (Superfly_FR)
        
        
    
        
            
        
        
    
        
        
        
        
    
    
    


    Events for BB10 are managed differently.

    Add events with blackberry.event.addEventListener.
    The events are in different areas.

    You need not add blackberry.app.events to the config.xml file. Add/removeEventListener are always available.

    (personal note: so goes for blackberry.app.event if you refer to my above config.xml file)

    However, you do not have to add a feature that contains the actual event you want to play.

    Thanks to Ken Wallis.

  • Release date for phone BB10

    Hello.. When will be the release date of the BB10 phone?

    We will find the event of BB10 launch Jan. 31.

  • "Copy / paste"-event in Indesign

    Hello world

    does anyone have an idea if there is SOMEWHERE an event that is raised when "copy / paste"-ing one or several object in Indesign?

    Well, since no one seems to answer more in this forum and I hope to help someone else wo might look at this problem in the future, here is a solution:

    Normally, all your events/eventlisteners should target "a file or a JavaScript script", which is pretty useless, since we are in an environment of ActionScript. COULD be an elegant way to create a stream of significant work to do, but since all the documentation, tutorials, cookbooks etc on it disappeared into oblivion, here's what you need to do.

    -Check if the event source is a child of CSHostObject. Otherwise, you might have a problem

    -Let´s to pretend that it is, then use the IDScriptingEventAdapter to catch events. Here is an example that works for me to detect if a 'paste' happens

    private function pluginComplete():void{
         // in my project, this function is called once the plugin has been initialized.
         // the ID 271 is for "Paste". If you need another one, you might need to fiddle around with the items within the menuActions-Object
         IDScriptingEventAdapter.getInstance().addEventListenerToObject(MenuAction.AFTER_INVOKE, menuActionHandler, InDesign.app.menuActions.itemByID(271));
    }
    
    private function menuActionHandler(e:*):void{
      trace("AN EVENT !!!", e)
    }
    
  • Where is the source of AIHostAdapter.aip?

    It is extremely useful to be able to register for the events of the illustrator of a JSX script or CEP HTML/JS. It seems to be a native plugin called AIHostAdapter.aip that ideally will exhibit some common events (as the selection has changed) through branchezBranchez. He is mentioned in several places, but I was able to actually download from: aihostadapter for illustrator cc 2014 (for use with flex)

    Where is the source for AIHostAdapter.aip so I can build and increase it me / understand how it works?

    Its not open. However, you can reference the MarkedObjects project in IllustratorSDK samplecode for know how to catch events in Illustrator.

  • Problems with ANE contexts through

    Hello

    I have two donkeys developed in-house.  Sometimes a DONKEY will "catch" events from another DONKEY.  I have ANE specific logging in each module.  I'll see messages from a DONKEY in the logging on the other.  When this happens, the DONKEY who has intercepted events does not work correctly.

    DONKEY were compiled using the AIR 18.0.0.143 SDK.  The app is developed in Flash Builder 4.7 also using AIR SDK 18.0.0.143.

    Has anyone seen this behavior before?  Suggestions how to avoid this?  The inconsistency is annoying.

    Thank you

    Chris

    Edit: I've updated to AIR SDK 18.0.0.180 recompiled donkeys both soft, this problem still occurs.

    The issue was the variable used to store the context in each DONKEY was named the same.  I guess he can't emphasize enough that any symbol extended throughout the world should be as unique as possible.  Conflicts of names can cause problems like the one I experience.

  • Zxing Codes using barcode.  Are no exception.

    Hello:

    I'm scanning the UPCA, UPCE or CODE128 barcodes on my mobile air application.  I followed some examples to try to get on the right track:

    http://cookbooks.Adobe.com/post_How_do_I_add_a_QR_code_reader_to_my_Flex_mobile_ap-19074.h tml

    http://forums.Adobe.com/thread/890506

    I use a 320 x 240 image size.  Set 100 quality.  If someone got it to work properly?

    Thank you

    -Eric Blom

    import com.google.zxing.BarcodeFormat;
                                  import com.google.zxing.BinaryBitmap;
                                  import com.google.zxing.BufferedImageLuminanceSource;
                                  import com.google.zxing.DecodeHintType;
                                  import com.google.zxing.Result;
                                  import com.google.zxing.client.result.ParsedResult;
                                  import com.google.zxing.client.result.ResultParser;
                                  import com.google.zxing.common.GlobalHistogramBinarizer;
                                  import com.google.zxing.common.flexdatatypes.HashTable;
                                  import com.google.zxing.qrcode.QRCodeReader;
                                  import mx.core.UIComponent;
                                  import spark.events.ViewNavigatorEvent;
      
                                  private var camera:Camera;
                                  private var cameraVideo:MovieClip;
                                  private var videoDisplay:Video=new Video(320, 240);
                                  private var qrReader:QRCodeReader;
                                  private var bmd:BitmapData;
                                  private var cameraStarted:Boolean = false;
                                  private var detectChange:Timer;
      
                                  protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
                                  {
                                            qrReader = new QRCodeReader();
                                            if(!cameraStarted)
                                            {
                                                      if(Camera.isSupported)
                                                      {
                                                                camera = Camera.getCamera();
                                                                camera.setQuality(0, 100);
                                                                camera.setMode(320, 240, 8, false);
      
                                                                videoDisplay.attachCamera(camera);
                                                                videoDisplay.width = camera.width;
                                                                videoDisplay.height = camera.height;
                                                                videoDisplay.x = 0;
                                                                videoDisplay.y = 0;
                                                                videoDisplay.cacheAsBitmap = true;
                                                                //videoDisplay.rotation=90;
                                                                sv.addChild(videoDisplay);
      
                                                                var uic:UIComponent = new UIComponent();
                                                                uic.graphics.lineStyle(3,0xFF0000);
                                                                uic.graphics.drawRect(0,0,260,180);
                                                                uic.horizontalCenter = uic.verticalCenter = 0;
                                                                uic.width = videoDisplay.width;
                                                                uic.height = videoDisplay.height;
                                                                sv.addChild(uic);
      
                                                                cameraStarted = true;
                                                                TimerExample();
                                                      }
                                                      else
                                                      {
                                                                scanLabel.text = "Error: No camera found.";
                                                      }
                                            }
                                  }
      
                                  public function TimerExample():void
                                  {
                                            detectChange=new Timer(1888);
                                            detectChange.addEventListener(TimerEvent.TIMER, decodeSnapshot);
                                            detectChange.start();
                                  }
      
                                  private function focusCamera():void
                                  {
                                            camera = Camera.getCamera();
                                            camera.setQuality(0, 100);
                                            camera.setMode(320, 240, 8, false);
                                            camera.setLoopback(false);
                                            videoDisplay.attachCamera(camera);
                                  }
      
                                  protected function scanButton_clickHandler(event:MouseEvent):void
                                  {
                                            decodeSnapshot(null);
                                  }
      
                                  private function decodeSnapshot(event:TimerEvent):void
                                  {
                                            scanLabel.text = "Checking...";
                                            bmd = new BitmapData(320, 240);
                                            bmd.draw(videoDisplay, null, null, null, null, true);
                                            videoDisplay.cacheAsBitmap = true;
                                            videoDisplay.cacheAsBitmapMatrix = new Matrix;
                                            decodeBitmapData(bmd, 320, 240);
                                            bmd.dispose();
                                            bmd = null;
                                            System.gc();
                                  }
      
                                  public function decodeBitmapData(bmpd:BitmapData, width:int, height:int):void
                                  {
                                            var lsource:BufferedImageLuminanceSource=new BufferedImageLuminanceSource(bmpd);
                                            var bitmap:BinaryBitmap=new BinaryBitmap(new GlobalHistogramBinarizer(lsource));
      
                                            var ht:HashTable=null;
                                            ht=this.getAllHints();
      
                                            var res:Result=null;
                                            try {
                                                      res=qrReader.decode(bitmap, ht);
                                            }
                                            catch (event:Error) {
                                                      scanLabel.text = event.name + " - " +event.message + " - " + event.getStackTrace();
                                                      trace(event.name + " - " +event.message + " - " + event.getStackTrace());
                                            }
      
                                            if (res == null) {
                                                      videoDisplay.clear();
                                                      scanLabel.text="nothing decoded";
                                            }
                                            else {
                                                      var parsedResult:ParsedResult = ResultParser.parseResult(res);
                                                      scanLabel.text=parsedResult.getDisplayResult();
                                                      sv.removeChild(videoDisplay);
                                                      cameraStarted = false;
                                            }
                                  }
      
                                  public function getAllHints():HashTable
                                  {
                                            var ht:HashTable = new HashTable();
                                            //ht.Add(DecodeHintType.POSSIBLE_FORMATS, BarcodeFormat.QR_CODE);
                                            ht.Add(DecodeHintType.POSSIBLE_FORMATS,BarcodeFormat.UPC_E);
                                            ht.Add(DecodeHintType.POSSIBLE_FORMATS,BarcodeFormat.UPC_A);
                                            ht.Add(DecodeHintType.POSSIBLE_FORMATS,BarcodeFormat.CODE_128);
                                            ht.Add(DecodeHintType.TRY_HARDER, true);
      
                                            return ht;
                                  }
    
    

    OK, if it might help someone down the line:

    I realized that my camera and video sizes were inconsistent and that it got rid of the white space.  Also, I used an instance of QrReader() to try to read UPC_A and UPC_E formats.  The way I found to work was using an instance of MultiFormatOneDReader() instead.

  • Communication problem between asynchronous process BPMN

    Hello, I have problems with communication between the two BPMN processes with an interface assynchronous.


    I have a main process BPMN (process a) and on the inside, I send task to call a second method BPMN (B). The two processes are inside the same project JDev.

    B BPM process was created using the JDev Assistant. I chose an asynchronous service and set the input and output variables. In the process of creating, I checked the start and end events (on the implementation tab) and the two are defined corretcly. In the process composite.xml B has 2 operations on Services exposed (left) side.

    A process, within the implementation of Task tab send, I selected:
    Type of conversation: lance
    Properties
    -Implementation: appeal process
    -Process: I can browse and select B processes
    -Node: Nothing appears on the LOV.

    If instead of the send task I use a Service task I can select the node (node B process starts).

    I use versions 11.1.1.4 JDev and SOA/BPM.


    Can you help me? I'm doing something wrong?

    Thanks for your help.

    Published by: 861727 on May 26, 2011-09:12

    There is a known issue in 11.1.1.4 when calling another process (in the same project) using the send/receive activity. As you noted the start for the process called node is not displayed. The workaround is to use the event to throw the Message and Catch event Message. They have the same semantics of async as send/receive activity. You would use Service call since it is synchronous.

  • How to set the input to a text field filter?

    I use a text entry (a flash component) to which the user will enter numbers only in (positiv and negative integers and floating point numbers) but not any other symbol.

    Copy the following code


    on keyDown me

    If ("1234567890 -") contains the key or the key = backSpace or key = tab keyCode = 123 or the keyCode 124 = then
    Pass
    on the other
    stopEvent
    end if

    end

    This script works fine when I use it with style text old fields to the Director. It does however not work with new component flash style (text entry).

    How can this be repaired?

    Thanks in advance for any help.

    HUMAN RESOURCES


    First of all, I should mention that I have avoid using Flash inside Director, so there may be a better way.

    As you noted, catch events keyDown globally affect all entrances to the keyboard. If you want to specify a subset of sprites so you need a management system which. The simplest would be a global list that fill you it with a small number of sprite when switching to a new framework.

    global gRestrictedInputSprites

    on preparemovie
    gRestrictedInputSprites = [1, 5, 6, 23] - SAMPLES
    keyDownScript = "chatchKeys()".
    end


    on stopMovie
    keyDownScript = «»
    end


    on chatchKeys
    If gRestrictedInputSprites.getPos (_movie.keyboardFocusSprite) then
    If _key.key = "," and then
    stopEvent()
    on the other
    Pass
    end if
    on the other - overall restrictions on entry
    Pass
    end if
    end chatchKey

    And then add a beginsprite to your Framescript to set the values of the gRestrictedInputSprites for each image tag loop you on--assuming that you place the frame head with "go the frame."


    global gRestrictedInputSprites

    on beginSprite me
    gRestrictedInputSprites = [] - the list of sprites all entry who need entry restrictions for this frame.
    end

    on exitFrame me
    go part
    end

    If you follow this path then I suggest to use a GPDL to set the sprite shortlists. No need to write more than one behavior.

  • LoadClip fails to load the image high resolution

    Hi guys,.

    I'm trying to load an image with a resolution of 3849 x 3535 using a MovieClipLoader loadclip method. When I catch event onLoadProgress the MovieClipLoader, his watch that the image is downloaded completely (by reading the bytesLoaded and bytesTotal parameters). But the image is not downloaded completely, it shows the largest part of the region of the image, I see about 75-80% of the image, but the rest of the image is missing.

    I am currently using Player 9.0, but I also tried with Player 8.0.

    Is what happened with someone else? Kindly help me with this?


    In my opinion, 2880 x 2880 is the size of image Max try to resize it to 2880 and see if
    It loads. You need either to resize or load into pieces.

    --
    Dave-
    www.offroadfire.com
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

Maybe you are looking for

  • Display problems on Satellite M70

    I use 70 M Satellite laptop, purchased approximately more than a year back and really like it (M70 Pentium, 512 MB Ram, 40 GB HD). So far, it has been without major problems. The only problem now is that a few times the screen for a second or a fract

  • myDAQ - output multiple analog/audio

    HelloI try to use fully the potential of myDAQ - I like to use all 4 analog outputs at the same time, in a VI.That is, 2 outputs analog (AO0 AO1) and 2 audio outputs (audioOutputLeft, audioOutputRight). Different values mini-maxi are also required, 0

  • Uninstall Broadcom 802.11 b/g WLAN

    I want to uninstall this update. How can I do this? I am not able to find it as an option to uninstall when you go to Windows Update. Thank you.

  • Acer Aspire V3 722 G several problems due to a BIOS update

    As I wrote in the title, I have an Acer Aspire V3 772 G computer laptop and recently he acted strange regarding the overheating and stuttering eventhough I clean it regularly and she should not do any of those at all, I keep everything updated, every

  • What is the difference between x 86 and x 64-bit windows?

    What is the difference between x 86 and x 64-bit windows?Why windows 8 is incompatible with the office that is capable of windows 7? Title: Original Windows 8.0 and 8.1