Discussion Forums  >  WebViews and HTML for Mobile

Replies: 9    Views: 92

themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
01/07/13 04:06 AM (11 years ago)

not a problem but a solution using phone numbers in html doc for android !!!

i found that using the option tel: works in ios no problemo. however when using it in android in a 2.0 app you will get the loading screen error message. simply apply the next fix to your bt act controller java file at the bottom: you will find: //this is a list of file types that cannot load in a webView, add types as needed. ArrayList<String> doNotLoadList = new ArrayList<String>(); doNotLoadList.add(".mp3"); doNotLoadList.add(".zip"); doNotLoadList.add(".doc"); doNotLoadList.add(".pdf"); doNotLoadList.add(".mpeg"); doNotLoadList.add(".mp4"); doNotLoadList.add(".xls"); doNotLoadList.add(".mov"); doNotLoadList.add("mailto"); just add doNotLoadList.add("tel"); to it at the bottom so it looks like this: //this is a list of file types that cannot load in a webView, add types as needed. ArrayList<String> doNotLoadList = new ArrayList<String>(); doNotLoadList.add(".mp3"); doNotLoadList.add(".zip"); doNotLoadList.add(".doc"); doNotLoadList.add(".pdf"); doNotLoadList.add(".mpeg"); doNotLoadList.add(".mp4"); doNotLoadList.add(".xls"); doNotLoadList.add(".mov"); doNotLoadList.add("mailto"); doNotLoadList.add("tel"); this was a solution sombody posted for 1.5 but it also aplies to the 2.0 app
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/07/13 04:34 AM (11 years ago)
Nice find themc! Thanks for sharing with us:) ian
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/07/13 05:58 AM (11 years ago)
Nice one @themc! Will be using that one! With insights like that you should be looking at becoming a member and helping yourself and others alike with all the new goodness coming our way! Did you see the special yearly price? https://www.buzztouch.com/membership/ Ps You in Holland? Was there once for fitba and once for fun.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/07/13 07:02 AM (11 years ago)
Nice tip @themc! I will be writing this down! Thank you. LA
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/07/13 07:07 AM (11 years ago)
thnx once my business apps are complete ill create some test apps to find more apple / android related issues to solve. @MacApple ill get the membership update as soon as my boss gets back. and yes im from holland, whats fitba ? did you like our country
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/07/13 07:26 AM (11 years ago)
@themc Loved your country, warm and welcoming people. Fitba = football = the beautiful game. Sorry!
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/07/13 09:19 AM (11 years ago)
one of the first issues I had with Android! Is this some code that might be worthy of putting in the next update? Seems to come up every so often and tel links from URL pages are pretty common. Trying to think why it's *NOT* in there? I modded my SH file to always work like this.....
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/07/13 09:24 AM (11 years ago)
Hi Atrain, I'll jot it down for the big guy:) Thanks Ian
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/08/13 09:51 AM (11 years ago)
Got it. DONE. Update the download server to include this. Well done gang.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/08/13 09:52 AM (11 years ago)
Thanks David!
 

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.