Call .jar in ANE for Android

Hi everybody, can you tell us what is the way for this?:
"We are building a new ane, that ane needs to call an external .jar"
When we build Android apk works, however when we try to invoke inside of the .jar for the ane doesn't work.
Let me make clear: ex.  ane->.jar->external .jar
Thanks for your help.

Hi,
I think the problem here is actually something to do with the way AIR is packaging the assets. I've been investigating the issue trying to get access to video files packaged in an AIR app from an ANE but they are sometimes compressed in the APK rather than just being stored. Once they are compressed you get the error you've encountered:
java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
I think this has to be an error in the AIR packaging, as they shouldn't be compressed. Any files like mp3, mp4, png etc shouldn't be compressed according to the Android packager.

Similar Messages

  • Adobe air ane for android build

    I have created a ane of android.
    with an error that it is jdk1.7, there is no problem that it is jdk1.6.
    it's jdk1.7 the jar of ane do not create?

    Does what is talked about here help in any way?:
    http://stackoverflow.com/questions/22363266/xcode-5-1-force-32-bit-compilation-for-a-cocos 2d-iphone-v3-project

  • How to include 3rd party jar package in the native code aiming to generate ane for android

    in my native java code,i need to reference a class in another jar package.Simply to say,i want to make use of member functions of a class of some jar package A in the call function of the native class which have implemented the FREFunction class.To generate the native extension,native java code needs to be compiled to a jar package B.i have tried serveral methods to compile jar package A into B.Howerver my flex project failed to proceed when calling function of package A in the call function of native java code.To be sure of the correctness of the package A and B,i referenced them in a java project with main function and succeeded. at the same time my other call functions of classes impemented FREFunction work well,Then, why did i fail referencing package A?
    in the discussion http://forums.adobe.com/message/3965757, i found the same problem,but i was unable to get a workaround,can anybody give me same help?

    Standard Java does not support jars within other jars.
    Either re-architect your stuff so jars in jars is eliminated, or write a custom classloader that can load from them, or look into 3rd-party solutions, which you can find by searching the net and these forums.

  • Hi Team, I wuold like to know if you have any app to make Firefox OS working with cisco Call Manager 10.5. Something like Cisco Jabber for Android or iOS.

    I'm interesting on buying a Firefox Smart Phone, but
    I would like to know if are any app to install on Firefox OS smart phone in order to work with cisco call manager 10.5.
    Something like Cisco Jabber for Android o iOS.
    Thanks,

    Hi Itech,
    If Cisco Jabber has a webapp, or mobile version of their website available, you should technically be able to access it through Firefox OS.
    You may also search Firefox Marketplace for an alternative solution:
    * [https://marketplace.firefox.com/]
    - Ralph

  • Cisco jabber for android no ask outgoing call

    Is available:
    1) cucm 8.6
    2) The samsung galaxy S4 mini smartphone (android 4.2.2) with the client of cisco jabber for android v 9.1.4
    On the smartphone, in the cisco jabber settings, it is specified - to ask for each outgoing call through what to ring.
    If to open the address directory of phone and to click a call, the call is made through SIM a card.
    How to set up, what the request through what to make an outgoing call would be output?

    Take in mind the supported list of devices, in my experience it can be troublesome if you want to uses some of the brands not listed (I played with a Huawei and a LG without luck)
    Check http://www.cisco.com/c/en/us/products/collateral/unified-communications/jabber-android/data_sheet_c78-649887.html (Device and OS Requirements)
    Regards.
    Rolando Valenzuela.

  • ANE for one platform on Flex mobile project for iOS and Android

    I'm very new at Flex Mobile Projects and native extension.
    I have a big doubt... If I have an ANE that only works on iOS or Android, can I use it into a project for Android AND iOS?
    I mean, if I want to do something and I've only found and ANE that works for iOS and another ANE that works for Android, can I create only one project and depending on the device use one or another? or should I create two different projects?
    Thanks in advance

    You can set them both up and when you publish just comment out the code that does not apply, this way you still keep it as one project but you can use the ANEs as needed, I had to do this with the iAd ANE only for Apple obviously and AdMob ANE which at the time was Android only.
    Example
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Now when you publish for iOS comment out the Android related stuff
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Also dont forget to update your included ANEs when you publish and remove the ones that dont apply and update the XML files as needed. Its possible, but annoying, it would be nice if it was automated or could be flagged somehow so the Flash publisher would auto ignore it.

  • Adobe AIR Alarm Services ANE for IOS and Android

    I want to make an Adobe AIR app for android and ios platforms and i should use alarm services of these platforms (ios & android) for several scheduled times in a day when app is not running.
    Could you suggest free or commercial ANE for this operation?
    thanks.

    Well nothing prevent you from mixing flascc with native extension.
    Also, I think that you can also use domain memory in AS3 with the Bytearray class (not sure about that).
    Flascc vs normal as3 is mostly a question of language (portability) Do you want to write as3 or c++?
    Native extension give you speed and native platform access(platform specific feature).
    So, you should think about it this way:
    AS3, run in flash and air. Is sandboxed. Can use domain memory, but it's a bit harder to leverage than flascc.
    Flascc, run in flash and air. Is sandboxed, Can use domain memory. Give you the potential of leveraging the hundreds of opensources lib already out there.
    Native extension, run ONLY in air. Is not sandboxed. Native memory management. Also let you leverage the c++ lib. 
    The best (in my opinion) is to write native code for mobile and desktop (no air or flascc involve) and use flascc for the flash/web platform. It's harder, because you have write portable native code (lots of abstraction), but you mostly have the same problem with native extension.

  • Skype for Android Phone Video: How to Call Mobiles...

    Our how-to videos will teach you everything you need to know to get started with Skype.  Now, learn how to call mobiles and landlines on Skype for Android.
    Was this video helpful? Could you get your contact added?

    I accidently sent Video Message from my Android mobile (Samsung Galaxy S3 Mini)
    Now i wanto Delete that Video Message, But i cant delete it. Please help I tried following methods:
    Settings > Applications >  Applications > Skype > Delete data & Cache Data
    Uninstalled Skype 
    It Doesn't work please help. I tried both methods twice

  • Activation fails when not anwsering an incoming call Air for Android

    Hi,
    I'm developing a game with Adobe AIR for Android; we are handling events for Deactivate (Pausing) / Activate (just tracing for now) of the game.
    It works OK when:  I press home button and then go back. When I get an incoming call and answer it. When I get an incoming call and reject it. They all activate the game when finished
    It doesn’t work when: I get an incoming call and I missed it (no answering, no rejection either) instead of activating the game again a black screen is showed (trace on Activate event is not fired either).
    Did anyone experience the same issue?
    Regards

    I tried the above case on Samsung S4(v4.2.2)(Currently I have with me) with latest AIR SDK available at http://www.adobe.com/devnet/air/air-sdk-download.html and I am getting the activate and deactivate event if I get an incoming call and I missed it. Below is the code snippet I used. Please update if you are using something different.
    stage.addEventListener(Event.ACTIVATE,onActivate);
    stage.addEventListener(Event.DEACTIVATE, onDeactivate);
    protected function onDeactivate(event:Event):void
    // TODO Auto-generated method stub
    trace("In the deactivate method..........");
    protected function onActivate(event:Event):void
    // TODO Auto-generated method stub
    trace("In the activate method...........");
    Could you please share the 3.7 version using adt -version command on either terminal or command promt. You can find adt at AIRSDK/bin folder.
    Regards,
    Nimit

  • Group video call for android tablets?

    When will group video call be available for android table?? Ipad does have this functionality already.  

    you can check this post http://community.skype.com/t5/Android/group-video-not-working-on-android/m-p/3806526#M45825 you will find that a staff moderator replied 

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • Integrating Flurry in Adobe Air for Android

    Hi,
    I am having a hard time integrating Flurry into an android application built with Adobe Air.
    Setting: Flash Builder 4.6 (sdk 4.6) and Adobe Air 3.1
    I have successfully created the bridge between Air and Java (e.g. I can open a native notification).
    The flurry doc requires to call the method
    FlurryAgent.onStartSession(this, "FLURRY_ID");
    in the onStart() of an activity, where 'this' is an instance of the Activity class.
    Following the tutorial on building ane I have seen that when you extend a FREEFunction and you override
    the call method, the context has a "getActivity()", so I hav tried the following
      @Override
              public FREObject call(FREContext context, FREObject[] args) {
        FlurryAgent.onStartSession(context.getActivity(), "FLURRY_ID");
    But with no success.
    I even tried to build an empty activity and pass it to onStartSession like this:
    Activity a = new Activity();
    FlurryAgent.onStartSession(a, "FLURRY_ID");
    Again, no success.
    I even tried "null", but no success.
    Did anybody face a similar problem here?
    Any suggestion/idea?
    ps:
    I have tried contacting flurry, but I had no replies.
    I have tried to use the id in another,  built in the gold old way, android application and it works.

    Well Im a bit puzzled now. I just created a quick AIR app using AIR13 for Android and did a DEACTIVATE test on the NativeApplication.nativeApplication property and used a TextField to "trace" out the frame rate when the app deactivated. The frame rate stayed at 24FPS the entire time. I turned the screen off, let it turn off, went to the home screen, and switched to other apps while the test app was still running. In all cases, the frame rate never dropped to 4FPS as indicated in Adobe's documentation. So it is either something a bug or feature of AIR13+ or it is how Android KitKat handles applications in the background. Im using an unlocked/stock Moto X running Android 4.4.3. The app also appends the getTimer() call to the end so you can see that it does change. Here is a link to the quick app I created: Dropbox - deactivate.apk
    I guess if you want to download that and test it out to see how it behaves on your device and let me know the results. What device and OS are you running?
    Below is the original message I started to type before I decided to create a quick app to test with. It may or may not still be relevant based on your results from my app test.
    If you are looking at just recording information, you could probably setup something on the Android/Java side that gets started when the app "sleeps" using the DEACTIVE event as a trigger to start the ANE side of things. Then when your app "wakes", you could use the ACTIVATE event to trigger a call to the ANE to pull all the data collected in the Java side back to AIR and stop the ANE data capture since the data capture would be back to being handled by AIR.

  • Partial wakelock in Adobe Air for Android

    I'm developing Adobe Air (for Android) application which is intended to be constantly on. App has event based operations. However, when phone enters to sleep mode app is able to perform only one or few events in a second which is not good enough. AIR's SystemIdleMode.KEEP_AWAKE -mode is not an alternative since it is too battery consuming.
    I'm looking for a solution where phone is allowed to go into sleep mode (screen is off) but still CPU performance is not drastically dropped. Not sure if Android's partial wakelock -mode does the job and is available via ANE?

    Well Im a bit puzzled now. I just created a quick AIR app using AIR13 for Android and did a DEACTIVATE test on the NativeApplication.nativeApplication property and used a TextField to "trace" out the frame rate when the app deactivated. The frame rate stayed at 24FPS the entire time. I turned the screen off, let it turn off, went to the home screen, and switched to other apps while the test app was still running. In all cases, the frame rate never dropped to 4FPS as indicated in Adobe's documentation. So it is either something a bug or feature of AIR13+ or it is how Android KitKat handles applications in the background. Im using an unlocked/stock Moto X running Android 4.4.3. The app also appends the getTimer() call to the end so you can see that it does change. Here is a link to the quick app I created: Dropbox - deactivate.apk
    I guess if you want to download that and test it out to see how it behaves on your device and let me know the results. What device and OS are you running?
    Below is the original message I started to type before I decided to create a quick app to test with. It may or may not still be relevant based on your results from my app test.
    If you are looking at just recording information, you could probably setup something on the Android/Java side that gets started when the app "sleeps" using the DEACTIVE event as a trigger to start the ANE side of things. Then when your app "wakes", you could use the ACTIVATE event to trigger a call to the ANE to pull all the data collected in the Java side back to AIR and stop the ANE data capture since the data capture would be back to being handled by AIR.

  • Need some help with ANE on Android

    I'm trying to use a push notification ANE inside a mobile app for Android. My app keeps crashing on the device.
    Here's the error:
    java.lang.RuntimeException: Unable to instantiate receiver com.doitflash.air.extensions.gcm.BroadcastReceive: java.lang.ClassNotFoundException: Didn't find class "com.doitflash.air.extensions.gcm.BroadcastReceive"
    I feel I have placed the ANE in the proper "native extension" panel and my manifest.xml looks good.
    The app will open OK on the device, the error comes when I press the register button, which calls code on the ANE.
    Is there any special tricks to packaging the ANE inside an app, maybe I missed something.
    Using Flash Builder 4.7
    Apache Flex 10, Air 3.8
    The ANE is from: http://myappsnippet.com/gcm/
    Jerry

    Here is my setup in Flash Builder:
    1- In the "Native Extensions"  panel (Flex Build Path) I added the 'gcmExtension.ane"
    2- In the "Library path"  panel (Flex Build Path) I added the 'gcmExtensions.swc"
    3- Under "Flex Build Packaging"native extensions tab it shows gcmExtentions.ane with the "package" checkbox selected.
    4- Also under "Flex Build Packaging" I have a certificate.
    The app loads fine onto my Android device, I get the java RuntimeException error when I press the "register" button.
    I'm not sure what you are referring to by com folder, I assume you mean the swc file.
    Jerry
    ==============================
    <application xmlns="http://ns.adobe.com/air/application/3.8">
    <id>com.vdex.pushpop</id>
    <android>
            <colorDepth>16bit</colorDepth>
            <manifestAdditions>
            <![CDATA[
                                  <manifest android:installLocation="auto">
                    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
                                   <uses-permission android:name="android.permission.WAKE_LOCK" />
                                   <uses-permission android:name="android.permission.INTERNET" />
                                   <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
                                   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
                                   <uses-permission android:name="android.permission.VIBRATE" />
                    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
                    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
                    <permission android:name="air.com.vdex.pushpop.permission.C2D_MESSAGE" android:protectionLevel="signature" />
                    <uses-permission android:name="air.com.vdex.pushpop.permission.C2D_MESSAGE" />
                     <application android:enabled="true" android:hardwareAccelerated="true">
                                                        <activity>
                                                    <intent-filter>
                                                        <action android:name="android.intent.action.MAIN" />
                                                        <category android:name="android.intent.category.LAUNCHER" />
                                                    </intent-filter>
                                                    <intent-filter>
                                                        <action android:name="android.intent.action.VIEW" />
                                                        <category android:name="android.intent.category.BROWSABLE" />
                                                        <category android:name="android.intent.category.DEFAULT" />
                                                        <data android:scheme= "air.com.vdex.pushpop"/>
                                                    </intent-filter>
                                                </activity>
                                                      <receiver
                                                          android:enabled="true"
                                                          android:exported="true"
                                                                android:name="com.doitflash.air.extensions.gcm.BroadcastRec eive"
                                                                android:permission="com.google.android.c2dm.permission.SEND " >
                                                                <intent-filter>
                                                                          <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                                                                          <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                                                                          <category android:name="air.com.vdex.pushpop" />
                                                                </intent-filter>
                                                      </receiver>
                                                      <service
                                                      android:enabled="true"
                                                      android:exported="true"
                                                      android:name="com.doitflash.air.extension.gcm.GCMIntentService"/ >
                                                      <activity android:name="com.doitflash.air.extension.gcm.TypeActions.DialogActivity"
                                                      android:label="@string/app_name"
                                                      android:theme="@android:style/Theme.Translucent" />
                                            </application>
                        </manifest>
                        ]]>
                        </manifestAdditions>  
        </android>
    =================================

  • Cisco Jabber for Android on a Samsung Galaxy Xcover (GT-S5690)

    Hello there,
    Yesterday we installed the Cisco Jabber client for Android on the Samsung Galaxy Xcover (GT-S5690) phone.
    First we had some issue's with one-way voice, but suddenly this problem was occured.
    Another problem, which is still there, is when you wants to check your compagny Voicemail (Unity) with the Cisco Jabber client.
    We can access the Voicemail system (Unity), the we must fill-in the pincode followed by hash.
    As you can see in the attached file, this can't be done.
    Samsung Galaxy xCover (GT-S5690)
    Samsung Galaxy S2
    The reason is the screen size of the display of the difference of the phones.
    Hopefully can this small issue be fixed. Our customer ordered 150x Samsung Galaxy XCOVER (GT-S5690) for working with Cisco Callmanager.
    Technical Information:
    Cisco Callmanager version 8.6.20000
    Samsung Galaxy XCover (GT-S5690)
    Android version: 2.3.6
    If someone knows a solution of can support me, please let me kwon!
    Kind regards,
    Edgar Verbaten
    Elkor Telecom & ICT
    [email protected]

    Hi Edgar
    How does this phone work with the Jabber ?
    I have a customer which about a dozen of these phones and it only vibrates on incoming calls but doesn't ring.
    Same Android version : 2.3.6 -
    Regards
    Andri

Maybe you are looking for