air-native-extension

Android res/layout Folder not included in the APK file (but included in the ANE)

拟墨画扇 提交于 2020-01-16 19:57:07
问题 I'm having a problem with resources on an Adobe ANE Android extension: android.content.res.Resources@NotFoundException: id.myView I have a xml layout file, which is included in the ANE file (checking by unzipping the ANE file and looking into META-INF/ANE/Android-ARM ) In the APK file (generated with Flash Builder 4.6), the layout folder (inside res ) at the top level is missing, but it's included deep in the assets folder: - META-INF - res drawable drawable-hdpi drawable-ldpi drawable-mdpi

Google plus ane air native extension failed resolving interface

这一生的挚爱 提交于 2020-01-03 03:00:29
问题 I am attempting to add Google Plus support to an Air mobile app by creating a native extension. The code works in a standalone project however attempting to use it as a native extension produces the following error: Failed resolving Lcom/myname/ane/sharingextensions/googleplus/GooglePlusConnect; interface 479 'Lcom/google/android/gms/common/api/GoogleApiClient$ConnectionCallbacks;' 04-08 15:51:29.573: W/dalvikvm(19956): Link of class 'Lcom/myname/ane/sharingextensions/googleplus

Bitmap Channels order different in Android

泄露秘密 提交于 2020-01-01 19:13:50
问题 I got a problem with an Air Native Extension in Android. The ANE receive a Bitmap from the Actionscript side, compress it in jpeg format and send it back to the Actionscript that will write it on the storage. Everything is good but one last thing. It seems that the channels order for Actionscript is different than in Android, so my compressed image have RED colors in place of BLUE.. here is the code: Actionscript (I'm using a library called deng.fzip.FZipLibrary to get the bitmap from a zip

AdvertisingIdClient.getAdvertisingIdInfo(context) is thworing NoClassDefFoundError

拟墨画扇 提交于 2019-12-19 03:39:18
问题 I am trying to use AdvertisingIdClient to fetch the advertisement id of my AIR app. So i did like A dvertisingIdClient.Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(context) . I am not getting any compile time error. I generated ANE from this. When control encounters this statement, it immediately throws NoClassDefFoundError . I am not getting what exactly is happening. Here is my extension code public class GetAdvertismentID implements FREFunction { @Override public FREObject call

How to include additional Jar in Android Native Extension for Adobe Air Mobile

六月ゝ 毕业季﹏ 提交于 2019-12-18 05:13:18
问题 I have build a pretty nice little app using Adobe Air Mobile (FlashBuilder) and Android Native Extensions (ANE). I would like to incorporate the Jayspt encryption library with my ANE but I can't seem to find any documentation telling how to do it. If I do the standard ADT export to jar for the ANE build, it doesn't include the jayspt jar. Does anyone know how (spell it out for me) to include another jar in the ANE? Thanks, FB 回答1: Firstly make sure you're using AIR 4.0+ to package. Earlier

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error

五迷三道 提交于 2019-12-13 04:00:56
问题 Good Day, I working in Android/IOS App using AIR 3.5. In this project I download ZIP file and extracted in specific folder, after that I using the assets ( IMG, XML and Sounds), everything work fine but when I load the sounds it's keep show this error. > Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. I tried to give it static location in android drive but same error happened. I tried to use URLRequest, FileStream, URLStream and same thing happened. I traced all files

AdvertisingIdClient asking for meta-data although it has been included

自作多情 提交于 2019-12-13 03:39:45
问题 I am trying to create ANE to get AdvertisingId for android. I am using Flash Builder 4.7 with AIR SDK 14.0 . I could successfully create the ANE , but the problem is, it is always throwing error as A required `meta-data` tag in your app's `AndroidManifest.xml` does not exist. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> I have already added this meta

NoClassDefFoundError android flex ane extension

末鹿安然 提交于 2019-12-12 03:34:11
问题 I created a ane native extension for a flex application and I have a problem. My problem is that i get a NoClassDefFoundError from native java code. The class that is not found is in a third-party jar. I added the third-party jar as a lib file in eclipse, is also set on project build pats and is also set as exported resource. I think the problem is when i pack the final .jar file for the extension. I unpacked the .jar file and the third-party jar is there. 回答1: You have to be careful when

air native extension - possible to receive broadcast?

夙愿已清 提交于 2019-12-11 23:08:49
问题 I am developing application with Adobe Flex on AIR platform. Using native extension for Android, it is possible to send SMS from my Flex application. Would it also be possible to receive SMS with my application (receive Broadcast carrying information about incoming SMS)? More generally, is it possible to receive Android Broadcasts in my Flex application? 回答1: I found out this is possible. "The native implementation can dispatch events that the ActionScript extension code can listen for. This

Start Flex Mobile Application on Android startup

≡放荡痞女 提交于 2019-12-11 19:44:03
问题 I am having an issue to start the application on android startup, the problem is how to put the listeners on the "android.permission.RECEIVE_BOOT_COMPLETED" from the manifest ( on the mobile application project from Flash builder) to the native extension ?? basically on the manifest I have something like this : <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <application> <receiver android:enabled="true" android:name="EXTENSION_PACKAGE.application.receivers