mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
01/18/14 03:54 PM (11 years ago)

html issues in android ver 3.0 project

As I've said multiple times, I am NOT a fan of android. I update my iOS apps about 10x as often as Android. And as such this is my first time updating my android apps since the new BT 3.0 projects came out. The first problem I've run in to is with html files. Previously when a user clicked on a menu item that led to a html screen, the html file opened up right away. Now a blank screen with "HTML" shows up with a button at the top asking if they want to open the file or not. Why is this happening? It's the basic html plugin. THanks!!! Josh
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/18/14 04:11 PM (11 years ago)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/14 06:27 PM (11 years ago)
That's interesting! I haven't ran into this yet but now I'm sure I will! LA
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/18/14 07:08 PM (11 years ago)
Have you tried Smug's partial solution on that post? Look for timestamp of 09/18/13 02:41 AM Let us know how it turns out. -- Niraj
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/19/14 07:03 AM (11 years ago)
I foolishly went ahead and deleted every single html screen (approx 250 screens) planning on making them all html pro to see if that fixes the problem. I really hope it does or I just wasted a day of my life...
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/19/14 09:10 AM (11 years ago)
Hopefully you have now tried the HTML Pro plugin by now. Also, consider using the external data URL capability to keep your list of HYML screens in a separate JSON file. That allows you to easily make changes with TextWrangler to avoid the cumbersome mechanical mouse-clicks on the Control Panel. How is it going?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/19/14 09:10 AM (11 years ago)
I only had about 10 screens to do, but I can assure you it works. As an alternative, you can use the custom url plugin and link to your html file in your project as a URL.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/23/14 08:45 AM (11 years ago)
Hi, got the same issue. @AlanMac, what are you referring to when you said it works: Smug's partial solution or the HTML Pro plugin? I am pretty much in the same situation as Josh, 100+ html screens to change and very little Android knowledge. :) Re the custom url, how do you reference to your page in your project, I can't get it to work. Thanks, Farcat
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/23/14 10:21 AM (11 years ago)
Hi @Farcat In an Android project, you can use the custom url plugin and reference an html file in your BT_Docs folder using the url notation file:///android_asset/BT_Docs/ However, if you are building an app that works on IOS as well, this isn't the best way. I personally prefer to use the HTML Pro plugin - I just use it as a straight replacement for the html doc plugin and it works on Android and IOS equally well. Good luck Farid and let us know how you get on. Cheers, Alan
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/23/14 10:41 AM (11 years ago)
Oh, and for embedded images, <img src="file:///android_asset/BT_Docs/image.png">
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/23/14 01:16 PM (11 years ago)
Thanks Alan, great answers, it works! The IOS version is already out so I just need to sort out Android.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/23/14 01:54 PM (11 years ago)
Cheers, happy I could help.
 

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.