Contexts of DONKEY?

Is a DONKEY run exclusively in each apps own environment (user-space) or are just a few parts? What I was wondering if ExtensionInitializer is executed only once or it runs whenever an application uses the DONKEY. Certain functions can only be called once in the BPS library so I place the code there and want to make sure that each call is made in the userspace applications and not a user global expansion, if this function is called repeatedly.

ANE run in the same sandbox as the app parent otherwise, it would be a security nightmare.

Tags: BlackBerry Developers

Similar Questions

  • ANE BB10: error 3500 "the context of the extension has no method '.

    I tried this on the Simulator and the device, and I get the error no matter what:

    ArgumentError: Error #3500: The extension context does not have a method with the name init.
        at flash.external::ExtensionContext/_call()
        at flash.external::ExtensionContext/call()
        at com.o2interactive.sensor.gps::GeolocationExt()
    

    Have you:

    this.ext = ExtensionContext.createExtensionContext( 'com.o2interactive.sensor.gps', null );
    this.ext.call( "init" );
    

    In ContextInitializer donkey:

    const char *functionNames[] = { "init", "gpsStart", "gpsStop", "gpsSupport", NULL };
    FREFunction functionPtrs[] = { init, gpsStart, gpsStop, gpsSupport, NULL };
    

    Just dones not like when I call anything that has been mapped.

    Any suggestion is appreciated.

    The mistake of 3500 a do because the "bps" library is not linked with your application. You have to do to "[all Configuration]" or you will get the error even depending on your deployment. This changed in the latest version of the IDE (thanks to RIM which helped to discover this).

    * C/C++ build / Configuration settings: [configurations]

    * Select QCC Linker / library.

    * Under libraries (-l) 'Add' /'s.

  • Terrible mistake 3500 with DONKEY Playbook

    Hi all

    I've been tinkering with AIR for Playbook native extensions, but have been unable to make it work. I kept getting error 3500 "the context of the extension has no method '. I scaled down and made the simplest use case, the DONKEY example hello world. Same result.

    I searched the forum, and the inclusion of the "bps" library does not help (). I tried debug, release configurations, cleaning explicitly compiled before build on NDK and Flash Builder files, remove and replace the mention of DONKEY, recreate all projects, nothing worked.

    My setup is FlashBuilder 4.6, Flex SDK 4.6 with Air 3.1, NDK 2.1.0 on windows 7. I even reinstalled the NDK and redownloaded the Flex SDK kit. The #3500 error keeps appearing.

    I can hardly believe that the NDK / FlashBuilder will be a such fault them so I gues I'm doing something wrong. If someone managed to successfully carry out and use a DONKEY in an AIR on Playbook application? So if you did something more to operate or you have a skeleton of a working draft that you could share?

    Thank you!

    Hey, thanks for the suggestion.

    I searched on this basis and found that it should add the following line in the bar - descriptor.xml:

    run_air_native

    In fact, this is specified in the BB10 dev guide, but there is no mention of this part of the Playbook. Anyway, problem solved!

    Thank you all for help.

  • DONKEY with AIR 22 update no longer works

    Hello

    I have a DONKEY simple that file sharing.

    It was built with AIR 19.0 and Xcode 6.1.

    I want to update AIR 22, but you have successfully updated the iOS SDK, I have installed XCode 7.3, base SDK is 9.3 iOS and iOS deployment target is iOS 9.0.

    I have a platform.xml like that.

    <sdkVersion>9.0.0</sdkVersion>
        <linkerOptions>
            <option>-framework AudioToolbox</option>
            <option>-framework AVFoundation</option>
            <option>-framework CFNetwork</option>
            <option>-framework CoreFoundation</option>
            <option>-framework CoreGraphics</option>
            <option>-framework CoreLocation</option>
            <option>-framework CoreMedia</option>
            <option>-framework CoreVideo</option>
            <option>-framework Foundation</option>
            <option>-framework MobileCoreServices</option>
            <option>-framework OpenGLES</option>
            <option>-framework QuartzCore</option>
            <option>-framework Security</option>
            <option>-framework SystemConfiguration</option>
            <option>-framework UIKit</option>
            <option>-framework ImageIO</option>
            <option>-framework CoreTelephony</option>
        </linkerOptions>
    

    My code to share a file is, in objective-C, where the variable URL is a URL, the path to a local file

    @try {
       
                UIViewController * controler = [[[[UIApplication sharedApplication] windows] objectAtIndex:0] rootViewController];
               
                UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:nil];
                //activityVC.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll]; //or whichever you don't need
               
               
                UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:activityVC];
                [popup presentPopoverFromRect:CGRectMake(0,0,0,0) inView:controler.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
            }
            @catch (NSException *exception) {
                DISPATCH_STATUS_EVENT(context,"DEBUG_TRACE", (const uint8_t*) [exception.reason UTF8String]);
            }
    

    I have this error in execution: *-[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil objects [0] object

    UIPopoverController is obsolete now, I triied to update my code, as a result of this http://www.goxuni.com/672368-adding-a-share-button-to-an-objective-c-ios-app/

    And the result is:

    @try {
                UIViewController * controler = [[[[UIApplication sharedApplication] windows] objectAtIndex:0] rootViewController];
                
                
                NSArray *activityItems = @[URL];
                UIActivityViewController *activityViewControntroller = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
                activityViewControntroller.excludedActivityTypes = @[];
                
                activityViewControntroller.modalPresentationStyle = UIModalPresentationFullScreen;
                if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
                {
                    activityViewControntroller.popoverPresentationController.sourceView = controler.view;
                    activityViewControntroller.popoverPresentationController.sourceRect = CGRectMake(controler.view.bounds.size.width/2, controler.view.bounds.size.height/4, 0, 0);
                }
                [controler.self presentViewController:activityViewControntroller animated:true completion:nil];
                
            }
            @catch (NSException *exception) {
                DISPATCH_STATUS_EVENT(context,"DEBUG_TRACE", (const uint8_t*) [exception.reason UTF8String]);
            }
    

    The error is the same: *-[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil objects [0] object

    I really don't understand why it worked before, and now with new AIR SDK, Xcode new and new iOS SDK, it does not work.

    That's Ok with the last AIR 22 SDK

    Bug #4146925 - ANE compiled with AIR 22 no longer works

  • 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.

  • Problem creating ANE, ArgumentError: Error #3500: the context of the extension doesn't have a method with the name

    I'm bit confused about ANE generation, I'm already all direction, but the error always #3500 when I try to call the DONKEY.

    I create NSAS using java android.

    The tools I use: Flash Builder running on Win-64 win.7. I think I have to, right to the point, here, what I did first step by step;

    1. I create the JAVA application first, with the senigo.extension.android package then I create 3 files, Sample.java, SampleContext.java, PassTextFunction.java

    2.pngsdf.png

    Code Source Sample.Java

    package senigo.extension.android;
    
    
    import android.util.Log;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREExtension;
    
    
    public class Sample implements FREExtension {
      @Override
      public FREContext createContext(String arg0) {
      // TODO Auto-generated method stub
      Log.i("Sample", "createContext");
    
    
      return new SampleContext();
      }
      @Override
      public void dispose() {
      // TODO Auto-generated method stub
      Log.i("Sample", "Dispose");
      }
      @Override
      public void initialize() {
      // TODO Auto-generated method stub
      Log.i("Sample", "Initialize");
      }
    
    
    }
    

    Source code for SampleContext.Java

    package senigo.extension.android;
    
    
    import java.util.HashMap;
    import java.util.Map;
    import android.util.Log;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREFunction;
    
    
    public class SampleContext extends FREContext {
      public SampleContext()
      {
      Log.i("SampleContext", "constructor");
    
    
      }
      @Override
      public void dispose() {
      // TODO Auto-generated method stub
      Log.i("SampleContext", "dispose");
      }
      @Override
      public Map<String, FREFunction> getFunctions() {
      // TODO Auto-generated method stub
      Log.i("SampleContext", "getFunctions");
      Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
      functionMap.put("passText", new PassTextFunction());
    
      return functionMap;
      }
    
    
    }
    

    Source code for PassTextFunction.Java

    package senigo.extension.android;
    
    
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREExtension;
    import com.adobe.fre.FREFunction;
    import com.adobe.fre.FREObject;
    
    
    public class PassTextFunction implements FREFunction {
    
    
      @Override
      public FREObject call(FREContext arg0, FREObject[] arg1) {
      // TODO Auto-generated method stub
    
      FREObject result = null;
      try{
      result =  FREObject.newObject("Hello World");
    
      }catch(Exception e)
      {
    
      }
      return result;
      }
    
    
    }
    

    After all the files, I create the jar file using the right click on the tree > > export > > Jar file > > Sample.Jar (I already create jar file that contains just the src folder and after I got frustrated, I create the .jar file contains all the project folder as a whole but still did not work).

    Okay, after that, I create project Flex Library Project, which is to contain the actionscript code to call the native and extension.xml, here the code.

    3.png

    Test Source code. As, FYI: I have already create the public function and the static function the error always the same #3500.

    package senigo.extension.android
    {
      import flash.external.ExtensionContext;
    
      public class test
      {
      private static var extContext:ExtensionContext = null;
    
      public function test()
      {
      trace ("Test Constructor");
    
      if (!extContext)
      {
      initExtension();
      }
      }
      public static function get passText():String
      {
      trace ("Test Pass Text");
      if (!extContext)
      {
      initExtension();
      }
      return extContext.call("passText") as String;
      }
    
    
      private static function initExtension():void
      {
      trace ("Vibration Constructor: Create an extension context");
      extContext = ExtensionContext.createExtensionContext("senigo.extension.android", null);
      }
    
    
      }
    }
    

    extension source code. XML

    FYI: Flex when I put the Native Extension, they said have Windows - x 86 so I already create 3 DONKEY, that contain Android-ARM, ARM Android contain by default, Android contain ARM, Default, and Windows - x 86, but still the same error. I don't have it where is the error.

    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
      <id>senigo.extension.android</id>
      <versionNumber>1.0.0</versionNumber>
      <platforms>
      <platform name="Android-ARM">
      <applicationDeployment>
      <nativeLibrary>Sample.jar</nativeLibrary>
      <initializer>senigo.extension.android.Sample</initializer>
      <finalizer>senigo.extension.android.Sample</finalizer>
      </applicationDeployment>
      </platform>
      <!-- <platform name="Windows-x86">
      <applicationDeployment>
      <nativeLibrary>sample.jar</nativeLibrary>
      <initializer>senigo.extension.android.Sample</initializer>
      <finalizer>senigo.extension.android.Sample</finalizer>
      </applicationDeployment>
      </platform>
      -->
       <platform name="default"> 
    <applicationDeployment/> 
    </platform> 
      </platforms>
    </extension>
    

    After that I created, I copy the sample file of file and extension with the file Sample.jar .swc.

    I have extracted the .swc file, copy the library.swf file Android-ARM, by default, Windows-86 and I create build.bat containing the command like this

    adt -package  -storetype PKCS12 -keystore senigo.p12 -storepass l10nk1ng -target ane senigo.extension.android.ane extension.xml -swc AndroidLib.swc -platform Android-ARM -C ./Android-ARM/ . -platform default -C ./default/ .
    

    the I put the donkey for bending mobile project I created:

    4.png5.png

    6.png

    7.png

    I run, but received the error #3500, I get really confused? What is wrong with my code? is there something that I have wrong or I just missed?

    Please someone help me... and what is already donkey file I can debug in Flex Mobile project? I want to log.i code I wrote, but I confuse air how to the Levant in flash builder.

    in the end, I want to said sorry if my English is not very goods and thank you, because want to see my problem and I appreciate it a lot if you can give me a solution

    So you're saying that test.as I created belongs to android?

    Exactly.

    Okay, so then why when I put just ANE build contain Android-ARM, the error still appear?

    Because that when you launch it engine running Windows AIR request use default implementation in this case. But looks like the default implementation, you use the same Android and default value.

    is that what I have to put Windows-86 to run it on windows?

    If you are creating applications / DONKEY for mobile platforms you don't need it.

    I have to use another actionscript that does not ExtensionContext content?

    Exactly!

    For example, look at this: mesmotronic/air-full screen-ane · GitHub

    record full screen-ane-android - Android app

    full screen-ane-default - default implementation (for all other platforms exclude Android)

    It is an excellent example. It's pretty simple, you understand how it works.

  • DONKEY - Vibration error: cannot access a property or method of a null object reference.

    Hi all

    I am trying to use the Vibration DONKEY but get the following error:

    IsSupported() vibration

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    Manufacturer of vibration: create a context of extension

    at com.adobe.nativeExtensions::Vibration$/initExtension() [/ users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:58]

    to com.adobe.nativeExtensions::Vibration$/get isSupported() [/ users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:43]

    views::Tour/onMarkerClick() [/ < path to project here > / src/views/Tour.mxml:204]

    The code I am using is directly from the example:

    var vibe: Vibration;

    if (Vibration.isSupported)

    {

    Vibe = new Vibration();

    Vibe.VIBRATE (2000);

    }

    Not really sure why this could happen. If anyone has any suggestions, it would be much appreciated!

    Thank you

    Alastair

    I thought about it. It seems that the native extension has not been properly packed (check the parameters of the project, Flex Build Path and Extension Native for the iOS and Android).

  • Want to auto fill a context menu

    Hello! I'm looking for a way to auto fill a context menu with the data of a column on a separate sheet. On sheet 1, I have a bunch of product names in column A (with their prices and taxes from columns B.). On the sheet 2, column A, I would choose the products required for this project in a context menu (drop-down) which includes all items on sheet 1, column A.

    I have a lot of products listed in sheet 1, column A, so it is not practical for each context menu manually. I also need to add more products to sheet 1, column a quite regularly, so need it to update automatically. I can't for the life of understand me. Any help would be much appreciated.

    I'm using 3.6.2 for Mac numbers.

    Hi Liz,

    We do not have the feature of auto filling of the popups at this time. In other words, we don't have popups that will update when a column is revised.

    It may be that you work hard for you to complete your pop-up windows. If you have a column of items, select and change the format of "popup" each of these cells is a popup with all values in your column. You can copy and paste them to your other journal and he use it.

    A while back I developed an applescript script to automate this process, but it is still a process that must be run-it introduces himself. Let me know if you are interested and I'll see if I can dig it up.

    Quinn

  • I received an error message on my iPad: the application has lost the device context when I try to open the Jam Cookie

    If someone got the error message: "the application has lost the device context? This appeared on my iPad on the application of jam cookie there is a thin red strip across a black screen with the error message locked in the red band. Help!

    Reset the iPad.  Press and hold the power and home together for 10 seconds until the Apple logo appears.

  • How to add "Look it up in lexicon" to the context menu?

    Hi all! The title says it is in fact... When I highlight a word in a text donnΘ, is possible to add an item to the context menu - > search in the lexicon or Contextual menu - > Services - > search in the lexicon (or whatever it may be called).

    I mean by local "lexicon" built in the dictionary as part of Mac OS (El Capitan in my case).

    Any help will be greatly appreciated!

    Try to open system preferences > keyboard, look in the tab shortcuts.

    Title services in the sidebar, there should be a section 'search' with an option to activate the context menu item 'search in the dictionary'. Allow it to appear in the right click menu "contextual".

    p.s. This is an earlier operating system, it may have changed.

  • How to remove context except flyouts menu icons

    I would like to hide the icons of all the context menus, except icons search engine in two flyouts created by extensions Image Search Options and research context.

    I found the css to hide all the icons, but who hides the icons search engine in these two menus as well.

    Which rule are you currently using?

    Maybe, you just add a ' > '.

    It works for you?
    I don't have these items in the context menu that have an icon, so I can't test it.

    #contentAreaContextMenu > :-moz-any(menuitem,menu) > .menu-iconic-left {visibility:hidden!important;}
  • I don't want to move to the new tab immediately when I select text and search it from the context menu.

    When I select text and right-click on it and looking for it, the new tab open and switched to immediately. I don't want that. Instead, I want to stay on the page that I am and don't want new tab to switch immediately.

    Hi Obaid.Farooq, please try the following:
    enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.search.context.loadInBackground. Double-click it and change its value to true.

  • Context menu is displayed everywhere

    My granddaughter (10) wanted to 'save' something. Then she downloaded a recorder PC (no logon attempt).  It has been removed from my computer.  Context menus appear now no matter where you click, so clicked normally.

    Slap the mouse can get rid of the popup usually.  It took eight slapping just started this question. This happens in Firefox and Safari.  I bought a new mouse, the same story.  I tried to unplug the unit had several.  I ran VirusBarrier, no change.  How can I get rid of the pop-up menus?

    Transfer the backup Mac HD on the desktop work?

    sounds like something that could be related to system-> accessibility preferences have you checked here under the keyboard or mouse if some sticky keys is the culpit?

  • I would like to change the order in which the items are displayed in context menus (right click).

    I just got 38.2.0 of Thunderbird and I want to be able to customize, as indicated in the subject of this question. I can find how to proceed for the toolbars, but, not for the context menus. Thanks for your help.

    BTW - I think I will like the new implementation of calendar. Thank you!

    Kind regards
    Jim

    Try this add-on.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/s3menu-Wizard/

  • Why doesn't the mouse click on the tab context menu more displays the option to move the tab to a different group.

    When I click right click on a tab, the context menu no longer offer to move this tab to another group.

    What's new since 38.05

    Why was this feature depricated?

    I've got 38.0.5 on Win 7 x 64 Fx.

    You already have a userChrome.css file to change the user interface of Firefox? It is the only other method that comes to mind to hide a menu item. You can find such a file in this way:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Look for a folder named chrome , and if you find it, click on inside.

    Any userChrome.css file here? If so, you can open in a text editor and view its contents to see if it looks familiar.

    Or maybe your program files have been damaged in the upgrade. This happens from time to time, with unpredictable results. To remedy this situation, I would suggest:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (no incompatible or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    You can get reinstalled Firefox?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins

Maybe you are looking for

  • I think that we have downloaded something bad!

    We went to a new Web site 123movies.to and I think that we have downloaded anything because it is exceptionally now slow loading pages or other applications now. Don't know what to do! I'm not very irritable. I deleted all the files on my computer th

  • Get the position of the control in the window of the façade

    Hello I have the window façade divided with dispatchers on several components. On a glass, I have a button (and an overlay window) I want to move programmatically at run time. I would like to get the position of the button according to the coordinate

  • How to calculate the average of the 1 d array?

    Could someone please help me, how can I calculate average of the 1 d array? For example, if the table 1 d - is [2, 3], I would get average = 2.5. Thank you very much!

  • Pavilion dv6 - 6c04ea battery alert on Start up

    Pavilion dv6 - 6c04ea Windows 7 Home Premium 64-bit All of a sudden, I started getting a message on Start Up of the HP battery alert. The message tells me that the battery level is extremely low and that I might have to replace it. There is a web add

  • trying to respond to the e-mail said to enter the server outgoign and incoming pop3

    email problem If anyone can help... I try to respond to emails asking me to answer and when I do I get a notice to fill in my name followed by asking for my pop3 (outgoing) server and asking another for my incoming server.  I don't know what to do.