air-native-extension

AIR native Android Extension - always returning null device id

元气小坏坏 提交于 2019-12-07 22:43:14
问题 I am writing a native Android extension for a mobile AIR application. I am trying to get the device id, but the result always comes back as null. I can't figure out what I am doing wrong. Here is the native extension code (java): import android.app.Activity; import android.provider.Settings; import android.provider.Settings.Secure; import android.content.Context; import android.content.SharedPreferences; import android.telephony.TelephonyManager; import com.adobe.fre.FREContext; import com

Adobe Native Extensions: How do I package third party libraries (.jar) in a Android Native Extension for my Flex App?

耗尽温柔 提交于 2019-12-07 20:14:50
问题 This is not a duplicate question, I will post the links to the questions whose 'accepted' answers did not work for me. I have been trying to integrate a third party library for my flex android application for a few weeks now, with no success. Unfortunately there is no reliable end-to-end documentation for the same. What little Adobe has documented on the topic is insufficient to say the least. The tools I am using: ADT to package ANE from command line on Windows 7. Flash Builder to package

Adobe Native Extensions: How do I package third party libraries (.jar) in a Android Native Extension for my Flex App?

拜拜、爱过 提交于 2019-12-06 11:58:28
This is not a duplicate question, I will post the links to the questions whose 'accepted' answers did not work for me. I have been trying to integrate a third party library for my flex android application for a few weeks now, with no success. Unfortunately there is no reliable end-to-end documentation for the same. What little Adobe has documented on the topic is insufficient to say the least. The tools I am using: ADT to package ANE from command line on Windows 7. Flash Builder to package the final APK (ANE with the flash part) My directory structure for the ANE: The ADT command I am using:

AIR native Android Extension - always returning null device id

删除回忆录丶 提交于 2019-12-06 11:20:24
I am writing a native Android extension for a mobile AIR application. I am trying to get the device id, but the result always comes back as null. I can't figure out what I am doing wrong. Here is the native extension code (java): import android.app.Activity; import android.provider.Settings; import android.provider.Settings.Secure; import android.content.Context; import android.content.SharedPreferences; import android.telephony.TelephonyManager; import com.adobe.fre.FREContext; import com.adobe.fre.FREFunction; import com.adobe.fre.FREObject; import com.adobe.fre.FREWrongThreadException;

AS3 - Access iPhone music library and return references to mp3(s)

↘锁芯ラ 提交于 2019-12-06 10:59:16
问题 I was just wondering if anyone had any ideas on how to read the music library on an iPhone from an AS3 Air application? Would it require an Adobe Native Extension, or is there a easier way to achieve this? Ideally what I'd like to do is just popup the phone's music player, to allow users to pick either a track, album or playist, and then return those songs to my app to add to my own playlist. (Also, possibly a separate question entirely, I will need to do this for Android, Windows and Mac too

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

点点圈 提交于 2019-12-06 10:38:06
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(StartService)"); Context applicationContext = context.getActivity().getApplicationContext(); try {

Bitmap Channels order different in Android

梦想的初衷 提交于 2019-12-04 19:06:31
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 package) __image = __fl.getBitmapData(path); __de = new DataExchange(); __ba = __de.bitmapEncode(__image

AS3 - Access iPhone music library and return references to mp3(s)

僤鯓⒐⒋嵵緔 提交于 2019-12-04 15:11:45
I was just wondering if anyone had any ideas on how to read the music library on an iPhone from an AS3 Air application? Would it require an Adobe Native Extension, or is there a easier way to achieve this? Ideally what I'd like to do is just popup the phone's music player, to allow users to pick either a track, album or playist, and then return those songs to my app to add to my own playlist. (Also, possibly a separate question entirely, I will need to do this for Android, Windows and Mac too, if anyone has any useful tips on the most efficient way to approach this across all these platforms,

How to create an ANE that will natively display a Floating Window

泄露秘密 提交于 2019-12-04 12:10:43
问题 How to create a native window in Xcode and integrate it with a Mobile Flex application. The native window should act similar as the StageWebView component whereby the native content floats in a rectangular area over the rest of the Flex app. 回答1: Being a flex programmer, this was a tedious process that took me weeks to figure out. Hope this will helps some other Xcode newbies. First of all, you must have a basic understanding of Objective-C and Xcode. You should be able to create a simple

push notification iOS native extension for Adobe Air

被刻印的时光 ゝ 提交于 2019-12-04 04:29:49
问题 I'm working on iOS native extension for Adobe AIR that will get device token for push notifications. Unfortunately I'm not that munch objective-C programmer and I'm not sure if there's something wrong in the code I'm using. It compiles with no problem, I can use the extension with AIR but looks like registering for notifications doesn't return neither positive nor negative effect. So what I'm trying to do is register for notifications when RegisterDevice function is called from AIR and if it