Android Expansion Files and License Verification Library

Hi all,
I'm strugling with the libraries to verify a person's purchase in order to download play store hosted expansion files.
I got the downloading of expansionfiles and unpacking (from an own domain) down, but since it is for a purchased application and the .obb files will be stored in the play store, I need to check the purchase before I can download (right?).
I'm going by the following article:
http://www.adobe.com/devnet/air/articles/android-licensing-native-extensions.html
After getting all the latest SDK's (Android and AIR) I still get errors from the Adobe provided .java files.
First, the package name of Anroid's
com.android...LicenseChecker.java
is changed to:
com.google.android...LicenseChecker.java
Fine, I can change it's import in com.adobe.air.sampleextensions...AndroidLicenseCheckerCallback.java
However...
com.adobe.air.sampleextensions...AndroidLicenseCheckerCallback.java then begins to complain about the method LicenseChecker.allow( int ) not being implemented. OK, I can write that method if need be (not quite clear what to fill it with though)
Worse probably is that a number of consts ( CHECK_IN_PROGRESS, INVALID_PACKAGE_NAME ) and s'mores can not be resolved. Maybe because the overridden applicationError's parameter ApplicationErrorCode can not be resolved either... .
(I got android.jar and FlashRuntimeExtensions.jar linked OK)
sigh...
Does anyone know of more recent/functioning libraries? Or am I on the wrong track all together?
Thanks in advance,
Manno

[daytime again]
ofcourse the unresolved consts cannot de defined inApplicationErrorCode.
Still open for advice though...

