Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 47

enannos
Lost but trying
Profile
Posts: 4
Reg: Sep 04, 2013
Munich
40
09/10/13 06:04 AM (12 years ago)

How to run 3rd party navigation app

Hello buzztouch team. After many months of searching and experimenting,I found out the buzztouch page which is realy great for people like me that have no idea of programing... I've created a simple app which opens some pdf's, uses the e-mail and callus plugin and it works great. I need to also have an extra button that when you click on it,it will open a navigation software(like Mapswithme, MapFactor, NavFree etc). The reason I want to do this is that I do not want to use the google maps api because I do not want to be always online and the above mentioned software use offline charts for navigation. I've experimented with the native app plugin but with no success. When I click on it, I get the list to choose the software(browser,googlemaps) but the already installed nav software is not shown on the list. Is there a trick or a way to simply click on the button inside my app and open a 3rd party app? Thank you
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/10/13 06:19 AM (12 years ago)
This might help... http://wiki.akosma.com/IPhone_URL_Schemes Cheers! -- Smug
 
enannos
Lost but trying
Profile
Posts: 4
Reg: Sep 04, 2013
Munich
40
like
09/10/13 06:58 AM (12 years ago)
Hello Smug, thanks for your quick answer. is there something like this for android also? I need to do it in android. I read somewhere that there is a trick using the simple URL plugin and just entering appname:// but could not make it work. enannos
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/10/13 02:38 PM (12 years ago)
You need the app name, but you need the 'real' app name, which is usually 'com.something' http://stackoverflow.com/questions/4644666/how-to-make-a-button-open-another-app-with-java-android Cheers! -- Smug
 
enannos
Lost but trying
Profile
Posts: 4
Reg: Sep 04, 2013
Munich
40
like
09/11/13 03:39 AM (12 years ago)
Hey Smug, thanks for the answer. I got the real app name. And now the crucial question...: Where do I put the code ? In which file? Let's say I use the "Button menus" plugin and have a button for my app, where do I need to enter the code? enannos
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/11/13 04:30 AM (12 years ago)
Take a look around line 373 or so of your 'BT_viewControllerManager.m' file. That's where the 'launchNativeApp' method is held, and you can work the needed values in the code to allow it to 'trigger' your desired app, if it's not already listed. Wait. That's iOS. For Android, it should be around line 494 of BT_fragment.java (for Android 3.0+. Not sure about the old code; probably in BT_Activity.java somewhere). Keep in mind, that's only the source code. Until you're a BT Member and self hosting, you can't make changes in the plugins control panel code to also provide the same choices, but you can get the job done. Cheers! -- Smug
 

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.