Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha - Sencha Touch Dev Team
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    19
    RossGerbasi will become famous soon enough RossGerbasi will become famous soon enough

      0  

    Default EXT.Ajax.request on Large Files is Broken Android 2.2

    EXT.Ajax.request on Large Files is Broken Android 2.2


    I know it is a very small user case but I can confirm an issue much like what is posted here
    https://groups.google.com/forum/?fromgroups#!topic/phonegap/apQEO2pRdNo

    Essentially using Ext.ajax to load a large file will return a Status of 0 on Android 2.2. It works fine on Android 2.3 and above though. I know this is a Ext issue as if I switch over to jQuery $.ajax and load the exact same file it works without a problem.

    It would be nice to not include jQuery into my application but for now that's the only way it will work loading large local files with ajax.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    751
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    How large of a file are we talking about?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Sencha Touch Dev Team
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    19
    RossGerbasi will become famous soon enough RossGerbasi will become famous soon enough

      0  

    Default


    I was loading a 2.6mb file but I am going to go out on a limb and say it will happen with anything over 1MB, this is only a guess though. I started down this road because of this issue.

    http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/

    I hope this post will help some people but if you are trying to build for android 2.2 using Sencha you will have a problem because your app.js will likely be larger then 1MB. Android 2.2 will attempt to compress this and break. You will receive an Error reading "Data exceeds UNCOMPRESS_DATA_MAX"

    My work around was to rename app.js to app.jet and fix the reference in my index.html file also JUST for android builds. This is stupid, but it works. Only files listed on that website for NO compression will work over 1MB.

    Again this is ONLY Android 2.2, as 2.3 has fixed this problem. You will need to do this for any files in your www folder that are larger then 1MB and do NOT have a extension listed on that page.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar