Build Adobe Air with Java jar file for Android - air

I am not sure whether this question ever asked here or I am missing it ? Anyway, I think my problem is bit different. Here we go:
I have a library (authorization.jar) in Android. This communicates with other service for authorization things.
This library (authorization.jar) is used in many other Android applications.
Now we are moving to Adobe Air and we need to integrate that authorization.jar in Adobe Air and finally create the APK for Android.
We will publish APK only.
How is that possible ?

You can do this with AIR Native Extensions.
It is somewhat complex, but you can find a number of tutorials here: http://www.adobe.com/devnet/air/native-extensions-for-air.html

Related

AIR Google Play Services library classes missing apk

I am working on a test app to test an ane I have built with Google Play Services included. I had things working fine, but recently I updated the version of the Google Play Services library I was using, and now when I built the project in Adobe Flash CC, it seems to be stripping out the Google Play Services classes from the apk. When I decompile the apk I can see they are missing. When I put back the old version of GPlay, I can see it doesn't strip them out.
This post mentions a tool within the AIR needs updating (dx.jar) and this post seems to have the same message. I did update that file but it did not fix the issue.
Thanks!
The problem will be with the AIR SDK. You need to update the dx.jar in your AIR SDK, I've logged an issue with Adobe about this but they haven't updated the build tools as yet so we have to do it manually:
Have a look here for the details: http://airnativeextensions.com/knowledgebase/tutorial/5
It's important that you have a recent version of the Android SDK installed and updated for this to work.
Also rather than packaging the Google Play Libraries into your ANE I suggest you use a shared ANE, like this one:
https://github.com/distriqt/ANE-googleplayservices
Otherwise you can cause conflicts with other ANE's that use the Google Play Library.

Install and distribute dylib with program

I purchased a chilkat FTP2 license, and need to replace my existing code (taken from the Apple's SimpleFTPSample) with the one provided by this library.
How do I properly install it on my Mac and set my project up to distribute it with my App? Does every user need to install it on his Mac by himself or can it be packed with the App?
Every tutorial I found is quite complicated, I would need something simple as I am new to Xcode and Objective-C
EDIT:
Distribution is as downloadable App over my webpage.
Its for Mac OS X.
You can not distribute non-Apple dynamic libraries with iOS apps on the app store.
The reason every tutorial you find is complicated is because the only way to get Xcode to actually build an iOS app with a dynamic library involves some hacks and workarounds.

Google Cloud Messaging service in flex mobile project

I,m in process of developing GCM service in flex mobile project. I want to clear some things initialy.
1- I came up to some tutorials that help in achieving the task, but they require me to download their native extension (.ane file) and add it to the project lib and use it to achieve the task. what is this .ane file used for?
2- can i use the GCM service in flex mobile project without such .ane file?
kindly help
I suppose you need an ANE - unless Adobe extends flash.notifications one day to support Android too.
Az Alex said, you need an ANE because Adobe road map says that they will consentrate mainly on the Air itself and developers should build the extensions themselves... http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html
for a GCM extension, I would suggest you to take a look at http://myappsnippet.com/gcm which supports custom notification icons and sounds...

PhoneGap Build integrated with Dreamweaver CS6 is different than CS5.5, how can I change the assets/www folder?

I used DW5.5 to build a PhoneGap application before, and it was easy to access all of the files within the app to integrate such things as native API functionallity etc...
But now I am using DWCS6, I cant seem to locate the whole app folder structure. All it does is compiles the app to an .apk file (android) and you download it. Am I missing something here?
I am using jQuery mobile and PhoneGap within Dreamweaver CS6 and just tried to test the native API from phonegap, and just cant seem to get it to work. The examples online show the usage of a cordova.js file (which I know is what used to be called phonegap.js or whatever) but the native fiunctionallty doesnt seem to be working.
Any thoughts?? I have been on it all day now so its likely im missing something simple as my head is fuc***.
Thanks :)
I suspect it is Adobe's way of forcing users to pay for their compilation service. AFAIKT, the ability to compile native apps using external programs like Xcode or Eclipse has been removed. I use Dreamweaver 5.5. The issues with mobile app development have been fraught with problems, but, at least, you could find work arounds. I'm hoping that some enterprising CS6 user will find a good workaround for those of us who don't have $$$$ of dollars to buy adobe products, and then more $$ per month to compile the code. Personally, I'm looking for other options. I saved for months to buy cs5.5 and it has never operated as advertised. I found workarounds for Xcode, but nothing for Android. I do like some things about the design/code piece of Dreamweaver, but all in all, I've been disappointed in the product for mobile development.
Keep us posted on your progress.
Thanks.-Rachel
Have you tried copying the Site files from Dreamweaver Source Folder to Eclipse www/assets folder and running it on Android Emulator. This worked for me, at least for simple Hello World index.html file, but it is not working for 5 page - HTML site developed in Dreamweaver CS6.

What is Adobe Air?

What exactly is Adobe Air? I've seen a lot of people talking about it and I've even seen applications for it but I'm still not entirely sure what makes it unique or how it is different from other languages. Can someone please give me the concise version from a programmer's point of view?
Edit:
I wasn't familiar with Flex so I found this nice explanation: http://www.onflex.org/ted/2008/01/what-is-flex.php
In a nutshell.
Start with the assumption that you know what Flex and Actionscript are. Then take the fact that they both run exclusively in your browser and to all intents and purposes are for building web apps.
Now assume you want to develop the same app, with the same language and user interface resources, but run it as a desktop app on a workstion (PC, Mac, or Linux interchangeably).
AIR is what you add (as a link library) to Flex and Actionscript to accomplish that.
http://en.wikipedia.org/wiki/Adobe_Integrated_Runtime
Write cross-platform desktop apps in Flash, Flex, HTML, Ajax.
Adobe Air is a framework which allows to build desktop applications and it is based on HTML/JS and Flash.
Adobe Air its Flash Runtime that can run Flash inside it and provide access to your operation system.
Adobe Air can be used for gaming and software as usual Flash. Its stand alone flash player with extended and reach functionality. For example you can develop flash app that will interact with filesystem or hardware.
Also its support native extensions so you can extend Air using native C/Java libraries.
air can be produced as exe for windows, app for mac, ipa for ios, apk for android, linux with limitations and blackberry.
Adobe Air is cross platform language/tool for mobile, window and OSX application.