Has anyone been successful with "apk expansion pack" solution through air for android for large apps

We have a 300 MB application which is very video happen and we need to find a solution that packages the content along an install file that is less than 50 MB for the android market.
any help would be greatly appreciated.

In Flash CS6, I built my own downloader for when the app is run the first time. First it creates a list of files to be downloaded then downloads them one at a time. After all files are downloaded I used the ELS to save the download status.
import flash.net.URLRequestHeader;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
import flash.filesystem.FileStream;
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.utils.ByteArray;
import flash.events.ProgressEvent;
import flash.display.Loader;
import VideoInfo;
import flash.events.IOErrorEvent;
import flash.net.NetworkInfo;
import flash.net.NetworkInterface;
function downloadAllFiles():void {
    //downloads files
    fileIndex = 0;
    downloadNextFile();
function downloadNextFile():void {
    //downloads one file
    if (fileIndex <= video_list.length-1) {
        //progress bar
        //progress_mc.width = 1;
        //progress_txt.text = "";
        status_txt.text = "Download in progress...";
        var fileURL:String           = video_list[fileIndex].videoURL;
        fileName                         = video_list[fileIndex].videoName;
        fileSize                           = video_list[fileIndex].videoSize;
        var fileMimeType:String = video_list[fileIndex].videoMimeType;
        var header:URLRequestHeader = new URLRequestHeader("Content-Length", "0");
        var header2:URLRequestHeader = new URLRequestHeader("Content-Type", fileMimeType);
        fileRequest = new URLRequest(fileURL);
        fileRequest.method = URLRequestMethod.GET;
        fileRequest.contentType = fileMimeType;
        fileRequest.requestHeaders.push(header);
        fileRequest.requestHeaders.push(header2);
        urlLoader = new URLLoader();
        urlLoader.addEventListener(Event.COMPLETE, onDownloadComplete);
        urlLoader.addEventListener(ProgressEvent.PROGRESS, onDownloadProgress);
        urlLoader.addEventListener(IOErrorEvent.IO_ERROR, onDownloadError);
        urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
        urlLoader.load(fileRequest);
    } else {
        trace("All files have been downloaded.");
        wait_txt.text = "";
        status_txt.text = "All files were downloaded.";
        //show continue button
        btn_box_mc.btnLabel.text = "CONTINUE";
        btn_box_mc.visible = true;
        downResBtn.visible = true;
        downResBtn.addEventListener(MouseEvent.CLICK, onDownloadCompleteFunc);
        //saved download status in the local store
        MovieClip(root).setAssetsDownloadStatus();
function onDownloadCompleteFunc(evt:MouseEvent):void {
    //downloads complete handler
    //start app
function onDownloadComplete(evt:Event):void{
    //download complete handler
    status_txt.text = "Downloaded " + fileName + ".";
    //trace(fileName + " downloaded to " + File.applicationStorageDirectory.nativePath);
    var dataD:ByteArray = evt.target.data;
    //save the file
    var fileStream:FileStream = new FileStream();
    var dFile:File = File.applicationStorageDirectory;
    dFile = dFile.resolvePath(fileName);
    fileStream.open(dFile, FileMode.WRITE);
    fileStream.writeBytes(dataD, 0, dataD.length);
    fileStream.addEventListener(Event.COMPLETE, onSaveComplete);
    fileStream.addEventListener(ProgressEvent.PROGRESS, onSaveProgress);
    fileIndex++;
    //accumlated oize
    totalAccumulatedSize += curVideoAccumulatedSize;
    downloadNextFile();
function onDownloadError(evt:IOErrorEvent):void {
    //download error handler
    trace("Error downloading " + fileName);
    wait_txt.text = "";
    status_txt.text = "Error downloading " + fileName + ".";
    //show exit button
    btn_box_mc.btnLabel.text = "QUIT";
    btn_box_mc.visible = true;
    downResBtn.visible = true;
    downResBtn.addEventListener(MouseEvent.CLICK, exitFunc);
function exitFunc(evt:MouseEvent):void {
    //exit
    NativeApplication.nativeApplication.exit(0);
function onDownloadProgress(evt:ProgressEvent):void{
    //download complete handler
    //trace("Progress: " + evt.currentTarget.bytesLoaded + "/" + fileSize);
    //var temp_txt:String = debug_txt.text;
    //debug_txt.text = temp_txt + "\nFile: " + fileName + " (bytes downloaded: " + evt.currentTarget.bytesLoaded + "/" + fileSize + ")";
    curVideoAccumulatedSize = evt.bytesLoaded; //file must reside on a server that doesn't gzip enabled
    var count:Number = fileIndex + 1;
    var perc:Number = Math.round(100*(totalAccumulatedSize + curVideoAccumulatedSize)/totalSize);
    var partialMB:Number = (totalAccumulatedSize + curVideoAccumulatedSize)/1048576;
    progress_txt.text = String(perc) + "% completed (" + String(partialMB.toFixed(1)) + " of " + totalSizeMB.toFixed(1) + " MB)";
    status_txt.text = "Downloading file #" + count + " of " + video_list.length + ":  "  + fileName;
    //progress bar
    progress_mc.width = 480*(partialMB/totalSizeMB);
function onSaveProgress(evt:ProgressEvent):void{
    //save complete handler
    trace("Saving file... ");
function onSaveComplete(evt:Event):void{
    //save complete handler
    trace("File saved.");
function createVideo(fn:String, fs:int, mimetype:String):VideoInfo {
    //returns a video
    var assetsURL:String = "http://mywebsite.com/myvirtualdirectory/";
    var fURL:String = assetsURL + fn;
    var video:VideoInfo = new VideoInfo(fn, fURL, fs, mimetype);
    return video;
function createVideoList():void {
    //creates the list of videos to download
    //populate video list
    video_list.push(createVideo("building2_1.flv", 1858694, "video/x-flv"));
    video_list.push(createVideo("building2_2.flv", 1905661, "video/x-flv"));
    video_list.push(createVideo("building2_3.flv", 1810634, "video/x-flv"));
    video_list.push(createVideo("building2_4.flv", 1994332, "video/x-flv"));
    video_list.push(createVideo("building3_1.flv", 1828362, "video/x-flv"));
    video_list.push(createVideo("building3_2.flv", 2550128, "video/x-flv"));
    video_list.push(createVideo("building4_1.flv", 2249678, "video/x-flv"));
    video_list.push(createVideo("building4_2.flv", 1301540, "video/x-flv"));
    video_list.push(createVideo("building5_1.flv", 3152689, "video/x-flv"));
    video_list.push(createVideo("building5_2.flv", 4258518, "video/x-flv"));
    video_list.push(createVideo("building5_4.flv", 1741195, "video/x-flv"));
    video_list.push(createVideo("building6_1.flv", 3295741, "video/x-flv"));
    video_list.push(createVideo("building7.flv", 1723062, "video/x-flv"));
    video_list.push(createVideo("district1.mp4", 1876220, "video/mp4"));
    video_list.push(createVideo("district3.mp4", 2087587, "video/mp4"));
    video_list.push(createVideo("district6.mp4", 2011591, "video/mp4"));
    video_list.push(createVideo("district8.mp4", 4870888, "video/mp4"));
     video_list.push(createVideo("global1.mp4", 2007542, "video/mp4"));
    video_list.push(createVideo("global2.mp4", 4148857, "video/mp4"));
    video_list.push(createVideo("global3.mp4",  3563990, "video/mp4"));
    video_list.push(createVideo("global4.mp4", 2452995, "video/mp4"));
    //calculate total size
    for (var p=0; p < video_list.length; p++) {
        totalSize += video_list[p].videoSize;
    totalSizeMB = 0.1*Math.round(10*totalSize/1048576);
    //start download
    downloadAllFiles();
var fileName:String;
var fileSize:int;
var fileRequest:URLRequest;
var urlLoader:URLLoader;
var fileIndex:Number = 0;
var curVideoAccumulatedSize:Number = 0;
var totalAccumulatedSize:Number = 0;
var totalSize:Number = 0;
var totalSizeMB:Number = 0;
var video_list:Array = new Array();
//create list of files to be downloaded
createVideoList();
VideoInfo.as
package {
    public class VideoInfo {
        public var videoName:String;
        public var videoURL:String;
        public var videoSize:Number;
        public var videoMimeType:String;
        public function VideoInfo(videoNameP:String, videoURLP:String, videoSizeP:Number, mimetypeP) {
            videoName             = videoNameP;
            videoURL             = videoURLP;
            videoSize            = videoSizeP;
            videoMimeType        = mimetypeP;

Similar Messages

  • Has ANYONE been successful with their IP4 order?

    I've been trying since it was available and have had zero luck. I'm about to give up. Anyone get lucky yet?

    I was, still waiting for conf email. I woke up @ 4am, finally around 5:15 I was able to reserve, with no eligibility pricing, even though I was eligible. I got worried about that and tried again just after the opps message in the apple store. I got all the way through, but then got stopped for having another reservation. I quickly cancelled that, clicked enter and kept my fingers crossed. It went thru for the $199 and now I'm waiting for conf email. Good luck all it's work time!
    Received conf email.
    Message was edited by: Jack Pollard

  • Has anyone been successful in using a HP scanjet on Windows 7 Professional XP Mode?

    has anyone been successful in using a HP scanjet on Windows 7 Professional XP Mode?

    Hi there,
    Could you provide the community with a little more information to help narrow troubleshooting? Which scanjet are you using?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Has anyone had success with Apple replacing their iPhone 4 [out-of-warranty] concerning the stuck power button?

    Has anyone had success with Apple replacing their iPhone 4 [out-of-warranty] concerning the stuck power button?

    For $149 they will do an out-of-warranty replacement.

  • Has anyone had there ipod touch repaired or serviced through apple for a broken screen (internal) if so how long did it take to get it sent back

    has anyone had there ipod touch repaired or serviced through apple for a broken screen (internal) if so how long did it take to get it sent back

    Not really. Is say "pending"
    pend·ing 
    /ˈpendiNG/
    Adjective 
    Awaiting decision or settlement.
    Preposition
    Until (something) happens or takes place: "they were released on bail pending an appeal".
    Synonyms
    adjective. 
    pendent - undecided - unsettled - outstanding - pendant
    preposition. 
    during - until - till - to

  • Has anyone been successful importing h.264 into Encore?

    First, my system and goal:
    A MacPro with 2.66mHz dual core and 12 gigs of RAM.
    Multi Terrabytes of space.
    I shoot on a Panasonic HVX-200, edit in Final Cut Pro and output Quicktime files as the basis for rendering to DVD and Blu-ray. I shot this stuff in 1080i. The camera codec is DVCPROHD and that is what I output to also.
    I am trying to burn Blu-ray discs. I have an external Pioneer BDR-203 Blu-ray burner and it works fine.
    I have done my tests and have decided that for Blu-ray, h.264 is far superior to mpeg2 in look and file size so I am sticking with it.
    Here is the issue (and I have scoured this forum area and found no one discussing or solving this issue to date):
    I have made hundreds of different DVDs with DVDStudioPro and am very familiar with it. Not to get off on a tangent but my beloved Apple has decided to betray me by not supporting Blu-ray (the ONLY way to output HD for us independents) so I studied up on Encore and have been using it to format my latest project to HD. The interface works pretty nice and even has some superiority to DVDSP but you have to have the patience of JOB to see your results. 5 Day (Remember. That's 24 Hour Days) Rendering is my tops so far. (OK. Full Disclosure... the documentary is 3 hours and 15 minutes long BUT DVDStudioPro took the same Quicktime files and crunched them down to mpeg2 for the DVD in about a day) Anyway about 6 days ago I had a 3 day render session that crapped out on me as it was finally recording to disc. For some reason it didn't like the BD-RE disc I had in the machine and just bagged the whole process. When I put in a new disc it just started rendering All Over Again. After that debacle I gave up on that method and now am rendering to BDMV folders which I then burn to disc using Toast. (While I am writing this my fingers are crossed that it will make it to the end - it's been another 3 days...)
    I provide the details above to show why I am more than dismayed that I cannot figure any way to import h.264 files INTO Encore from another renderer. Either Compressor or Encoder render much faster than Encore. So I have tried render my project to a variety of output types from both Apple's Compressor and Adobe's Encoder with no joy any way I try.
    (as a side note I am also dismayed that when I made a change to a MENU, Encore decided to encode The Whole Project Again rather than just the menu part...)
    One of my latest file testing adventures was based on a theory that the problem has to do with DVCPROHD recording to 1280 x 1080 anamorphic rather than 1440 x 1080 (the "expected" frame size for 1080i). I fooled with that a half day but could not get either renderer to generate any test material from my FCP output that Encore would burn without re-rendering. By that I mean I cajoled and tricked Compressor and Encoder to output 1920 x 1080 files; 1440 x 1080 files and 1280 x 1080 files (all h.264) to see if Encore would recognize any of them without re-rendering them. No Luck.
    So. Has anyone had success importing h.264 into CS4Encore from anywhere (but particularly using the same or similar gear I am using)? The Encore literature really doesn't give you much to go oon.
    Lately I am very inclined to think the problem has something to do with this 1280 x 1080 DVCPROHD issue but I can't say for sure. I offer that as a suggestion if anyone else with a similar production stream is having the same problem and maybe it will trip a switch in their mind for a solution.
    I like the Encore interface and design possibilities you have by swinging back and forth from PShop and After Effects but using Encore's renderer is like Chinese Water Torture.
    Thanks for your help.

    Brian,
    I got your test file into Encore and got Encore to show its Blu-ray transcode status as "Don't Transcode".
    Screenshots:
    PrCS4 Export settings:
    EnCS4 Project Panel:
    Since it's hard to make out the En Project panel, I'll attach the same image to another message.
    -Jeff

  • Has anyone had success with Messaging Server 5.2 under Windows 2000 Server?

    Just to be up front - we MUST use Windows 2000 - they're not giving me a choice to move to Solaris or Sun Hardware. Linux isn't even a choice, nor is WinNT. (I know, it's annoying).
    I've managed to get Directory Server 5.1 to run under windows 2000 without active directory installed. I found that I needed to modify the ims_dssetup.pl script that comes with the Messaging Server 5.2 to reference the full path to my ldapsearch and ldapmodify executables. Apparently, this is a win2k specific problem, and is not necessary on WinNT. This made ims_dssetup.pl work and the install of Messaging Server 5.2 work on a windows 2000 machine.
    However, at reboot, the job controller and dispatcher do not automatically start. When I try to start the services manually, I get "Error 1067: The Service terminiated unexpectedly".
    Any ideas? I'm desperate here - they're gonna make us use exchange if I can't get >>something<< working. Even a 4.x version of messaging server will do.
    Thanks

    Well, I do understand that.
    However, I've installed iMS 5.2 on win2k several times (I admit, w2k pro, not server), and i've never installed AD.
    If you can get it installed and working for your default domain, but not for other domains, then most likely it has nothign to do with AD or AD domains. iMS idea of domains is very different from AD's idea of domains. We need to be very clear about such.
    for iMS, you have to create additional domains through Delegated Admin, as either "Hosted Domains" or as "Vanity Domains". We do not suggest using "Vanity Domains", and support for such is deprecated.
    Once you have created "Hosted Domains" through Delegated Admin, you can add users to those domains, and they should work, just fine.

  • Has anyone had problems with Domayne using generic third party RAM for memory upgrades? My RAM is now faulty and had to be removed, but Apple wont replace it under Apple Care because its not a genuine component?

    The computer was purchased in the knowledge that all components and hardware were genuine and subsequently covered by the Apple Care warranty.
    Domayne replaced the genuine components (8GB stick) with generic components (2x 16GB sticks) to save money and boost margin.
    Apple should not allow this misleading, profiteering behaivour. This behaviour is brand damaging. Apple must maintain more control over their supply chain.
    Has anyone had any expirenece with this problem?
    Has anyone made Domayne or other third party resellers acountable for this misleading behaviour?
    Thank you.

    Stick with Brand name RAM and reputable distributors.  Mac is finicky about low quality RAM
    Try OWC http://www.macsales.com/
    Crucial http://www.crucial.com/
    Most RAM comes with Lifetime guarenntee so return it where you got it.

  • Has Anyone Been Able to Stand Up Essbase Analytics Link (EAL) for Financial Management in version 11.1.2.2?

    Has anyone had any luck standing up the Essbase Analytics Link (EAL) for Financial Management Application in 11.1.2.2?  We are to the point where when we click on the “Create Bridge Application” it creates an application and database in EAS and then crashes the Hyperion Essbase Analytics Link Server - Web Application .  Prior to this we were getting a NetRetry and NetDelay error and have increased those settings are are not receiving those same errors.  I’m curious if 11.1.2.2 is even a functioning version of EAL or if we are out of luck until the next version.  Any feedback is appreciated.

    FYI, we were able to get EAL up and running after adding the following entries into the registry on our servers...
    Solution
    This timeout issue can be fixed by adding two tcpip registry parameters, but first you must identify which client was communicating with essbase when the timeout occurred so that you know which machine to add the parameters to.  If all the EAL and EPM components are installed on a single machine, then that machine would also host the client.  If products are installed in a distributed environment you determine the client machine based on how the EAL Essbase Server component is defined.
    The APS URL is part of the Analytics Link, Essbase Server definition in EAL.
    If the value (APS URL) is "Embedded" this means that the EAL Application Server is communicating via the JAPI directly with the Essbase Server. In this case the EAL AppServer is the client to the Essbase Server. For this case the following tcpip registry parameters need to go on the machine where the EAL Application Server is running.
    If the (APS URL) value is http://serverName:13080/aps/JAPI then the EAL Application Server is communicating by way of Hyperion Provider Services (APS). In this case EAL proxies requests to and from the Essbase Server through APS. This means that APS is the client to the Essbase Server and the tcpip registry parameters need to go on the machine where Hyperion Provider Services are running.
    Once you have identified which machine is acting as the client to essbase, set the TcpTimedWaitDelay=30 and MaxUserPort=65534 parameters via the windows registry.
    1. Open the Windows Registry.
    2. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TCPIP\Parameters.
    3. Add new DWORD Value named "TcpTimedWaitDelay"
    - right click and select Modify
    - Select "decimal" radio button, type in 30.
    4. Add new DWORD Value named MaxUserPort
    - right click and select Modify
    - Select "decimal" radio button, type in 65534
    5. A reboot of the server is necessary.

  • Has ANYONE been successful in accessing their Time Capsule via mobileme???

    I have set my mobileme user name and password on both of my Time Capsules yet I have not been able to see either one from anywhere other than from within my network.
    Perhaps I am missing a simple step but I don't think so.
    Just wondering how others have fared with this.
    I am using a new and updated time capsule that I just purchased and the other was purchased in September. All firmware updates are done as well.
    Thanks in advance to all.

    I up dated my Time capsule with 7.4.1 and I can see my Time Capsule with no problems on my mobileme, I have a problem keeping my network up with the new update. The Time Capsule looses the internet and network after an hour or two after the updated and new to be upluged and pluged back in to get the network back and the internet, when go back to 7.3.2 the system works fine by I am not able to see my Time Capsule on the Mobileme, but it does show on my network and I can access on the network, I am asked to update the Time Capsule because it keep opening the update window.
    Larry King
    PS does anyone else have this problem.

  • Usb unrecognisable message now appears when i plug my old ipod into the usb port on my v70. It used to work so i assume this is a problem caused by updating to the latest software. Has anyone been successful in downgrading to an earlier os using itunes

    I now get an urecognisable usb device message when i plug my ipod classic (ipod colour?) into the usb input in my Volvo V70. The ipod used to work, but since updating the IOs it doesn't. Can anyone tell me where i can find a copy of an old ipsw which does work so that i can downgrade back and acheive compatibility again,
    thanks chris jones

    perhaps someone from apple tech might contribute as the software upgrade has rendered the device useless for my purposes
    Chris Jones

  • I'm getting the error message when downloading the latest version of itunes has anyone been successful in downloading it?

    I'm trying to get this out of the way. I'm getting an error about Apple Mobile Device isnt registering. I have my phone attached but i dont understand what else to do. Any help?

    Strip it out and start again.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you really want to roll back to 11.4 uninstall all iTunes/Apple components as described in the second box, restore the pre-upgrade version of the library as described in Empty/corrupt iTunes library after upgrade/crash, then download and install from one of these direct links:
    iTunes 11.4.0.18 for Windows (32-bit) - iTunesSetup.exe (2014-09-09)
    iTunes 11.4.0.18 for Windows (64-bit) - iTunes64Setup.exe (2014-09-09)
    tt2

  • Has anyone had success with the VMWare adapter in 5.3.1?

    We are trying to use the VMWare adapter to control the powerstate of our VMs. 
    Issues we are having specific to the adapter:
    1.  Tried passing a group variable in the Virtual Machines dropdown on the VMWare tab.  The job launched, but didn't do anything, so we cancelled it.
    2.  We then tried to run a shutdown job on one of the VMs, but received the error:  "Unable to launch task, because another task is already running on this VM "
    3.  The only way to get the job to run was to stop and start the adapter connection, which won't be possible in Prod.
    4.  We were able to run the shutdown job, and the VM shutdown, but the job stayed active until our job event to cancel after max runtime triggered.
    5.  We then tried running our Power Off job with the "skip if already in expected power state" flag set.  The job ran anyway and completed abnormal.  We are wanting to run this second step as we have seen instances where gracefully shutting down a VM doesn't work.
    Are these issues that other folks have experienced?
    Michelle

    I worked with Cisco/Tidal to investigate the issues.  We were able to "resync" Tidal and the ESX server by making sure no VM jobs were running in Tidal and disabling the connection.  We waited 20 minutes and then enabled the connection.  We waited until the connection went green and requested the powerstate and Tidal reflected the same state as VCenter.  We are not receiving the 'task running' message any longer.
    Michelle

  • TS2690 Has anyone had success with this in a domain environment?

    I work for a school system, windows 7 64bit machines and there seems to be no fix. A reimage of the machine only fixes it for a short time.

    I worked with Cisco/Tidal to investigate the issues.  We were able to "resync" Tidal and the ESX server by making sure no VM jobs were running in Tidal and disabling the connection.  We waited 20 minutes and then enabled the connection.  We waited until the connection went green and requested the powerstate and Tidal reflected the same state as VCenter.  We are not receiving the 'task running' message any longer.
    Michelle

  • Has anyone had success with importing AVCHD Surround? Any Camera?

    The title says it all.
    Please give some details and thanks.
    Barry

    How to try that ? I am using Sony HDR-CX560V

Maybe you are looking for