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

Custom URL Android

I'm trying to use custom url plugin to load a batchgeo map. Works OK on IOS, but not on an Android. I've implemented spinner of death solutions, but no go. I've tried make an html page with the url's built in, it didn't help. I added Kittsy's support for local storage - didn't change anything. I don't want to load an external app as it takes you out of the app, but I tested and the url works in the Android browser. A url that shows the problem is http://batchgeo.com/map/e0f54f037dde7407d15b60abcf79b479 As I don't have much more hair to pull out and I have spent a couple of days and run out of idea's, I thought I'd shout-out and see if anyone else can add anything.
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
03/08/13 08:53 AM (12 years ago)
try the launch native app to load the map through the native brower... I was having the same issue with the url plugin for a facebook page
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/08/13 09:00 AM (12 years ago)
Thanks @jvalley, I did, but it takes the user out of the app, which I'd like to avoid if at all possible.
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
03/08/13 09:04 AM (12 years ago)
I understand .. On android it appears to stay in .. I know iOS is different
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/08/13 09:07 AM (12 years ago)
Yep and furthermore, the custom url on IOS is OK
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/08/13 09:53 AM (12 years ago)
Try this.. in BT_screen_customURL.java, find the comment: //reference to the webview in the layout file. and add this to the list: webView.getSettings().setAllowFileAccess(true); and maybe also: webView.getSettings().setPluginState(WebSettings.PluginState.ON); see if that helps.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/08/13 10:06 AM (12 years ago)
Thanks @raveyd, I did try. I added the first line, it didn't change anything. Eclipse didn't like the syntax of the second line, error is - Websettings cannot be resolved to a variable. This feels like the right place to play though....
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/08/13 02:33 PM (12 years ago)
Hi Alan, you'll probably need to import WebSettings? - is there a red squiggle under it?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/08/13 03:13 PM (12 years ago)
Hi @raveyd, yes, there was a red squiggle and the error "cannot be resolved to a variable". I'm suspect the problem I am having is related to the url itself - others work, but batchgeo maps seem to have a lot going on, I think they download something to the browser that uses gps (more than the plugin can handle?). Glad for any guidance on this one, I've had a really bad day trying my ios app with several maps from batchgeo and a google map with 90 entries working on Android (which will not load from file for me). It's driving me nuts!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/08/13 04:54 PM (12 years ago)
Sorry Alan, I took a look and the best I can get is the header across the top - 'Biscotti_UK', and a grey area where the map should be. On their forum are a number of posts about the map not showing in 2.2, but I tested on a 4.1. Dunno. Maybe post on their forum?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/09/13 02:04 AM (12 years ago)
Hi @raveyd, thanks for trying, that is exactly what I get from custom url, but it does render from an android browser on a 2.2 phone, or nexus tablet. I figure if you can't make this work I have no chance! Launch external browser is how I will have to go I guess.
 

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.