Discussion Forums  >  Uncategorized

Replies: 8    Views: 331

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

BUG report: Android 1.5 - LocationMap

Hi, I saw in readme file and on this site it says the maps should work now. But they don't,at least for me. I have Google 2.2 API installed,and added project with Google api8 (2.2), in strings.xml added debug and release keys generated from google's api key signup. But my map on device or simulator doesn't work and force closes when it's clicked on it. Is it necessery to do some aditional steps(didn't find anywhere on forum or readme.txt about location maps) or is this not working for everybody ?
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/21/11 08:50 PM (14 years ago)
What does LogCat display after clicking on your map? Also, see if this helps you: http://www.buzztouch.com/forum/thread.php?tid=A908E4423240A42E68521C0
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
09/22/11 03:15 AM (14 years ago)
This is how it looks like when I have a map with only one location. http://i52.tinypic.com/257oww4.jpg And this is LogCat from DataUrl map, after clicking on a grid(shows only grid): 09-22 09:24:37.131: DEBUG/dalvikvm(305): GC_FOR_MALLOC freed 1431 objects / 172984 bytes in 63ms 09-22 09:25:22.153: DEBUG/AndroidRuntime(305): Shutting down VM 09-22 09:25:22.153: WARN/dalvikvm(305): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): FATAL EXCEPTION: main 09-22 09:25:22.262: ERROR/AndroidRuntime(305): java.lang.NullPointerException 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java:617) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.google.android.maps.ItemizedOverlay.getItemAtLocation(ItemizedOverlay.java:586) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.google.android.maps.ItemizedOverlay.handleMotionEvent(ItemizedOverlay.java:498) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.google.android.maps.ItemizedOverlay.onTouchEvent(ItemizedOverlay.java:572) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java:63) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.google.android.maps.MapView.onTouchEvent(MapView.java:643) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.View.dispatchTouchEvent(View.java:3766) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:897) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1671) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.app.Activity.dispatchTouchEvent(Activity.java:2086) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1671) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.app.Activity.dispatchTouchEvent(Activity.java:2086) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.os.Handler.dispatchMessage(Handler.java:99) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.os.Looper.loop(Looper.java:123) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at android.app.ActivityThread.main(ActivityThread.java:4627) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at java.lang.reflect.Method.invokeNative(Native Method) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at java.lang.reflect.Method.invoke(Method.java:521) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 09-22 09:25:22.262: ERROR/AndroidRuntime(305): at dalvik.system.NativeStart.main(Native Method) 09-22 09:25:22.305: WARN/ActivityManager(59): Force finishing activity com.dealhunter/.BT_activity_root_tabs 09-22 09:25:22.852: WARN/ActivityManager(59): Activity pause timeout for HistoryRecord{45092d90 com.dealhunter/.BT_activity_root_tabs} 09-22 09:25:24.932: INFO/Process(305): Sending signal. PID: 305 SIG: 9 09-22 09:25:24.962: INFO/ActivityManager(59): Process com.dealhunter (pid 305) has died. 09-22 09:25:24.962: INFO/WindowManager(59): WIN DEATH: Window{45156368 com.dealhunter/com.dealhunter.BT_activity_root_tabs paused=false} 09-22 09:25:25.043: WARN/InputManagerService(59): Got RemoteException sending setActive(false) notification to pid 305 uid 10040 09-22 09:25:33.332: WARN/ActivityManager(59): Activity destroy timeout for HistoryRecord{45092d90 com.dealhunter/.BT_activity_root_tabs}
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/22/11 02:27 PM (14 years ago)
Ok, excellent. I'll have David check this out as I'm still learning it myself. In the meantime, did you have any luck with the URL in my last post?
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
09/22/11 02:42 PM (14 years ago)
Thanks Parker! I have installed everything like mentioned on the URL already before, but it didn't change a thing.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/22/11 11:40 PM (14 years ago)
From everything I could gather you need to be sure that when you compile, your app is in debug mode and you are using a google maps debug key. This link should also help out with creating the proper keys: http://www.buzztouch.com/forum/thread.php?tid=DBE27AF95442FAD7878D254 It sounds like something is set to release instead of debug.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/22/11 11:43 PM (14 years ago)
 
Mario
Code is Art
Profile
Posts: 58
Reg: Mar 21, 2011
location unknow...
580
like
09/23/11 02:21 PM (14 years ago)
Tried everything,but still same problems. Map is not shown and when clicked anywhere on map, it force closes. Thanks Parker a lot for trying to help! :)
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
03/15/12 04:45 PM (13 years ago)
I am having similar problems. This is where I am in the Readme.txt: 2) In the Act_ActivityBase.java file, inside the src/yourProjectName folder, in the ShowLocationMap() function, uncomment the warning and the function call. It looks like this (it's about half way down the file) //showLocationMap public void showLocationMap(){ I see the Act_ActivityBase.java files in my 1.4 Android projects, but I don't see it in the 1.5 project. There is a file called: BT_Activity_Base.java, but I can't find the showLocationMap inside of that file. Any ideas for me?
 

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.