Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 94

Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
07/26/12 04:25 PM (13 years ago)

[Plugin] Website link to open an app screen. BT Self Hosted. Android only.

Been messing around trying to open an app screen from a website link. Thought it'd be more fun to put it in a plugin. It was really too much of a headache trying to write the code into, for example, the customHTML plugin so I ended up writing the code to the 'blank screen' plugin. It's very very bare bones. There's nothing to add in the control panel, the plugin simple loads the relevent files into the project and you can edit them in eclipse. So the plugin is little more than a working demo that adds a new screen to your project, with a button going to a webpage and a link on the web page that opens the main activity of the app (in this case the simple menu), along with some instructions. Feel free to strip out the code and get it working in existing plugins, or at least looking nicer! Install plugin as normal: https://buzztouchmods.com/downloads.php?cat_id=1&download_id=40 Demo App: https://dl.dropbox.com/u/56760890/webtoapp.apk
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
07/26/12 04:30 PM (13 years ago)
Nice addition for BT Server & Android @raveyd! Thanks!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/26/12 04:31 PM (13 years ago)
Thanks @mysps - have a play and see what you can do with it.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/26/12 04:38 PM (13 years ago)
Excellent I suppose this will allow you to link to the main activity from an embedded html? Fred
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/26/12 04:40 PM (13 years ago)
Should do Fred, haven't tried an embedded file, I tried it with a webpage on dropbox. Works fine.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
07/26/12 04:59 PM (13 years ago)
Fantastic, Thanks a lot!
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
07/26/12 05:04 PM (13 years ago)
Nice. Thanks. Lots of great uses for this from html docs. I was just thinking the other day that maybe using the Custom URL scheme might be part of the puzzle to open BT screens from HTML docs in iOS... Maybe something in your plugin might add another piece. I'll give it a download and check it out soon and try the app out. Thanks for sharing, very useful tool - have needed the functionality.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/26/12 05:13 PM (13 years ago)
Hi @ATRAIN53, check it out, it might be useful. The code is quite straightforward, it's integrating it into a bt screen that causes the headaches! Basically, write an intent and link to the intent. That's about it for Android really.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/26/12 05:47 PM (13 years ago)
@Rave - awesome! Want to try this out ASAP - I can already think of a million uses this can go into. Can we throw this up on btm rave? Cheers, David buzztouchmods.com
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/26/12 05:57 PM (13 years ago)
Hi David, I'v already submitted it. The plugin is very limited though. Hopefully someone will strip the code out and put it in a customURL plugin or something. I got in a right mess trying! I might look again tomorrow with a clearer head.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/26/12 07:23 PM (13 years ago)
Here you go, live! https://buzztouchmods.com/downloads.php?cat_id=1&download_id=40 Cheers, David. buzztouchmods.com
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
07/27/12 01:32 PM (13 years ago)
Sheesh, the ideas with this plugin are endless:) good stuff @raveyd !!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/27/12 01:43 PM (13 years ago)
Hi @coderx! How ya doin'? I'm expecting you to strip out the code and make it much better than it is! A very cool thing I noticed is that you can go to the webpage in a phone browser, click the link and it'll still open the app even if the app is force closed and has data/cache cleared. I wasn't expecting that, thought the webpage would need to be contained within the app.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
11/08/12 09:49 AM (13 years ago)
was planning to give this a closer look and see about making it work with Custom URL schemes still- tried to grab the package from BTM and the link is toast... any chance you guys can check that out?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
11/08/12 10:04 AM (13 years ago)
Not sure what's happening there, it was uploaded to btm and I haven't altered anything. Perhaps David@btm can get to it?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/08/12 10:11 AM (13 years ago)
i just downloaded it the other day. here is the url, there was a forward slash missing https://buzztouchmods.com/downloads/bt_screen_webToApp.zip
 

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.