Discussion Forums  >  Uncategorized

Replies: 7    Views: 256

Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
09/26/11 09:19 AM (14 years ago)

Report of Android 1.5. MAP BUG when using your ScreenData URL & partial fix for it till it's resolved

Hi guys! For the last 10 days I was trying to get LocationMaps using my own ScreenData URL to get working. For ScreenData URL I am using David B.'s script. I was always getting blue background,or a grid for the map. And everything worked perfectly on iPhone. When I added ,subTitle:something} with quotes where are needed to my output file it started to work,map,locations,title and subtitle are shown now. But I still need commands that will work on android for when clicked show this screen or for showing driving directions. Is there an example script that will work on android or some help with commands? Kind regards, Mario
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/26/11 10:20 AM (14 years ago)
Hi Mario, The backend .php script you're using for the iOS project to power a map will be the same for an Android project. The JSON output is the same for both platforms. Maybe I'm not understanding the question?
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
09/26/11 10:33 AM (14 years ago)
Hi David, I am using the same .php script for iOS and Android project. It works completely normal on iOS,but on Android it doesn't. It doesn't show dataUrl(link to another page) when clicked on pin and I didn't have subtitle in output file of a script and the map didn't work without that.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/26/11 10:35 AM (14 years ago)
Do you have the latest verison of the Android project for v1.5? It is still in Phase 1 but did get updated a few times. The map screens for Android v1.5 should work 100% if you downloaded the latest project (see the change log, can't remember when this change happened). Also... be sure to see the LogCat output in Eclipse when you tap a map item...it shows lots of good info about what's happening.
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
09/26/11 11:08 AM (14 years ago)
I have downloaded latest version right now. LogCat says that subtitle is missing. I have added that manually. But it doesn't show link to another page or driving directions when clicked on a pin. Also, is it possible to add little part of a HTML document to button screen? Any directions regarding that? I want to add search field to main button screen. Thx for your help David! You are very kind :)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/26/11 12:19 PM (14 years ago)
Post the URL to your maps data output file. The URL on your backend that is producing the data... I'll have a look. Adding HTML to a button screen will be difficult. In fact, the button menus are not even supported yet for Android v1.5. You could however create a background image with some text on it if you want? Not sure of your design and usually a bad idea to use text on a graphic but I have seen some cases where it looks nice. Post your maps dataURL.
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
09/26/11 12:51 PM (14 years ago)
I have been trying some of this dataURL's, below every is the explanation what doesn't work on it: 1. http://www.faca.isgreat.org/locations_demo.php?outputType=mapLocations&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&maximumDistanceRadius=8000 It's default locations_demo script with default values, on android doesn't work.Missing subtitle says in Logcat. And doesn't show link when clicked on a pin 2. http://www.somesite/location.php?outputType=mapLocations&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&maximumDistanceRadius=8000 This is my original dataUrl that I am using for my app,and it is working great on iOS...on Android it misses subtitle and doesn't show link when clicked on a pin When I add subtitle value manually to output file,then the map is shown and the locations. But still doesn't show link when clicked on a pin.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/27/11 12:08 AM (14 years ago)
1: This output (look at it in your browser) does not have a subTitle value for each item. Of course it will not show a sub-title on the map if the data is not included in the JSON. It also does not have a loadScreenWithItemId or a loadScreenWithNickname or a loadScreenObject setup in the JSON for each location. This means no details link will show, one of these is required to show the details link. 2: Same thing with the subTitle, your JSON data does not have a subTitle included. However, it does have a loadScreenObject for each location. This should show the details button when a pin is tapped. It does not, I tested it. I found the issue with the BT_screen_map.java file and have updated the download server. You should get the latest copy. NOTE: Look at your data in the browser...you have loadScreenWithItemId and loadScreenWithNickname items in the JSON but empy values. Get rid of these if you are not using them. Only ONE of these is needed to tell the app what screen to load when the details button is tapped.
 

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.