1. #1
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default Android link behavior on 2.2

    Android link behavior on 2.2


    Hi all,

    I have this button with a location href set to :
    http://www.youtube.com/v/UeSym9bOUbc

    On android 2.1, it works fine.
    Under android 2.2 it does not.

    if I set the button to
    http://www.youtube.com/234545

    it works on both mobile.

    Any idea on what would be the difference ???


    Thanks !

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Hi !
    Using simple html links and no sencha touch does not break the classic link behavior.
    Using simple html links and sencha break the classic link behavior.

    Any idea or hints ?

    P.S : on 2.2 sencha is much faster.

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Ok after some testing, it seems that Sencha prevent from sending any link that is not HTML... I do not know how this could be possible as it was working with 2.1 ...

    Hi all,

    I am getting totally crazy.
    I have link using either :
    Code:
           '<div style="t
    ext-align:center">'+
                '<p>'+
                    '<a target="_blank" href="http://www.youtube.com/v/UeSym9bOUbc">Click!</a>'+
                '</p>'+
                '<p>' +
                    '<a target="_blank" onclick="location.href=\'http://www.youtube.com/v/UeSym9bOUbc\'">Click!</a>'+
                '</p>'+
                '<p>'+
                    '<a target="_blank" onclick="document.location.href=\'http://www.youtube.com/v/UeSym9bOUbc\'">Click!</a>'+
                '</p>'+
            '</div>';
    I am using a simple Ext.Panel with html

    Using Phonegap 9.1, or EDGE release on Android 2.2
    - NO PROBLEM

    Using just SENCHA on the Android 2.2 -> with android navigator
    - NO PROBLEM

    Using Sencha + phonegap on Android 2.2
    The link does not work :

    - googlemap link open directly into android navigator
    - link relative to flash/mp4/avi content does not open at all

    This kind of links on 2.1 using phoneGap + Sencha was opening. I mean, phoneGap or at least the webview asked for opening the link into the android navigator or into the application :
    for googlemap :
    --> map
    --> navigator

    for youtube :
    --> youtube application
    --> navigator

    With 2.2, it seams that there is an incompatibility.

    I've noticed, a lot of link manipulation and template compilation... any idea on what could happen ?

    Thank you guys.

  4. #4
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Damn... this bug drive me crazy. Any one out in the community had a try on this... Or any work around ? Thanks in advance !

  5. #5
    Sencha User
    Join Date
    Aug 2010
    Posts
    17
    Vote Rating
    0
    milo08 is on a distinguished road

      0  

    Default


    Hi gabriel,

    look here: http://www.sencha.com/forum/showthre...463#post498463

    for the solution in 0.98 you will find the place in ext-touch-debug.js in row: 16278

    and in

    /src/gesture/Manage.js in row: 60

    it works, but i don`t know its a good solution.

    greetz milo

  6. #6
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Hi Milo, thank you for this post link.
    Actually this is not the same problem. I am able to href/location.href and anything else on android when it is not a SWF or mp4 content.

    We've found a solution.

    Thanks !

  7. #7
    Sencha User
    Join Date
    Aug 2010
    Posts
    23
    Vote Rating
    0
    emm is on a distinguished road

      0  

    Default


    Hey there,
    I used a custom phonegap to solve this issue. I used this method : DroidGap.loadYoutube('http://www.youtube.com/v/UeSym9bOUbc'); instead of location.href.
    Here's the implementation of this custom method in phonegap.
    I added this code in the file Device.java but they may be a better place for it...
    Code:
        public void loadYoutube(String url){
                mCtx.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
        }

Similar Threads

  1. Link Button or Hyper link
    By nikhilwalker in forum Ext 2.x: Help & Discussion
    Replies: 69
    Last Post: 24 May 2013, 5:13 AM
  2. Keyboard on android
    By gabrielstuff in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 25 Apr 2011, 5:58 PM
  3. Android Forms + 0.96
    By meQ in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 25 Oct 2010, 7:07 AM
  4. Android 1.x support
    By gatakka in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 15 Jul 2010, 11:19 AM
  5. Gridpanel : Strange behavior in IE vs good behavior with Firefox
    By Jayeff_land in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 13 Oct 2009, 5:31 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."