Bluetooth kit extension Native

Hello

I'm doing a native extension for Webworks on BB10 to use Bluetooth.

I use btspp API. When I run the app I got a message error "error need cannot find... myLib.so is not found.

If I do not use the Bluetooth API I do not have the error and my extension returns something else. So I think it's because the Bluetooth library is not packaged with the application.

In the app, I just added my own library (myLib.so).

I have not found anything on adding a feature on Bluetooth technology in the config.xml file, or no authorization in rimermissions.

Should I add a feature or permission? Or add the Bluetooth library and how?

JEM

You need to do is a link to the lib BT

Assuming that the standard libs bb just go to the library and use the wizard

If a connection of external systems, it is a diff method

Tags: BlackBerry Developers

Similar Questions

  • Flurry Agent crashing App - Extension Native Android

    I created an Extension native Android for my game. I need to be able to access a 3rd party sdk (for which I have the source files) which was written in java.

    The SDK uses Flurry Analytics for the recording of events and it is integrated into the sdk source code.

    I managed to get a donkey work that can communicate back and forth between my game and java sdk, however, when trials of sdk to initialize it reports class, the method of "initialization" app running ends prematurely. It does not crash the application and without exception is reported in the code, but because the method ends prematurely, all the initialization code that follows doesn't run, so blow the full sdk.

    In the Android Debug Monitor LogCat, I get the following result when the class declaration is created:

    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onEndSession, referenced from method com.bigfishgames.bfglib.bfgReporting.destroy is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1973: MBCA/burst/android/FlurryAgent; onEndSession (Landroid/content/context ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0 x 0011
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0014-0016 in mCol, bigfishgames, bfglib, bfgReporting; destroy (V)
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onStartSession, referenced from method com.bigfishgames.bfglib.bfgReporting.sharedInstance is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1975: MBCA/burst/android/FlurryAgent; onStartSession (Landroid/content/context; Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0 x 0067
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onError, referenced from method com.bigfishgames.bfglib.bfgReporting._logError is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1974: MBCA/burst/android/FlurryAgent; onError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0004
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0007-0007 by mCol, bigfishgames, bfglib, bfgReporting; _logError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/Exception ;) V
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onError, referenced from method com.bigfishgames.bfglib.bfgReporting._logError is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1974: MBCA/burst/android/FlurryAgent; onError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0000
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0003-0003 by mCol, bigfishgames, bfglib, bfgReporting; _logError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String ;) V
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.logEvent, referenced from method com.bigfishgames.bfglib.bfgReporting.logEvent is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1971: MBCA/burst/android/FlurryAgent; logEvent (Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0000
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0003-0003 by mCol, bigfishgames, bfglib, bfgReporting;
    . logEvent (Ljava/lang/String ;) V
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.logEvent, referenced from method com.bigfishgames.bfglib.bfgReporting.logEvent is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1972: MBCA/burst/android/FlurryAgent; logEvent (Ljava/lang/String; Ljava/util/Map ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0000
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0003-0003 by mCol, bigfishgames, bfglib, bfgReporting; logEvent (Ljava/lang/String; Ljava/util/Map ;) V

    Then when the source sdk runs FlurryAgent.onStartSession, the java code stops running and kicking all the way back the action script code.

    I did some reading, and the only thing I found similar was as follows:

    Check the properties of the project Java build path, then the order and export tab make sure that the FlurryAgent.jar is selected.

    In my project, I have the FlurryAgent.jar added as an external jar in libraries and in order and export, it is at the top of the list, just below the FlashRuntimeExtension.jar and it is checked.

    To create the jar of my donkey, I right click on the project, by selecting export, I then select the Java jar.

    Resources and export generated class files is checked

    compress the contents of the jar file is checked

    Add directory entries is checked

    and all the files and folders in my project are checked.

    I opened the final .jar file in winrar and the file FlurryAgent.jar libs folder as well as the FlashRuntimeExtensions.jar

    Anyone know what I'm doing wrong, or not to the apk file (like an addiction, I don't know)?

    I use Eclipse for Mobile developers Version: Juno Service Release 1 Build id: 20121004-1855 as my Java IDE to generate the jar native extension on Windows 7

    I build the DONKEY with Air 3.5.0.840

    Using Flash Builder 4.6 to build the apk

    Tests on a Sony Ericsson Xpeira phone Android 2.3.4 running

    You must extract the external .class to the JAR files and then insert them into your target donkeys JAR.

    In the Java JDK BIN directory, you will find "jar.exe.

    You must run:

    jar - xf external.jar (or what is called the pot burst)

    This will extract the .class files in a file format, with the highest level (probably ' com') directory in the same directory as the external.jar.

    Now, you need to run:

    jar - uf yourJar.jar com

    This will include all classes, recursively, in "yourJar.jar" so that they can be used within your extension.

  • Sensor use the NDK 2.0 in a (ANE) Extension Native AIR API

    Hello

    I tried to access the gyroscope for a Native Extension of AIR, help NDK 2.0 Beta 3, Flash Builder 4.6 and Tablet OS 2.0.0.7111

    I managed to make a C simple library that I can call the air (so that I don't know that all the settings are correct), but as soon as I add a reference to the sensor.h library loads is no longer. I get the following error in the AIR:

    ArgumentError: Error #3500: the context of the extension doesn't have a method with the name of init.
    at flash.external::ExtensionContext/_call()
    at flash.external::ExtensionContext/call()
    to com.adobe.nativeExtensions::Gyroscope$/get isSupported() [/ Users/airqe/Users/sbhave/Gyroscope/AS/src/com/adobe/nativeExtensions/Gyroscope.as:106]

    ...

    My assumption is that I'm using a library which contains functions of sensor is not found, so it cannot load my library. But I can perfectly well be another problem.

    Someone has managed to make this work? Any help would be welcome.

    Thank you!

    I just added bps in libraries (-l) the GCC linker settings and it works.

    Thanks for the explanation!

  • Blackberry10 Webworks / Extension Native Bug (?)

    Someone at - he saw Simulator messages like:

    Need error can not find

    /usr/bib/WebPlatform/plugins/mjnext/BP.so

    Library not found

    When starting an application of webworks html5 with a native extension.

    Although I see this error,

    (1) I know that my archives of deployment (file * .bar) take my shared library because I can see it in the archives under

    Expected, as well as an auth.txt file /native/plugins/jnext/BP.so

    (2) I know that the deployment of the process in many because I can copy the library $SDK_DIR/Framework/ext/bbm.platform/simulator/bbm.so to replace my library bp.so (also in a subdirectory of the framework/ext), do a regeneration and deploy. Then start my application, I get a message that bp. Memory cannot be instantiated. Which is fine, telling me that my index.js file loads the false bp.so (good) but can't call the class of memory (planned, as there was no in bbm.so before the copy).

    (3) I know that my C++ code is very well I have an exact copy of the code in the extension of the C++ TEMPLATE (memory) example I downloaded from github.

    (4) I believe that the shared library is very good because it built without problems in the IDE, downloaded from the section C++ tools to developers. (I'm using the version of Linux and construction with the default device-debug settings).

    But, then, there must be something wrong with the library because the system cannot load from the/native/plugins/jnext directory in the application folder. So at the moment I suspect that there is an integration issue somewhere between the different tools in question, the IDE, SDK, the Simulator.

    Has anyone else had luck with native extensions for BB10 html5 webworks apps?

    I had a little more time to play with this morning and have been able to track down what happens then...

    For other developers who run in it. This happens because profiles of device-Debug or Release device in the IDE to produce an ELF 32-bit ARM shared libraries, while produce profiles Simulator-Debug or Release - Simulator ELF 32-bit Intel 80368 shared libraries. Deponding on the target is important so get the suitable library.

    For RIM, you have a somewhat integrated tool chain and I understand the limits you are underneath. On the other hand, I had to spend time reverse engineering that toolchain to understand how it works. This reverse engineering work is not something that you'll usually want to push downstream. In addition, this thread is the one but not the first question of usability I meet with your tools. As a professional developer, waste of time on usability issues is very difficult to charge (-c' IE: do not cost effective to develop for) is not pleasant (-c' IE: it rots the brain). So, knowing that I would probably not do the work in the future development of BB-related...

    In my view, is a fair estimate of RIM where in terms of experience of development - not comparable to those of your competitors. I hope this can change, because it is really in the best interest of all that the RIM is a successful part of the mobile market.

  • ClassNotFound Extension Native

    Hello

    I created a native extension of the air quality with a simple function that starts an activity within the DONKEY, "DumbActivity." It worked.

    However, after DumbActivity extend YouTubeFailureRecoveryActivity to start using the 3.0 API from YouTube, I got a ClassNotFoundException on DumbActivity when I run the DONKEY.

    Note that when I run the code in a native android app, it works fine, and I can use YouTube capabilities. Also checked the DumbActivity class is included in the jar.

    Is this some sort of conflict of library or something?

    Hello

    Have you created a platform-options - android.xml for android include external jar (API from Youtube), it should be like:

    http://ns.Adobe.com/air/extension/4.0">
      
       youtubeapi.jar
      

      
      

    You must specify the name of the jar Youtube within the "PackageDependency" tag file name

    And, the command adt to package the DONKEY should be like:

    ADT-package [YOUR NORMAL OPTIONS] - platform Android-ARM platformoptions - platform-options - android.xml - C-Android-ARM.

    Please check.

    Thank you

    Adobe AIR Team

  • In - App purchase Extension Native - how can I check if the user purchased in-app already?

    Hello!

    I have an application with In - app purchase. I use ProductStore - native extension of Adobe to connect to iTunes (summary com.adobe.ane.productStore). I can make the purchase at the ENA, but I have not found a way to check if the application was already purchased: I need for the case when the user wants to install the application to an additional device, or if the user has delete the app and install it again.

    And if there is no way, maybe someone knows another Native extension that can provide the corresponding functionality.

    Thank you in advance,

    Olga

    One you use has a restore function: http://www.adobe.com/devnet-docs/gamingsdk/anedocs/com/adobe/ane/productStore/ProductStore .html #restoreTransactions)

  • Call the FREDispatchStatusEventAsync of my extension native IOS isn't going anywhere. What should I do?

    I'm stuck at this point. We have developed a native extension so that our product can run on the desktop and android, but on IOS... I can't get all the data to the side flex.

    The function I use is:

    void SendMessageToFlex (const char *, const char * msg) {}

    Res FREResult;

    RES = FREDispatchStatusEventAsync (_ctx, (const uint8_t *) type, (const uint8_t *) msg);

    If (res == FRE_INVALID_ARGUMENT) {}

    NSLog (@"error: FREDispatchStatusEventAsync");

    } else if (res == FRE_OK) {}

    NSLog (@"OK: FREDispatchStatusEventAsync");

    } else {}

    NSLog (@"?: FREDispatchStatusEventAsync");

    }

    {

    also... the project is here:

    http://www.4shared.com/zip/y6MHvPh9/UDPSocketiOSLibrary.html?refurl=d1url

    The variable you pass as an argument to the parameter level is a NSString.

    [UDPSocketAdapter.m] line 221 sends 'msg' (which is a NSString) as the second argument to 'sendFunc' which is incorrect. It should be a ' const char *'.

    Please send "[msg UTF8String]" as the second argument to sendFunc instead.

  • Flash Builder 4.6 Mobile project using Blazeds & Extension Native

    Hello

    I'm building a Flex Mobile in FB project, which uses BlazeDS to access data through a project of spring and also a DONKEY file to access the contacts of the device.  I want to debug the application on a device connected with a USB cable, so to put my root files and output in the settings of the server using a UNC name, so it can be found from my device via my wifi network. I also added the native extension via the Build Path and package labels.  When I have an emulator debug office, things are OK and the extension correctly tells me that he is not taken in charge on the emulator. However, if for debugging on the device, FB throws an exception during the launch, complaining of a java null pointer exception.  The journal of the eclipse, in part, looks like this:

    com.adobe.flexbuilder.project.AbstractXMLModel$ FileReadException: org.eclipse.core.internal.resources.ResourceException: resource ' / NewOne-debug/NewOne - app.xml "does not exist.

    to com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel. < init >(ApplicationXMLM odel.java:102)

    at com.adobe.flexbuilder.project.air.AppXMLCreator.init(AppXMLCreator.java:91)

    to com.adobe.flexbuilder.project.air.AppXMLCreator. < init > (AppXMLCreator.java:80)

    to com.adobe.flexbuilder.project.air.AppXMLCreator. < init > (AppXMLCreator.java:73)

    at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.getAppXMLCreator (AppXMLFileANEExtensionHandler.java:153)

    at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.retainExtensionI ds(AppXMLFileANEExtensionHandler.java:315)

    at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging (ANECont roller.java:371)

    at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging (ANECont roller.java:338)

    at com.adobe.flexbuilder.project.ui.utils.ANE.AbstractANEPackageHandler.modifyAppXMLforPacka ging(AbstractANEPackageHandler.java:91)

    at com.adobe.flexide.launching.multiplatform.launchhandlers.AbstractMultiPlatformLaunchHandl er.applyNativeExtensionDetails(AbstractMultiPlatformLaunchHandler.java:164)

    at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage (ADBLaunchHan dler.java:424)

    at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch (ADBLaunchHandle r.java:250)

    at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch (MultiPlatfor mLaunchDelegate.java:191)

    at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch (AbstractFlexLaunchDelegate. java: 244)

    at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch (AbstractFlexLaunchDelegate. java: 134)

    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)

    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)

    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)

    to org.eclipse.debug.internal.ui.DebugUIPlugin$ 8.run(DebugUIPlugin.java:1132)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Caused by: org.eclipse.core.internal.resources.ResourceException: resource ' / NewOne-debug/NewOne - app.xml "does not exist.

    at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)

    at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)

    at org.eclipse.core.internal.resources.File.getContents(File.java:287)

    at org.eclipse.core.internal.resources.File.getContents(File.java:278)

    to com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel. < init >(ApplicationXMLM odel.java:100)

    ... 19 more

    I guess the problem is that when the application attempts to run on my device, the extension is not find application descriptor file.  Is there anything else I need to do?

    I appreciate all help.

    Jay

    Here is the solution in case anyone else runs into this problem.  Flash Builder is to create the deployment at the launch, it converts the path mapped to a local path mutilated for donkey find the descriptor to a relative path, which can not be found and get the null pointer.  Making the path to output folder actually local to the computer, as opposed to the default which creates FB, solves the error and still lets blazeds access from the device.

  • If you use more than one Extension Native on Flash develop

    Hi, I got two DONKEY, one for and an AdMob and a Vibration (the example of Adobe) if I have both, activate one of them stops working (Vibration) if they are tested separately work correctly. The debugger does not match in native code. I tried to add the SWC in several ways: (including external selling library and library) but I can not make applications run more than a DONKEY... What can I do?

    Hello:

    Which is the platform you are targeted?

    the name of the methods of the initializer and finalizer (mentioned in extension.xml) ENA must be different for all native extensions that an application uses.

    You can check the values by extracting extension.xml of. DONKEY (you can rename it to .zip and unzip)

    Library must always be external (mention the CFC as external library)

  • problems with, phone, 6, Bluetooth kit, Nissan, after update, for, Rios, 1.0.2

    After the update to ios 10.0.2 - trying to use bluetooth to call my vehicle, it says: "this article is not in your phone book." How can I solve this problem?

    Greetings, joybelino1!

    Thank you for joining the communities Support from Apple! I can't wait to see that you are having problems with your Bluetooth in your car! The good news is that Apple has a great article that will help you with measures to try to resolve the problem. Read this article to gethelp to connect your iPhone, iPad, or iPod touch with your car radio. Even though he talks about problems with the connection, it also has the steps for other questions you may have once connected.

    If you use Bluetooth

    1. Consult the user manual of your car stereo to get the procedure to a Bluetooth device.
    2. On your iOS device, drag up to open Control Center, then press ontwice to turn on Bluetooth and turn it back on.
    3. Restart your iOS device.
    4. On your iOS device, Cancel the twinning of your car radio. On the screen of your car désapparier your iOS device and any other device. Restart your car and your iOS device, then pair and connect again.
    5. Update your iOS device.
    6. Install the updates to the firmware of your car radio.
    7. If you still not connect, contact Apple technical support.

    Have a great day!

  • Bluetooth kit card combo WB335 taken in charge in the nucleus 3.13.1

    Hi all

    Popular Wifi / BT combo card of Qualcomm WB335 Atheros AR9565 has until recently not been fully supported by popular distributions (up to 20, openSuse, Ubuntu Fedora cousins...)
    Bluetooth has been found, but it is not possible to use.

    From 3.13.1 kernel (and perhaps even 3.13) Bluetooth is finally working.

    So for you who are waiting for a solution, it is coming.
    Depending on your distribution, it will be a backport or a real upgrade.
    If this isn't the case, you can download and install the kernel yourself.

    But before doing this, consider if this is something for you or not.
    I don't mean that it's very complicated, but for those unfamilliar with the compilation of the grain and who do not want to dirty their hands, I wouldn't recommend it.

    For the more adventurous - there are probably as many guides out there that describes in detail how to create a core of your system.

    Tom BR

    Thanks for sharing of Tom

  • Bluetooth kit wide Portege Z830 - 11 X

    I bought your new Portege Z830 - X 11 and connected my mouse (logitech) bluetooth to the computer.
    However, after I restarted the computer, the connection was lost and since then, the computer indicates the power of bluetooth is disabled (even though I am pass it on (and market), all connections switch once, and etc.) using fn + f8 keys. all drivers say they work well, but the bluetooth is disabled since then.

    It is really strange. Did you install additional software for BT?

    Try to roll back the BONES in an hour earlier before starting to use this mouse BT, just to see if something will be changed.

  • BlueTooth Kit for the cell phone as a headset & microphone on the Qosmio F30-125

    Can someone tell me if it is possible to connect the hands-free bluetooth to a mobile phone using the bluetooth connection to use headset and microphone, I do a lot of net conferencing, and it would be terribly helpful I wouldn't hang cables everywhere. I have a Qosmio F30-125, any advice would be greatly appreciated.

    Hello

    It is possible to do. I use my BT headset for mobile phone (320 Plantronics) with my Tecra laptop. Believe me, I have configured in just 30 seconds and it works fine.

    Now, when I want to use this head set portable speakers are turned OFF automatically and I use it with Skype. The good thing is that you can go to the office and talk with other people.

    Please read manual headset to see what vegetables code that you must use.

  • Bluetooth kit Satellite A300 with Windows XP

    How will I know if my Satellite A300 is equipped with a bluetooth module? It has a Wi - Fi connection and I pay with bluetooh but when I installed Win XP (it comes with Vista) and install the bluetooh monitor, nothing happened in the Panel.

    I don't see incontinence of bluetooth devices.

    Bluetooth must be inserted in such a silver Bluetooth sticker is at the bottom of your laptop.

  • Bluetooth kit S430 Edge does not work on Win8

    After I did a clean install of Windows 8 in my ThinkPad Edge S430, I found that it was impossible to turn on Bluetooth (see photo), and, even more frightenly, Bluetooth communication device does not appear in Device Manager any more! (I checked, I have no 'Unknown' devices either).

    I tried different drivers with no success. Bluetooth works perfectly under Windows 7, and it is always enabled by the BIOS.

    Is anyone else have had similar experiences, or ideas of what could be the problem?

    Hi again, emannigol

    Given that the pilots did not or could not be installed, we'll work a little more away. You said previously that the BIOS has been recognizing the Bluetooth device, correct? Recently updated BIOS? If you are unsure, you can either update it through the matrix of pilot, you went at the earliest, or just simply find your BIOS version and post it here. It could be that the BIOS does not communicate the Bluetooth device to the computer when the operating system loads. If this is the case, then Windows 8 cannot be that a Bluetooth device is installed on the machine. Check the BIOS and post your results.

    Good luck

    Adam

Maybe you are looking for