Similar Messages

  • AS3 AIR accessing Android expansion file

    Hello, I have AS3/AIR application for deploying on Google Play. The app has an expansion file attached to it. Expansion file is named "main.1000000.air.com.mycompany.myapp12.obb" and it is downloaded along with the app properly.
    The problem is I cannot access the file with any way I tried, like:
    File.applicationStorageDirectory.resolvePath('Android/obb/main.1000000.air.com.mycompany.myapp12.obb');
    File.applicationStorageDirectory.resolvePath('/Android/obb/main.1000000.air.com.mycompany.myapp12.obb');
    File.applicationStorageDirectory.resolvePath('main.1000000.air.com.mycompany.myapp12.obb');
    File.applicationStorageDirectory.resolvePath('/main.1000000.air.com.mycompany.myapp12.obb');
    or simillar, and I cannot access the file even when the path while developing on Windows seems to be right. When deployed, I just got the "not found" error in my catch block with the supplied File url property: "app-storage:/Android/obb/main.1000000.air.com.mycompany.myapp12.obb". I have been looking for the solution and trying various approaches for several days, but I am stucked. Please help. Developed on ASUS EEE PAD.

    I have same problem on my Nexus 7(2012) Android Lillipop
    The Aplication can't see the obb file after install - it can find it only after device system reload
    but I can see it on such directorys
    storage/sdcard0/Android/obb/
    storage/emulated/legacy/Android/obb/
    storage/emulated/0/Android/obb/
    so why aplication can't find it ?

  • Can iTunes monitor folders for new files and add to library?

    Hi,
    Is there a way to have iTunes monitor my media folders so that if I add any media files in those folders, iTunes will catch the added media files and add them into the library automatically? I have been using something similar in WMP10; moving to iTunes since iPods are not supported in WMP Sorry if this has already been asked (couldnt find anything similar through search)
    Kapil

    No it cant you have to add manually

  • Air on Android - Expansion Files (*.obb)

    Someone ever used it in an AIR app? I'm having problem checking if we downloaded it, and downloading it (what's the Google Play file location?). How to use .zip expansion files?

    I haven't been able to find anything on this from Adobe. Can anyone point us in the right direction for expansion files?

  • ICloud: Will it work with non-iTunes music, converted MP3 files and manually organized library folder?

    I have a small question about the new iCloud that was introduced.
    I listen to music both on my notebook and on my desktop PC. At the moment I use an external hard drive that I keep with me so my music library exists on both computers. If I'm correct the new iCloud means I no longer need the external hard drive.
    But,
    Not all my music was purchased through iTunes. Some things are converted from CD's I bought and the CD is different from the iTunes version. (More songs, other songs,...) What happens with the songs that are different, or music that does not exist (I have a QOTSA CD which is not available outside the US iTunes store, or several LE bonus discs)?
    Some local artists are not on the iTunes store. Is it possible to sync those to?
    And the most important one, I also listen to my music in my car. It has support for an SD-card but no USB support so I can't hook my iPod. It only accepts MP3 files and it needs correctly filled in ID3 tags to show up nicely. I convert all my music with iTunes to MP3, but I use MusicBrainz to tag my music because I found that the iTunes ID3 tags will not be correctly picked up. I'm quite happy with this approach as it also means that I can organize my music library to my liking instead of the "let's throw all artists in one folder" approach iTunes uses. Is it possible to use the iCloud with my MP3 converted and tagged versions of my Music?
    Thanks.

    You can only sync to one iTunes library/computer. If you do sync the iPod is erases and its contents replaced with what is in the iTunes library of the second computer.
    To avoid that see:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Yes, the 1G works with the latest iTunes.
    To transfer iTunes purchases:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    In iTunes 11 use Control+B to show the Menu bar then go to iTunes>File>Devices>Transfer Purchases

  • Android APK Expansion Files for Apps over 50MB

    Hello Support,
    We are building a new version of an app pubished on PlayStore (built with Adobe AIR) and need to embed higher resolution images. This results in my app apk file size which is over 100 MB.
    Google allows to upload apks that are <= 50 MB. For apps which require more storage capacity than this limit, expansion files are needed.
    Can you please inform us about how to incorporate these expansion files with an AIR app?
    Is there a native extension or a built-in feature to prepare the expansion files and surpass the limit?
    I've looked in the forums & there is no definite answer or solution.
    If this is not possible at present, can you please add it to the wishlist for the next version of Adobe AIR SDK? Or perhaps, release a free/paid native-extension which enables this.
    Thanks!

    Yes I got it working this morning, honestly I've got no idea what did the trick, as I did nothing. My only guess right now is I reuploaded new versions of my APK and OBB files on the Android Developer Console yesterday, and maybe it could have taken this long to "refresh".
    Basically right now if I install a fresh apk on the device, it will downloads and unzip my obb. If I kill the app and relaunch, it validates if my obb is still there and continues, when before a simple message box with my app name would stay displayed forever.
    Here's my app code based on the exemple from http://extensionsforair.com/extensions/apk-expansion-files/ :
    public class Main extends Sprite
                        public function Main():void
                                  stage.scaleMode = StageScaleMode.NO_SCALE;
                                  stage.align = StageAlign.TOP_LEFT;
                                  addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
                        private function onAddedToStage(evt:Event):void
                                  addChild(Console.GetInstance());
                                  Console.Trace("Start");
                                  var apkExpansionFiles:APKExpansionFiles = new APKExpansionFiles();
                                  apkExpansionFiles.addEventListener(APKCompleteEvent.APK_COMPLETE, onComplete);
                                  var BASE64_PUBLIC_KEY:String = "your_public_Key";
                                  var outputDir:String = "/Android/data/"; // the outpout folder
                                  var mainVersion:String = "1302000"; // the version of the APK that the file was uploaded
                                  var mainSize:String = "10639971"; // the length of the file in bytes
                                  var mainUnzip:Boolean = true; // unzip the file
                                  //var patchVersion:String=”1000024″; // the version of the APK that the file was uploaded
                                  //var patchSize:String=”14923834″; // the length of the file in bytes
                                  //var patchUnzip:Boolean=true; // unzip the file
                                  apkExpansionFiles.expansionFilesDelivered(BASE64_PUBLIC_KEY, mainVersion, mainSize, mainUnzip, outputDir); // only main obb file
                                  //apkExpansionFiles.expansionFilesDelivered(BASE64_PUBLIC_KEY, mainVersion, mainSize, mainUnzip, outputDir, patchVersion, patchSize, patchUnzip); // main and patch obb files
                        private function onComplete(e:APKCompleteEvent):void
                                  Console.Trace("onComplete");
                                  for (var key:Object in e.params)
                                            Console.Trace("Key : " + key + ", Value : " + e.params[key]);
                                  var conteneurImage:Loader = new Loader();
                                  var fileName:String = e.params.outputDirMain + "asset/2048-2.png";
                                  Console.Trace("File name = " + fileName);
                                  var file:File = new File(fileName); // the outpout Main folder
                                  Console.Trace("File exists? = " + file.exists);
                                  //var file:File = new File(e.params.outputDirPatch+”myImage.jpg”);    // the outpout Patch folder
                                  var image:URLRequest = new URLRequest(file.url);
                                  conteneurImage.load(image);
                                  conteneurImage.scaleX = 0.3;
                                  conteneurImage.scaleY = 0.3;
                                  var secondImageContainer:Loader = new Loader();
                                  fileName = e.params.outputDirMain + "asset/2048.png";
                                  file = new File(fileName);
                                  image = new URLRequest(file.url);
                                  secondImageContainer.load(image);
                                  secondImageContainer.scaleX = 0.3;
                                  secondImageContainer.scaleY = 0.3;
                                  secondImageContainer.y = 614;
                                  this.addChildAt(conteneurImage, 0);
                                  this.addChildAt(secondImageContainer, 1);

  • How do I transfer all my files and itunes library from my Toshiba PC to my new Macbook

    I just ordered a new macbook pro with retina display and it should be here within the next few days. But i don't want to lose and of my important files and my itunes library (with over 2,000 songs). How would I transfer everything onto the macbook safely and quickly.

    Click here and pick the option which best fits your situation.
    (110526)

  • I purchased Mountain Lion Software upgrade and was sent a PDF File with License

    How do I install or redeem the Apple Mountain Lion Sofware Update via a purchased Apple On Line  paper PDF File and License Number PDF ????

    You need to upgrade the computer to 10.6.3, install the 10.6.8 combo updater, and supply the download code to the Mac App Store.
    (118171)

  • Will using an external hard drive cause me to have duplicate files on my itunes library?

    I put all my ITUNES MEDIA folder on my external hard drive from my older computer.. I recently bought a new computer and installed Itunes. I synced some of my Itunes purchased songs back on by using my Ipod.. however the songs I ripped from my cds are still not reinstalled in my library.. I will have to use my external hard drive or re rip those.. and there are a lot of them.. since I have already replaced some of the ones I purchased back on using my Ipod will it duplicate them if I use the prefrences method and return them all from my external hard drive? If i delete my files that I have already returned on my new computer before using my external will Itunes remember which are Itunes purchased music and which arent as well>??? also how exactly do you move music from an external? just plug it in and click the prefrences box about syncing files and keeping Itunes library organized?? any other thing to click?

    An iTunes library consists of both the media and the database that knows which files are in the library and hold details of ratings, playcounts, playlist membership and other details not stored in each file's metadata.
    Depending on how you have moved content to your external drive you may find you are only moved the media, but not the database. If you import this media into a new library it will work, but your library will be seen as "new" with respect to any devices that you have and iTunes will want to erase and reload them, losing you current selections, settings and data on the device.
    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    If you have an iOS device that syncs with contact & calendar data on your computer you should migrate this information too. If that isn't possible create a dummy entry of each type in your new profile and iTunes should offer to merge the existing data from the device into the computer, otherwise the danger is that it will wipe the information from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable. Alternatively you could copy over the iTunes folder and make sure your external drive has the same drive letter on the new system as the old, however moving the library into a portable form will make every subsequent move that much easier.
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • File and iTunes sharing doesn't work

    Hello,
    I have am trying to share files and an iTunes library from my Macbook Pro (Early 2008 model.)  Since upgrading to Mac OS X Mountain Lion, sharing of all kinds has been acting strange.  In other words, file and iTunes sharing from my computer can't be seen by other computers, but the reverse is not true.
    -- 1. iPhone remote app can't see my library: 
             While I can pair my iPhone with my iTunes library (iTunes 11) in the remote application, the Remote app simply says "Looking for..." without no name given for the library (on the remote app, the library shows up as a deactivated itunes logo with no name,) and then "Couldn't find ..."  i.e., it fails to find the library.
    -- 2. iTunes library can't be seen on other macs: 
              I activated home sharing on my mac and another mac (Macbook Air 2011 with Mountain Lion and iTunes 11), I also set my iTunes preferences to "Share music over local network."     While I can see the Air's library on the MBP, I can't see the MBP's library on the Air.
    -- 3. Shared folders can't be seen on other macs:
              I can see shared folders from the Air on my MBP.  But to connect to shared folders on the MBP from the Air, I must enter the exact address, since browsing for my MBP on the network shows nothing. 
    I have confirmed that TCP port 3689 is open on the MBP.   Firewall is off.  The local network in question is my cable modem connection (no router) which I am sharing from my MBP by WiFi .  I am running OS X 10.8.2, iTunes 11.0.1.
    I would appreciate any help anyone could give.
    Thanks

    And you are quite persistent, Menu Boy, in offering pernickety and pointless prattle, in response to a "support page" on iPad's buggy Pages App.
    Let's summarise, for those reviewing this threadless thread for app support..
    Mobile pages works reliably for simple docs, especially creating letters and Menus for Microsoft's Kindy canteen (even on special days with nice big pictures).
    When importing more complex docs and/or working with larger creations, it is prone to randomly corrupting files upon re-opening, along similar lines as Word (running on a PC).
    So, Menu Boy, do they let you sneak into classes every now and then? What is the secret to their training? "Say after me, if any I.T. product works just some of the time, that's a job well done, and if something randomly stops working, we call that the user's fault... And if they complain, we call them names."

  • Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    You can't do that.
    And before you decide to store any music that you own on a computer at work, talk to your IT department. Many organizations do not permit it for legal reasons. Standard policies are that anything stored on company owned computers is the property of the company. It could not be legally stored on their machines unless you transfer the licenses and all copies, physical and digital, to the company, meaning you no longer own the music. If they were to be audited and could not prove that they own the music, they would be subject to copyright violation penalties. Just use your iPod when you're at the office if you want to listen to music.

  • How can I put my mp3 files into my iTunes library? Every time I download a song from a website and try to drag it to my library, it won't add on. How can I fix this?

    Back then when I had the older update with iTunes i never had this problem with trying to put my mp3 files of music into my iTunes library. Now it doesn't want to be put into the library. Once I try to drag the music file to the iTunes library nothing happens, it just keeps showing a cancellation sign with my mouse. So how can I fix this?

    Hi William.
    The problem is probably that the index is corrupt and you need to completely re-create it rather than rebuilding individual mailboxes. I have no idea what the situation really is now after having tinkered with the contents of ~/Library/Mail/, though, so the following procedure may or may not work.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, and making sure that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong -- e.g. by dragging it to the Desktop while holding the Option (Alt) key down.
    3. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.
    4. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • HT1391 I have accidantally created anoth iTunes library file and ripped a lot of music in it. Than I discovered that this music was not arrived in one library file. Know I would like to merge all my music in one library file but don't see which library is

    Hi,
    Regarding my Itunes library:
    I'll try to explain my situation  (sorry for my english).
    I have a networkdrive where all my music is stored on. Itunes is installed on my macbook and I entered the network drive as my media file location. 
    I use my macbook to rip music and buy itunes music assuming it will all be placed in the media folder that I once entered.
    Recently I found out that itunes had changed the location of my media folder to the local drive.
    Since a time now (I can't exactly say when) I'm ripping many of my music collection to itunes.
    Today i discovered the change of my media file location by itunes after I ripped some collections. When clicking the info button on some of the ripped files I see that they are not stored on my networkdrive, very normal, since the location of the media file is changed to local computer.
    When I look in the finder I can find a local libray file (xml file) from 13 april and also one on my network drive but the date is from March. So this one is even older.
    I suppose that the libray file is updated each time I add a song in itunes. So there must be anonther library file somewhere?
    Is there a way to see which libarary file is used in itunes? I know you can start Itunes with the option key to select another library file but is it also possible to view in itunes which library file is used so I can consult the path of the library file in use?
    What should i do to put all the local music to to my network drive and update the correct library to the new location of these files?
    Why is there no alert when Itunes changes the location of the media files path?
    Thanks

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

  • I have all my music on an external hard drive. I just transferred all my files to a new hard drive . How do I sync all my files with my itunes library without losing all my playlists etc and keep everything intact?

    I have all my music on an external hard drive. I just transferred all my files to a new hard drive . How do I sync all my files with my itunes library without losing all my playlists etc and keep everything intact?

    Launch iTunes with the Option key held down, click on Choose Library, and specify it. If the external drive doesn't contain the iTunes database files, create a new library there and import that music.
    If the library contains any rented movies, they won't play on a different computer.
    (109334)

  • HT3842 Does iTunes store the original music file and copy it into a separate folder? If i delete the original file from finder will it remove it from my iTunes library?

    Hi, on my last PC when transferring music to my new MacBook Pro i noticed i had about 6 duplicated of each song in every album i took hours in removing them.
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    If i delete the original file from finder will it remove it from my iTunes library or vice versa. I didnt want to lose any music like i have some how managed to on my old computer.
    Or should i keep both files of it in the Music folder and also iTunes library folder?
    Which is best ?

    DrewPowell wrote:
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    It does both at the same time.
    When you add files to iTunes, it copies them into /Music/iTunes/iTunes media/ folder. The original file remains where it was.
    You can drag a file to /Music/iTunes/iTunes media/Automatically add to iTunes/ folder.
    This will add to iTunes and move it to /Music/iTunes/iTunes media/.
    I keep a shortcut of this folder on my desktop then simply drag files to the shortcut to add to iTunes.
    Then there are no "extra" files around.

Maybe you are looking for

  • Error while executing a procedure in pl/sql

    Hi, iam execvuting a procedure in pl/sql and i get the following error, proc Running: Wed Sep 7 06:13:20 IST 2005 Table truncated. BEGIN <procedure_name> ; END; ERROR at line 1: ORA-01555: snapshot too old: rollback segment number 75 with name "RBS74

  • Itunes crash on startup or when accessing the store

    Hi, I upgraded to iTunes 12.0.1.26 from iTunes 11.1.1.11 on a win7 sp1 system. When I start Itunes, it crashes after a few seconds "iTunes has stopped working...". Log Name:      Application Source:        Application Error Date:          14/01/2015

  • How to format 9 or 11 digit number with dashes

    Windows Adobe Pro 9. Someone please be kind and have mercy on me, I've researched this issue for 5 hours now and cannot resolve it on my own. I have a text field where the user will enter either a 9 digit or 11 digit number separated with dashes. If

  • Query timing study

    Hello, I'm using the following Oracle version. Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production I'm trying to understand how long a certain query takes to return data. I'm saw that on the first execution in Toad, the query

  • The relationships and links between the various SAP database tables

    Hi Gurus, I am trying to learn the relationships and links between the various SAP database tables (SAP FI-AA, SAP SD, SAP MM, SAP HR and so on) for correctly extracting data from them. Especially I am expressing an interest in the SAP database table