View Full Version : Android link behavior on 2.2

27 Oct 2010, 1:37 AM
Hi all,

I have this button with a location href set to :

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

if I set the button to

it works on both mobile.

Any idea on what would be the difference ???

Thanks !

28 Oct 2010, 8:04 AM
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.

28 Oct 2010, 10:41 AM
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 :

'<div style="t
'<a target="_blank" href="http://www.youtube.com/v/UeSym9bOUbc">Click!</a>'+
'<p>' +
'<a target="_blank" onclick="location.href=\'http://www.youtube.com/v/UeSym9bOUbc\'">Click!</a>'+
'<a target="_blank" onclick="document.location.href=\'http://www.youtube.com/v/UeSym9bOUbc\'">Click!</a>'+

I am using a simple Ext.Panel with html

Using Phonegap 9.1, or EDGE release on Android 2.2

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

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.

29 Oct 2010, 12:59 AM
Damn... this bug drive me crazy. Any one out in the community had a try on this... Or any work around ? Thanks in advance !

29 Oct 2010, 4:37 AM
Hi gabriel,

look here: http://www.sencha.com/forum/showthread.php?106261-OPEN-200-HTML-Hyperlinks-Not-Working-on-Android&p=498463#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

29 Oct 2010, 4:41 AM
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 !

1 Nov 2010, 9:14 AM
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...

public void loadYoutube(String url){
mCtx.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));