AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
10/30/12 10:21 AM (13 years ago)

A different Android Spinner of Death Solution

I had a hyperlink in a page that called an external html page in a new window (i.e. target _blank). It works OK on ios, on Android I got the spinner of death. I tried the @Fred fix http://myskylla.wordpress.com/2012/01/16/the-spinning-wheel-of-death-android/ but it did not fix this scenario. In the same article, I read a an extract by @David :- "but the built-in Android browser does do some funky thing sometimes when it’s redirected". This gave me a clue. So in my hyperlink I changed the syntax to open the link to open in the same window and the problem went away! Well, it pleased me so I thought I'd share! Alan
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
10/30/12 02:34 PM (13 years ago)
That's a good share. Thanks very much! It could really help people, including me. Couldn't help noticing though that you're a UK member! So I thought I should let you know about the UK Meetups I'm holding. It seems that you defiantly are a member who contributes to buzztouch quite a bit, so I thought it would be good to have you along! So here is the forum thread with more information with this: https://www.buzztouch.com/forum/thread.php?fid=E10955880961A22A2111A58&tid=E10955880961A22A2111A58
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/18/13 09:58 AM (12 years ago)
@alanmac re "changed the syntax" ... can you give the before and after code pls? Btw the new link to Fred's article is here: http://myskylla.wordpress.com/2013/01/13/the-spinning-wheel-of-death-android/
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
12/18/13 10:36 AM (12 years ago)
Just your basic html hyperlinking. I found that the first is more reliable in android custom url than the second:- <a href="bbc.co.uk">This calls calls a url in the same page</a><br> <br> <a href="bbc.co.uk" target="_blank">This calls a URL in a new page</a><br> <br>
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/18/13 10:50 AM (12 years ago)
Thanks mate!
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/18/13 11:14 AM (12 years ago)
Hmm I'm already using the "same page" link format and get the spinning wheel of doom when linking to a web page from a html page. I'll have to try Fred's javascript fix. UPDATE: Used the fix re commenting out the "showprogress" link in BT_screen_htmlDoc.java line 131 as follows (I added the line numbers). I'm on BT hosted at the moment and this is for Android... 128: if(BT_act_controller.canLoadDocumentInWebView(url)){ 129: 130: //load url in built-in browser... 131: // avoid bt spinner of doom showProgress(null, null); ...and it works on my emulator AND Htc One Android phone yay!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
12/18/13 11:36 AM (12 years ago)
Which version of Buzztouch are you using @pdog?
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/18/13 12:11 PM (12 years ago)
@alan - no idea. Whatever is hosted at the moment. I don't have self hosted set up.
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/18/13 12:12 PM (12 years ago)
@Alan pls note the update above - I got it to work using Fred's instructions.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
12/18/13 12:25 PM (12 years ago)
Pleased you have it working. Do you remember if you downloaded your project for BT3.0 (the latest) or for v3, the earlier (legacy) version? The commenting out showprogress was good for v2, the reason I'm asking is that I'm trying to see if it is also needed for V3. Cheers, Alan
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/18/13 12:46 PM (12 years ago)
Yes just had to do it today so whatever version that is that's hosted - I have no idea how to tell. I just created the app, published, and downloaded using the "Prepare Android Project" link. I don't know that the lower link is for re "Use Buzztouch Core..."
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.