air-native-extension

Adobe AIR Native Extension TWAIN Image Scanner

狂风中的少年 提交于 2019-12-11 19:17:43
问题 Currently I am working on Adobe AIR Native extension which gives possibilities to simple manipulate image scanner using TWAIN. I use CTwain class found at http://www.codeproject.com/Articles/296/A-C-Wrapper-for-TWAIN When i use this class in Windows Application (.exe) it works as expected, but in dll (which i need to create ane file) it crashes when Twain Device UI is closing (when scan complete or by clicking Cancel button) I thing the problem is somewhere in DllMain.cpp file (possibly

Section of the code of our c++ DLL crashes wen ran on a Windows 7 SP1

▼魔方 西西 提交于 2019-12-11 18:37:41
问题 I am developing a desktop Air application that uses an Air Native Extension (ANE). The native part of the ANE is composed only by a DLL written partially in C and partially in C++. The app was compiled with Visual Studio 2010 and requires the MSVCR100.DLL and the MSVCP100.DLL to be on the same directory as the application's exe file. The app and DLL work great on many computers but on clean Windows 7 SP1 computers, part of its code makes the DLL crash. I've narrowed down the conflicting code

How to include a android native extension (.so) into an AIR native extension (.ane)?

南笙酒味 提交于 2019-12-11 17:56:22
问题 I'm currently trying to find a solution to have an AIR native extension including a C - library for Android that is using JNI. So far, I tried to pack the .so lib into a jar, which then is packaged into the ane. As I learned here, I have to unpack the .so from the .jar first in order to access it. The code found there seems to be working for a regular android project, unfortunatly when doing this for a .jar which is then packaged into an .ane, it seems to lose scope, resulting in a

Can Manifest Receiver for In app payment be moved to Java code instead?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 14:10:01
问题 Google example for in-app payment suggests to add the manifest entry in order to receive the payment confirmations. But in Native Extension for AIR, the receiver will not be found as its a different package. So i moved the receiver part to code as follows final IntentFilter filter = new IntentFilter("com.android.vending.billing.IN_APP_NOTIFY"); filter.addAction("com.android.vending.billing.RESPONSE_CODE"); filter.addAction("com.android.vending.billing.PURCHASE_STATE_CHANGED"); a

ANE, iOS and BitmapData

假如想象 提交于 2019-12-11 00:58:41
问题 Is there any example of passing bitmap data into iOS and returning a modfified copy. I am trying to convert a bitmap into jpeg - similar to this example in Windows http://blog.magicalhobo.com/2011/09/12/air-3-native-extension-imagepro cessor/ but it crashed every time. I am pretty sure I am doing something basic wrong but not been an iOS / Objective C programmer I am really just trying magic incantations and I can't find any good examples. Any help appreciated? Sean P.S. Below is my attempt:

How do I get onActivityResult to run in an Adobe Air native extension?

混江龙づ霸主 提交于 2019-12-10 23:15:11
问题 I am writing an extension that will allow a Flex application to access Android's native image picker. I am able to launch the image picker activity without issue, but after it returns to the caller, which is an FREFunction object, onActivityResult is not called. Because of this, I am unable to figure out what image the user has chosen. When I use the exact same contents of the FREFunction in a native Android app, The app works fine, and I am able to retrieve the URI of the chosen image in

Returning a struct from an Air Native extension

放肆的年华 提交于 2019-12-10 22:07:29
问题 Is it possible to return a struct from your native code? It's relatively straight forward to return an int or a boolean but how do you return a more complex struct back to the actionscript? 回答1: You can return any object that can be represented in the native code as a FREObject. This actually includes any Actionscript class or Actionscript primitive data type. This includes things like: int, String, Array, BitmapData, ByteArray etc. For example lets construct a return array of length 4 with

NoClassdefFoundError on thirdparty class files when building Adobe Native Extension

时光总嘲笑我的痴心妄想 提交于 2019-12-10 19:43:02
问题 I am building an Adobe Native extension (ANE) which has third party JAR dependencies. I am making sure that the third party class files are extracted and packaged inside the ANE JAR (as explained in this answer) But when I build the final android APK for my application, these classes are missing in the classes.dex. It seems that ADT is stripping them out somehow. It is worth mentioning that the third party JAR that I am using is built with Java 1.7 and I am using Java 1.6. 回答1: Not sure if

Does Native Extension code in Adobe AIR for IOS run in a separate CPU Thread?

随声附和 提交于 2019-12-08 06:37:43
问题 I am building an IOS application using Flex 4.6 and AIR 3.3. I do have some Objective-C Libs that we will be using for processing audio, images, and video to create a new "video" file. Being that we are doing all this processing on the device through a native extensions I am wondering if the user is going to see the app lock up till the processing is complete. In other words am I going to need to show them a progress bar and not allow them to do anything else in the app till this is complete

Pending Intent created in Native Extension works only from Notification but not within Service

独自空忆成欢 提交于 2019-12-08 00:52:14
问题 I’m developing an Air mobile application for Android which uses Air Native Extensions (ANE). From the ANE I call a function that creates a Pending Intent which is passed to a Notification. Next, the native function starts a service and passes it the Pending Intent and the Notification. Here’s the code for that part: public class StartServiceFunction implements FREFunction { @Override public FREObject call(FREContext context, FREObject[] args) { Log.d("MyApplicationStartServiceFunction", "call