-
1. Re: Adding Android Licensing with Flash Professional and AIR 3.0
Joe ... Ward Oct 17, 2011 11:54 AM (in response to FLAdude)The sample code in the article that you cite is how the feature is provided. It makes sense to provide only sample code because you should really take a unique approach to implementing the license library. Otherwise once someone broke Adobe's implementation, they would break it for all AIR apps. By using your own implementation, a hacker must break your specific app. See http://www.androidpolice.com/2010/08/23/exclusive-report-googles-android-market-license-ve rification-easily-circumvented-will-not-stop-pirates/ for some discussion about how effective the Android license system is.
Also, Flash Professional doesn't support AIR 3 yet. To use a native extension, you have to use the command line tools from the AIR 3 SDK.
-
2. Re: Adding Android Licensing with Flash Professional and AIR 3.0
FLAdude Oct 18, 2011 7:38 AM (in response to Joe ... Ward)Hi, thanks for responding, Joe.
Yes, I do plan on customizing the implementation the best I can.
I am fine with using command line to build my project if needed, I just need it to work and need to know how to do it. I am very eager to get this finished up and published. It is very frustrating to have an app all ready for android after months upon months of working on it nonstop, but then get stuck on this.
I have been trying to get this all figured out the past several days. It is very confusing and there is barely any info out there on it.
I am using Eclipse to try and build this Java extension, as I have Flash Pro and not builder.
I have gotten the Jar created from the "Creating the Java project" step.
Now on the "Developing the ActionScript library."
It says to make a project and copy files form frameworks\projects\air\Licensing\Android\AndroidLicensingJavaProject\src\ which are java files, and do some stuff, then create a SWC from them.
I sort of suspect it was a typo in the article and is supposed to be frameworks\projects\air\Licensing\Android\AndroidLicensingLib\src\
seeing as it shows .as files in the project not .java.
Also it refers to what I think it means to be ExtensionContext as "ExternalContext," which does not appear to exist in flash.external on step 4 of 'Developing the ActionScript Library.'
So the article has some flaws, and should probably be rewritten and include instructions for the proper flash editor, Flash Professional.
Anyhow, I came up with a hack to build I SWC from Flash Pro which I hope will work.
I am trying to hack together a solution to get this all to work. It is very unpleasant having to guess and figure allot of things out myself. Is there going to be a proper solution in the future? If so, roughly how long will it be? I really need to get my projects published now or very soon, not a year or 6 months from now.
I tried to complie my project to build the SWF I need for packaging with the native extension and I get this error:
"Unexpected or unknown element or attribute in the application descriptor file.
/path-to-my-app/myappname-app.xml(49): error 103: application.android.extensions is an unexpected element/attribute"
I am also getting "Missing implementation for platform: Android-ARM" when I try to build the Native Extension. The person who has commented on the article ( http://www.adobe.com/devnet/air/articles/android-licensing-native-extensions.html , comments at the bottom of the page) has this very same problem.



