Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 22    Views: 301

kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
06/04/14 12:27 AM (10 years ago)

Google map not showing any locations

I've got about 80 locations entered on my map but none appear on the map. A map does appear! Just no pins. I've tried updating the config data and I've used both debug and release keys. Regardless of whether I run from Eclipse or download the apk onto the phone separately, I get the same result.
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
06/04/14 12:54 AM (10 years ago)
Sorry, I have no answer but just wanted to say that there was a series of messages floating around late last week and they mentioned this problem. The outcome was, I believe, that someone (can't remember who) was looking into this. This may be affecting me shortly as I am considering making an app which will incorporate the need to use a google map with location pins.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/04/14 01:02 AM (10 years ago)
If your map appears, the hard part is over. Now let's figure out about those pesky pins. If the pins were entered into the control panel, they should accompany the config file with the screen as 'childItems'; ensure they are included in your config file. If you've made changes since the app was downloaded, make sure you 'refresh' the app, so that the latest config data is included. If they are a separate file, make sure the dataURL is correct for your childItem file. Let us know how it goes... Cheers! -- Smug
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
06/04/14 02:14 AM (10 years ago)
Thanks for responding guys. Smug, I'm not using a dataURL. I've copied the config data from the CP into the Eclipse config.txt file, just in case. I've refreshed the app too. Config file includes childitems as follows: "itemType":"BT_screen_map", "itemNickname":"Map", "navBarTitleText":"Map", "showUserLocation":"0", "showUserLocationButton":"0", "defaultMapType":"standard", "showMapTypeButtons":"0", "showRefreshButton":"0", "singleLocationDefaultZoom":"15", "childItems":[{"itemId":"105EAF988E95922102AD514", "itemType":"BT_locationItem", "title":"Bristol", "latitude":"51.4684889", "longitude":"-2.5907094"}, {"itemId":"6017BC6D20A6831C4504758", "itemType":"BT_locationItem", "title":"Reading / Wokingham", "latitude":"51.4514567", "longitude":"-0.9960478"}, {"itemId":"1BF7D10DDC96AABEC3084B8", "itemType":"BT_locationItem", "title":"Maidenhead", "latitude":"51.5180146", "longitude":"-0.728684"}, ... I don't know if the logcat will mean anything to you but I'll put it in the next post just in case. Thanks again
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
06/04/14 02:15 AM (10 years ago)
06-04 11:00:53.776: V/WebViewInputDispatcher(32420): blockWebkitDraw 06-04 11:00:53.776: V/WebViewInputDispatcher(32420): blockWebkitDraw lockedfalse 06-04 11:00:54.081: D/webview(32420): blockWebkitViewMessage= false 06-04 11:00:54.096: D/CallbackProxy(32420): sendMessageToUiThreadSync Package=com.newvipukandroid message=103 06-04 11:00:54.111: W/ZZ(32420): Cr_html_pro: checking url for native screen 06-04 11:00:54.111: W/ZZ(32420): Cr_html_pro: url is: A2792613CB96D9A60656B3E 06-04 11:00:54.116: W/ZZ(32420): Cr_html_pro:loadScreenObject. Loading screen with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.116: W/ZZ(32420): BT_activity_host:initPluginWithScreenData. Calling helper method in BT_application 06-04 11:00:54.121: W/ZZ(32420): BT_application:initPluginWithScreenData. Creating plugin with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.121: W/ZZ(32420): BT_screen_map:setScreenData JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.121: W/ZZ(32420): BT_activity_host:showFragmentForPlugin. Showing plugin with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.131: W/ZZ(32420): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 06-04 11:00:54.141: W/ZZ(32420): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.141: W/ZZ(32420): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.141: D/WebCore(32420): uiOverrideUrlLoading: shouldOverrideUrlLoading() returnstrue 06-04 11:00:54.146: W/ZZ(32420): Cr_html_pro:onPause JSON itemId: "C119990A3E7C902E8F55F79" itemType: "Cr_html_pro" itemNickname: "Groups" 06-04 11:00:54.146: W/ZZ(32420): Cr_html_pro:onStop JSON itemId: "C119990A3E7C902E8F55F79" itemType: "Cr_html_pro" itemNickname: "Groups" 06-04 11:00:54.151: W/ZZ(32420): BT_screen_map:onAttach JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.151: W/ZZ(32420): BT_screen_map:onCreate JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.151: W/ZZ(32420): BT_screen_map:onCreateView JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.166: W/ZZ(32420): BT_screen_map:onCreate. Found Google Maps v2 API Key: ###################################### 06-04 11:00:54.171: I/Google Maps Android API(32420): Google Play services package version: 4452036 06-04 11:00:54.191: D/AbsListView(32420): Get MotionRecognitionManager 06-04 11:00:54.191: D/AbsListView(32420): onVisibilityChanged() is called, visibility : 8 06-04 11:00:54.191: D/AbsListView(32420): unregisterIRListener() is called 06-04 11:00:54.196: D/AbsListView(32420): onVisibilityChanged() is called, visibility : 8 06-04 11:00:54.196: D/AbsListView(32420): unregisterIRListener() is called 06-04 11:00:54.196: D/AbsListView(32420): onVisibilityChanged() is called, visibility : 0 06-04 11:00:54.196: D/AbsListView(32420): unregisterIRListener() is called 06-04 11:00:54.206: D/ProgressBar(32420): setProgress = 0 06-04 11:00:54.206: D/ProgressBar(32420): setProgress = 0, fromUser = false 06-04 11:00:54.206: D/ProgressBar(32420): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 10000 06-04 11:00:54.226: W/ZZ(32420): BT_screen_map:onCreateView using data from app's configuration file 06-04 11:00:54.226: W/ZZ(32420): BT_screen_map:parseScreenData 06-04 11:00:54.231: W/ZZ(32420): BT_screen_map:parseScreenData EXCEPTION org.json.JSONException: No value for subTitle 06-04 11:00:54.231: W/ZZ(32420): BT_screen_map:showMapPins 06-04 11:00:54.231: W/ZZ(32420): BT_screen_map:showMapType "standard" 06-04 11:00:54.231: W/ZZ(32420): BT_screen_map:setMapBoundsToPois 06-04 11:00:54.231: W/ZZ(32420): BT_screen_map:onActivityCreated JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.231: W/ZZ(32420): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 06-04 11:00:54.236: W/ZZ(32420): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.236: W/ZZ(32420): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.236: W/ZZ(32420): BT_screen_map:onStart JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.236: W/ZZ(32420): BT_screen_map:onResume JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.236: W/ZZ(32420): BT_screen_map:onCreateOptionsMenu JSON itemId: "A2792613CB96D9A60656B3E" 06-04 11:00:54.236: W/ZZ(32420): BT_screen_map:onCreateOptionsMenu JSON itemId: "A2792613CB96D9A60656B3E" itemType: "BT_screen_map" itemNickname: "Map" 06-04 11:00:54.251: E/(32420): Device driver API match 06-04 11:00:54.251: E/(32420): Device driver API version: 23 06-04 11:00:54.251: E/(32420): User space API version: 23 06-04 11:00:54.251: E/(32420): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9 21:05:57 KST 2013 06-04 11:00:54.356: D/ProgressBar(32420): updateDrawableBounds: left = 0 06-04 11:00:54.356: D/ProgressBar(32420): updateDrawableBounds: top = 0 06-04 11:00:54.356: D/ProgressBar(32420): updateDrawableBounds: right = 96 06-04 11:00:54.356: D/ProgressBar(32420): updateDrawableBounds: bottom = 96 06-04 11:00:54.481: D/dalvikvm(32420): GC_FOR_ALLOC freed 4621K, 36% free 25979K/40084K, paused 35ms, total 36ms 06-04 11:00:54.501: D/AbsListView(32420): [unregisterDoubleTapMotionListener] 06-04 11:00:54.501: I/MotionRecognitionManager(32420): .unregisterListener : / listener count = 0->0, 06-04 11:00:54.501: D/AbsListView(32420): unregisterIRListener() is called 06-04 11:00:54.501: D/AbsListView(32420): unregisterIRListener() is called 06-04 11:00:54.516: E/ViewRootImpl(32420): sendUserActionEvent() mView == null 06-04 11:00:54.846: D/dalvikvm(32420): GC_FOR_ALLOC freed 1922K, 35% free 26105K/40084K, paused 29ms, total 29ms
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/04/14 03:19 AM (10 years ago)
Ok this is doing it: 06-04 11:00:54.231: W/ZZ(32420): BT_screen_map:parseScreenData EXCEPTION org.json.JSONException: No value for subTitle One (or more) of your items does not have a subtitle. find out which one it is, and add something. If you don't want to use anything, add a 'hard' space by using your option key + space bar in the subtitle field. Cheers! -- Smug
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
06/04/14 07:36 AM (10 years ago)
You were quite right! Each location only shows if the sub-title is populated. Once these are added, it works fine. Many Thanks to you Smug.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 11:04 AM (10 years ago)
Are you referring to your iOS or Android APP? BT 2 or BT 3? My BT 3 iOS App works just fine... for BT 3 Android, I'm still stuck on the API Map keys part. The instructions in the readme for the BT_screen_map plugin, for the Google Map keys, is a year and a half deprecated. I know that people got caught up in the BT 3.0 release, and now iOS 8 has been announced... but could someone please fix the readme for the Map plugin? Location Map Version: v1.9 Category: Screen Smug: Can you, or can you request of the proper people? The new Google "help" page is full of warnings of what "not to do", but then one gets lost trying to find what "to do"!
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 11:10 AM (10 years ago)
e.g. One SHA1 certificate fingerprint and package name (separated by a semicolon) per line. Example: 45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example OK - WHAT is my package name? Is it what is in >src? I found com.travelmap there, by hacking. Is that correct? The readme should note that. I know what my SHA1 is - because I did find that on the Google "help" page. But in the readme, the location of SHA1 should be noted.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 12:04 PM (10 years ago)
"After getting your Google Maps API keys, you need to enter them in the projects strings.xml file. This file is included in your project download in the /src/values folder. Open /src/values/strings.xml with a simple text editor, or in Eclipse, then find two entries: googleMapsAPIKeyDebug googleMapsAPIKeyRelease" There is no /src/values folder. The only item in /src is com.travelmap There IS a /res/values/strings.xml There is no googleMapsAPIKeyDebug googleMapsAPIKeyRelease in /res/values/strings.xml . There is a /src/com.travelmap/BT_strings.java/ But I am not going to hack around them.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 12:15 PM (10 years ago)
Also, I'm told the Map doesn't work in the Eclipse AVD.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 12:54 PM (10 years ago)
Turns out the working iOS App on my iPhone 5S was a 2.0. I went back to my Self Hosted Control Panel and hacked around a bit and got the 3.0. It seems that if you click to expand the first two menu items regarding Plugins and SDKs, and then unexpand, the option for 3.0 comes and goes! At least in Chrome as the Browser. I downloaded 3.0 and went through the traditional steps of adding the Plugins folder and the icons. I have to manually edit the Build Architecture, change the signing and "fix" that one other thing for which there is a menu that comes up and all you have to do Is click OK. In Simulator, everything is fine, except that I had to change the main menu row color to white #FFFFFF, in order to see the back refresh arrow and back buttons... I'll fiddle with that more later. It's all handled in the config.txt file anyway. Now the same App that works as 2.0 on the phone, now has a fatal error in 3.0 on the phone (no error in the Simulator): dyld: Symbol not found: _OBJC_CLASS_$_NSMutableURLRequest Referenced from: /var/mobile/Applications/B83B84FA-4640-49D6-80DD-BB91E34B974A/travelmap.app/travelmap Expected in: /System/Library/Frameworks/CFNetwork.framework/CFNetwork in /var/mobile/Applications/B83B84FA-4640-49D6-80DD-BB91E34B974A/travelmap.app/travelmap (lldb) No clue.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 01:12 PM (10 years ago)
I'm thinking that the above fatal error might be related to the fact that I downloaded and am using Xcode 6 Beta, because of the advertised graphics, that I haven't yet found how to activate. There is no option to use SDK for iOS 7, only iOS 8. We're not there yet! I'm going to now go back to Xcode 5.1.1.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 01:19 PM (10 years ago)
Back to Xcode 5.1.1. It has saved SDK as iOS8, so I had to select iOS7. Re-installed App on iPhone 5S. No fatal errors. Accesses current config.txt with dataURL. All the data is current.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/05/14 02:31 PM (10 years ago)
1) Get a Google API v2 key for your BTv3 Android project. Use it as a 'release' key. 2) Enter the API Key in your AndroidManifest.xml file 3) Change 'android:debug = true' to FALSE (in AndroidManifest.xml) 4) Leave your strings.xml file alone 5) Maps will never work in an emulator; use a real device. This document may assist: https://www.buzztouch.com/files/howtos/googleapiv2.pdf Cheers! -- Smug
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 05:42 PM (10 years ago)
I did all of that and I think I exported a good .apk. But there's no map. Something comes up saying "9 Locations" (which is true), but there's no map and no pins. I'd like to be able to use an Emulator, to save the struggle of constantly deleting the old App, and downloading and installing the new App. Remember - before I got my API Key, I got the sad Android Device, with the 3 clouds and the "Circle Slash".
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/05/14 06:07 PM (10 years ago)
Well, the bottom line is if you have no map, then the API key has not been correctly configured. If you see '9 locations' then the plugin is there, and working... Revisit the API configuration. You shouldn't have to compile an APK to check it; you can check the device while connected to your computer... just plug it in, and ensure eclipse uses it as your target device. The first time will be a bit frustrating at times... but persevere; it'll eventually sort itself out. Cheers! -- Smug
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 07:13 PM (10 years ago)
"You shouldn't have to compile an APK to check it; you can check the device while connected to your computer... just plug it in, and ensure eclipse uses it as your target device. " I have no clue as to what that means. I know how to plug in my iPhone 5S to Xcode... but not how to plug Android device... other than the USB cable of course... Am I to do something with Eclipse, or drag and drop after the .apk is exported??
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/05/14 08:46 PM (10 years ago)
I got Genymotion installed as a Virtual Device. Looks much more like an Android device. This time, I got the Map error - Android Device with 3 clouds and Circle-Slash.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/06/14 12:37 PM (10 years ago)
Amazing with the Map App that I wrote 2 years ago, the .apk works to this day, including Maps! Now I need to go find what's different between then and now.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/06/14 02:07 PM (10 years ago)
I think I just figured out my problem: I got the SHA1 key from Xcode! Doh - I need the Google API for Android!!! Android != Xcode! Now, how do I find the SHA1 from Eclipse? Or BT Self Hosted Control Panel?? This may be an after-dinner project.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/06/14 04:42 PM (10 years ago)
I just had my first full-fledged success with my Android App (4:30pm PDT 2014-06-06)... but I did 3-4 things to get there, including: Removing the Debuggable statement from Manifest. And Right Click > Android Properties > Fix Project Properties And Q)uit Eclipse, Clean, and restart twice. Redid my Google API key. Somewhere in that VooDoo dance, IT WORKS!
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/06/14 04:45 PM (10 years ago)
The "Current Location" indicator on the Android App changed from the phone-looking icon, to pulsating blue dot. YEAH! The "Current Location" indicator on the iOS App changed from the pulsating blue dot, to pulsating BLACK dot. NOT YEAH! The Android App is not respecting the menu row color nor the background image. iOS App is! Both have white screen while dataURL data is loading.
 

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.