WebView and Google map

Hi.

Take a look at the Google Maps API documentation for events:

Google Maps Javascript API V3 Events - Google Maps JavaScript API V3 - Google Code

And the documentation for the Map object:

Google Maps Javascript API V3 Reference - Google Maps JavaScript API V3 - Google Code

Scroll down the Map documentation to 'Events'.

So in your map javascript you can create an event listener for the Map click event.

Code: Copy
google.maps.event.addListener(myMap, 'click', function(mouseEvent){
  // the mouseEvent object has a single property 'latLng' which is the coordinates of the point on the Map which has been clicked
  var latLng=mouseEvent.latLng;
  // do something with latLng
});

What do you want to do with the coordinates of the click?
Do you want to send them to your B4A code?
You can use my WebViewExtras library to add a new javascript interface to your WebView:

Code: Copy
Dim MyWebViewExtras As WebViewExtras

MyWebViewExtras.addJavascriptInterface(MyWebView, "B4A")

Sub DoSomethingWithLatLng(LatStr As String, LngStr As String)
  Dim Lat As Double
  Dim Lng As Double
  Lat=LatStr
  Lng=LngStr
  ' now do something with Lat and Lng
End Sub


The map javascript can now call the Sub in your B4A code:

Code: Copy
google.maps.event.addListener(myMap, 'click', function(mouseEvent){
  var lat=mouseEvent.latLng.lat();
  var lng=mouseEvent.latLng.lng()
  B4A.CallSub('DoSomethingWithLatLng', true, lat, lng);
});

I've used 'true' for the 'callUIThread' parameter.
If the Sub being called does not modify your activity UI then you can use false.
Have a read about this parameter on the WebViewExtras thread i linked to above.

Martin.
 
Upvote 0
Hi Martin.

Thank's for sharing this code and your experience.
It allows me to go some steps further in two programs.

Just one point, there is a semicolon missing in the javascript.
Code: Copy
google.maps.event.addListener(myMap, 'click', function(mouseEvent){
  var lat=mouseEvent.latLng.lat();   
  var lng=mouseEvent.latLng.lng()[COLOR=Red];[/COLOR]
  B4A.CallSub('DoSomethingWithLatLng', true, lat, lng);
});
Best regards.
 
Upvote 0
Thanks
can you explain one more thing
I never saw this option to add java script inside b4a project
can you post some written example / relevant post
 
Upvote 0
You can have a look at this post Googlemaps V3 in a WebView.
I'm working on an evolution of this program, where I just added the click, zoom_changed and center_changed events, thanks to Martins' code samples and the WebViewExtra library.

I can post it in a few days, still a few things to add.

Best regards.
 

Attachments

  • GoogleMaps.jpg
    GoogleMaps.jpg
    90 KB · Views: 850
Upvote 0
Thanks
can you explain one more thing
I never saw this option to add java script inside b4a project
can you post some written example / relevant post

The documentation for the native WebView's addJavascriptInterface() method is HERE.

That explains the concept.

With B4A and my WebViewExtras library the javascript interface class is a simple class with a single method named CallSub().

Your webpage javascript can execute this single method CallSub() and then CallSub() can call a Sub in your B4A activity.

It's always been possible to execute javascript statements in a browser by using the javascript protocol:

Code: Copy
javascript:alert('Hello World');

If you copy/paste that into your browser address bar now it will execute.
And that's how your B4A activity can execute javascript in your WebView.

You could do that without my library:

Code: Copy
Dim Javascript As String
Javascript="javascript:alert('Hello World')"
MyWebView.LoadUrl(Javascript)

Or with WebViewExtras:

Code: Copy
Dim MyWebViewExtras As WebViewExtras
MyWebViewExtras.executeJavascript(MyWebView, "alert('Hello World')")

If you look at the demo code for my older JSInterface library - look at my_web_page.htm in particular - you'll find various examples that can be adapted to the newer WebViewExtras library.

(Mainly you'd just need to pass a callUIThread parameter in each javascript statement that calls CallSub()).

Martin.
 
Upvote 0
Instead of the whole program you find attached small test program for the display of a google map, on a WebView, with markers, a polyline and the click, zoom_changed and center_changed events.

Best regards.
 

Attachments

Upvote 0
Is there a way to put icon/picture on the map (where I click)
such if I click on somewhere on the map, a car picture will apear there
 
Upvote 0
Hi.

Take a look at this tutorial that explains how to add a Marker to a Map:

Google Maps API 3 – Markers | In usability we trust

The tutorial explains what you need to know - but uses a static LatLng to position the Marker.

If you've used the code that Klaus posted then presumably you can detect a 'click' event on the Map.
So in your Map's 'click' event listener you should be able to use some code from the tutorial - just replace the LatLng used in the tutorial with the LatLng returned to your click event listener.

Martin.
 
Upvote 0
It looks simple to change the icon:
icon: 'http://google-maps-icons.googlecode.com/files/factory.png'

but how do I load local picture and not from web
I tried few options, and did not manage to do it
 
Upvote 0
Hi.

Use the standard syntax to address files in your applications Files folder:

Code: Copy
<script type="text/javascript">
// code here
var myIcon='file:///android_asset/my_custom_icon.png';
// and code here
</script>

Martin.
 
Upvote 0
Thanks
here is example in html code based on Klaus code:

Dim MyCar As String
MyCar="file:///android_asset/car2.png"


HtmlCode = HtmlCode & "; var markerc = new google.maps.Marker({ position: new google.maps.LatLng(" & CenterLat & "," & CenterLong & "),map: map, title: '',clickable: false,icon:'" & MyCar & "'})"
 
Upvote 0
Maybe anyone tried to place markers with extra text info ?
Say time of the point tracked.
 
Upvote 0
Code of Klaus is very useful.
But i noticed that the webview\activity is force closed after try pinching the map. Sometimes, but often.
Who also found ?

How to fix ?
 
Last edited:
Upvote 0
Just force closing dialogue, trying to reproduce to check the log.
This happens sometimes when you try to change the zoom by pinching - markers and map is zoomed in and new layer map should start to load, but frozen, and the force closing question is here. Waiting does not help.
I remember this on Android 2.3. Now the same in v.4.0.3
 
Upvote 0
If the log is filtered - no error :-(
Unfiltered is so:

My app process is "peacemaker.beback", "beback.resultmap" is map activity, started from "beback.stat" activity.

Code: Copy
LogCat connected to: "CKT TUNA"
--------- beginning of /dev/log/system


updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
Broadcast sticky: Intent { act=android.intent.action.SIG_STR flg=0x10 (has extras) } ordered=false
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
userActivity mLastEventTime=85861844 time=85864053 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85864053 timeoutOverride=-1 nextState=3 when=85870053
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
userActivity mLastEventTime=85864053 time=85865438 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85865438 timeoutOverride=-1 nextState=3 when=85871438
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
userActivity mLastEventTime=85865438 time=85867967 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85867967 timeoutOverride=-1 nextState=3 when=85873967
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
userActivity mLastEventTime=85867967 time=85868994 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85868994 timeoutOverride=-1 nextState=3 when=85874994
Checking for alarms... rtc=1366438795529, elapsed=247753073
Checking active alarm when=247753072 Alarm{419862a0 type 2 com.google.android.location}
Alarm triggering: Alarm{419862a0 type 2 com.google.android.location}


Checking active alarm when=248400000 Alarm{41ad9360 type 2 com.google.android.apps.maps}
Native set alarm :Alarm{41ad9360 type 2 com.google.android.apps.maps}
reset poweroff alarm none
sending alarm Alarm{419862a0 type 2 com.google.android.location}
Broadcast: Intent { act=com.google.android.location.ALARM_WAKEUP_LOCATOR flg=0x14 (has extras) } ordered=true
acquireWakeLock flags=0x1 tag=NetworkLocationCallbackRunner
acquireWakeLock flags=0x1 tag=AlarmManager
releaseWakeLock flags=0x1 tag=AlarmManager total_time=0ms
acquireWakeLock flags=0x1 tag=NetworkLocationLocator
acquireWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@415ed630}
updateWifiState, wifiShouldBeEnabled:true, wifiShouldBeStarted:true
startScan when start driver
set: Alarm{41981680 type 2 com.google.android.location}
Adding alarm Alarm{41981680 type 2 com.google.android.location} at 0
alarms: 8 type: 2
0: янв 03 11:49:18 PM com.google.android.location
1: янв 04 12:00:00 AM com.google.android.apps.maps
2: янв 04 12:02:47 AM com.google.android.gsf
3: янв 04 01:07:49 AM android
4: янв 04 03:40:12 AM com.google.android.apps.maps
5: янв 04 04:59:17 AM com.google.android.apps.maps
6: янв 04 10:33:30 AM android
7: дек 16 12:44:12 PM com.google.android.apps.maps
Native set alarm :Alarm{41981680 type 2 com.google.android.location}
releaseWakeLock flags=0x1 tag=NetworkLocationCallbackRunner total_time=16ms
acquireWakeLock flags=0x1 tag=RILJ
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
set: Alarm{418a3e00 type 2 com.google.android.location}
Adding alarm Alarm{418a3e00 type 2 com.google.android.location} at 0
alarms: 8 type: 2
0: янв 03 11:49:58 PM com.google.android.location
1: янв 04 12:00:00 AM com.google.android.apps.maps
2: янв 04 12:02:47 AM com.google.android.gsf
3: янв 04 01:07:49 AM android
4: янв 04 03:40:12 AM com.google.android.apps.maps
5: янв 04 04:59:17 AM com.google.android.apps.maps
6: янв 04 10:33:30 AM android
7: дек 16 12:44:12 PM com.google.android.apps.maps
Native set alarm :Alarm{418a3e00 type 2 com.google.android.location}
releaseWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@415ed630}
updateWifiState, wifiShouldBeEnabled:true, wifiShouldBeStarted:true
startScan when start driver
releaseWakeLock flags=0x1 tag=NetworkLocationLocator total_time=133ms
acquireWakeLock flags=0x1 tag=GpsLocationProvider
releaseWakeLock flags=0x1 tag=GpsLocationProvider total_time=0ms
acquireWakeLock flags=0x1 tag=LocationManagerService
releaseWakeLock flags=0x1 tag=LocationManagerService total_time=0ms
acquireWakeLock flags=0x1 tag=LocationManagerService
releaseWakeLock flags=0x1 tag=LocationManagerService total_time=81ms
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
RCV <- {600 Iface linkstate wlan0 up}
Broadcast: Intent { act=android.net.wifi.SCAN_RESULTS flg=0x10000010 } ordered=false
set: Alarm{415df328 type 2 com.google.android.location}
Adding alarm Alarm{415df328 type 2 com.google.android.location} at 0
alarms: 8 type: 2
0: янв 03 11:49:58 PM com.google.android.location
1: янв 04 12:00:00 AM com.google.android.apps.maps
2: янв 04 12:02:47 AM com.google.android.gsf
3: янв 04 01:07:49 AM android
4: янв 04 03:40:12 AM com.google.android.apps.maps
5: янв 04 04:59:17 AM com.google.android.apps.maps
6: янв 04 10:33:30 AM android
7: дек 16 12:44:12 PM com.google.android.apps.maps
Native set alarm :Alarm{415df328 type 2 com.google.android.location}


set: Alarm{417dcc20 type 2 com.google.android.apps.maps}
Adding alarm Alarm{417dcc20 type 2 com.google.android.apps.maps} at 7
alarms: 8 type: 2
0: янв 03 11:49:58 PM com.google.android.location
1: янв 04 12:00:00 AM com.google.android.apps.maps
2: янв 04 12:02:47 AM com.google.android.gsf
3: янв 04 01:07:49 AM android
4: янв 04 03:40:12 AM com.google.android.apps.maps
5: янв 04 04:59:17 AM com.google.android.apps.maps
6: янв 04 10:33:30 AM android
7: дек 16 12:44:12 PM com.google.android.apps.maps
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
Broadcast sticky: Intent { act=android.intent.action.SIG_STR flg=0x10 (has extras) } ordered=false
set: Alarm{415c29e8 type 2 com.google.android.apps.maps}
Adding alarm Alarm{415c29e8 type 2 com.google.android.apps.maps} at 7
alarms: 8 type: 2
0: янв 03 11:49:58 PM com.google.android.location
1: янв 04 12:00:00 AM com.google.android.apps.maps
2: янв 04 12:02:47 AM com.google.android.gsf
3: янв 04 01:07:49 AM android
4: янв 04 03:40:12 AM com.google.android.apps.maps
5: янв 04 04:59:17 AM com.google.android.apps.maps
6: янв 04 10:33:30 AM android
7: дек 16 12:44:12 PM com.google.android.apps.maps
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
Broadcast sticky: Intent { act=android.intent.action.SIG_STR flg=0x10 (has extras) } ordered=false
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
userActivity mLastEventTime=85868994 time=85873291 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85873291 timeoutOverride=-1 nextState=3 when=85879291
Checking for alarms... rtc=1366438800001, elapsed=247757545
Checking active alarm when=247757544 Alarm{41922950 type 3 android}
Alarm triggering: Alarm{41922950 type 3 android}
Checking active alarm when=248444104 Alarm{41abb6e8 type 3 com.gismeteo.client}
Native set alarm :Alarm{41abb6e8 type 3 com.gismeteo.client}
reset poweroff alarm none
sending alarm Alarm{41922950 type 3 android}
Broadcast: Intent { act=android.intent.action.TIME_TICK flg=0x40000014 (has extras) } ordered=true
acquireWakeLock flags=0x1 tag=AlarmManager
set: Alarm{416586a8 type 3 android}
Adding alarm Alarm{416586a8 type 3 android} at 0
alarms: 3 type: 3
0: янв 03 11:50:17 PM android
1: янв 04 12:00:44 AM com.gismeteo.client
2: янв 04 12:15:00 AM android
Native set alarm :Alarm{416586a8 type 3 android}
releaseWakeLock flags=0x1 tag=AlarmManager total_time=22ms
userActivity mLastEventTime=85873291 time=85873793 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false


reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85873793 timeoutOverride=-1 nextState=3 when=85879793
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
releaseWakeLock flags=0x1 tag=RILJ total_time=5004ms
userActivity mLastEventTime=85873793 time=85874293 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85874293 timeoutOverride=-1 nextState=3 when=85880293
userActivity mLastEventTime=85874293 time=85874794 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85874794 timeoutOverride=-1 nextState=3 when=85880794
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
userActivity mLastEventTime=85874794 time=85875307 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85875307 timeoutOverride=-1 nextState=3 when=85881307
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
userActivity mLastEventTime=85875307 time=85875820 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85875820 timeoutOverride=-1 nextState=3 when=85881820
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
userActivity mLastEventTime=85875820 time=85876332 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85876332 timeoutOverride=-1 nextState=3 when=85882332
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null


updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
userActivity mLastEventTime=85876332 time=85880334 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85880334 timeoutOverride=-1 nextState=3 when=85886334
updateNotification(android.os.BinderProxy@4168a870 -> StatusBarNotification(package=peacemaker.beback id=1 tag=null notification=Notification(contentView=peacemaker.beback/0x109009e vibrate=null,sound=null,defaults=0xfffffffc,flags=0x62) priority=0)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
userActivity mLastEventTime=85880334 time=85881643 mUserActivityAllowed=true mUserState=0x3 mWakeLockState=0x1 mProximitySensorActive=false mProximitySensorEnabed=false timeoutOverride=-1 force=false
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=2
setTimeoutLocked now=85881643 timeoutOverride=-1 nextState=3 when=85887643
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
updateNotification(android.os.BinderProxy@4194f9c0 -> StatusBarNotification(package=peacemaker.calibattery id=8 tag=null notification=Notification(contentView=peacemaker.calibattery/0x109009e vibrate=null,sound=null,defaults=0xfffffff8,flags=0x72) priority=100)) notification ticker is: null
Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
Broadcast: Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } ordered=false
Death received in com.android.server.am.ActivityManagerService$AppDeathRecipient@417ad908 for thread android.os.BinderProxy@4190cfb8
Process peacemaker.beback (pid 2618) has died.
Dying app: ProcessRecord{4169ad68 2618:peacemaker.beback/10102}, pid: 2618, thread: android.os.BinderProxy@4190cfb8
Scheduling restart of crashed service peacemaker.beback/.gps in 5000ms
Scheduling restart of crashed service peacemaker.beback/.httputils2service in 5000ms
Removing app ProcessRecord{4169ad68 0:peacemaker.beback/10102} from list [ActivityRecord{41dbbc90 peacemaker.calibattery/.main}, ActivityRecord{41a66850 com.android.phone/.InCallScreen}, ActivityRecord{419f3160 com.android.launcher/com.android.launcher2.Launcher}, ActivityRecord{417ccd00 peacemaker.beback/.main}, ActivityRecord{415cbff8 peacemaker.beback/.stat}, ActivityRecord{41cb1998 peacemaker.beback/.resultmap}] with 6 entries


Record #5 ActivityRecord{41cb1998 peacemaker.beback/.resultmap}: app=ProcessRecord{4169ad68 0:peacemaker.beback/10102}
Removing this entry!
Record #4 ActivityRecord{415cbff8 peacemaker.beback/.stat}: app=ProcessRecord{4169ad68 0:peacemaker.beback/10102}
Removing this entry!
Record #3 ActivityRecord{417ccd00 peacemaker.beback/.main}: app=ProcessRecord{4169ad68 0:peacemaker.beback/10102}
Removing this entry!
Record #2 ActivityRecord{419f3160 com.android.launcher/com.android.launcher2.Launcher}: app=ProcessRecord{41835468 419:com.android.launcher/10030}
Record #1 ActivityRecord{41a66850 com.android.phone/.InCallScreen}: app=ProcessRecord{419c7698 397:com.android.phone/1001}
Record #0 ActivityRecord{41dbbc90 peacemaker.calibattery/.main}: app=ProcessRecord{41e17f78 7659:peacemaker.calibattery/10074}
Removing app ProcessRecord{4169ad68 0:peacemaker.beback/10102} from list [] with 0 entries
Removing app ProcessRecord{4169ad68 0:peacemaker.beback/10102} from list [] with 0 entries
Removing app ProcessRecord{4169ad68 0:peacemaker.beback/10102} from list [] with 0 entries
Removing app ProcessRecord{4169ad68 0:peacemaker.beback/10102} from list [] with 0 entries
Force removing ActivityRecord{41cb1998 peacemaker.beback/.resultmap}: app died, no saved state
Location listener died
Location listener died
Changing focus from Window{41b01f88 peacemaker.beback/peacemaker.beback.resultmap paused=false} to null
Losing focus: Window{41b01f88 peacemaker.beback/peacemaker.beback.resultmap paused=false}
WIN DEATH: Window{41c08c10 peacemaker.beback/peacemaker.beback.main paused=false}
WIN DEATH: Window{41932ad8 peacemaker.beback/peacemaker.beback.stat paused=false}
WIN DEATH: Window{41b01f88 peacemaker.beback/peacemaker.beback.resultmap paused=false}
Start proc peacemaker.beback for activity peacemaker.beback/.stat: pid=2683 uid=10102 gids={3003, 1015, 3002, 3001}
No longer want com.android.ActivityNetwork (pid 993): hidden #16
acquireWakeLock flags=0x1 tag=GpsLocationProvider
acquireWakeLock flags=0x1 tag=GpsLocationProvider
Binding process pid 2683 to record ProcessRecord{41934cd8 2683:peacemaker.beback/10102}
New death recipient com.android.server.am.ActivityManagerService$AppDeathRecipient@418bf668 for thread android.os.BinderProxy@418d54a0
New app record ProcessRecord{41934cd8 2683:peacemaker.beback/10102} thread=android.os.BinderProxy@418d54a0 pid=2683
acquireWakeLock flags=0x1 tag=NetworkLocationLocator
acquireWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@418b8538}
updateWifiState, wifiShouldBeEnabled:true, wifiShouldBeStarted:true
startScan when start driver
set: Alarm{41965750 type 2 com.google.android.location}
Adding alarm Alarm{41965750 type 2 com.google.android.location} at 0
alarms: 8 type: 2
0: янв 03 11:49:34 PM com.google.android.location
1: янв 04 12:00:00 AM com.google.android.apps.maps
2: янв 04 12:02:47 AM com.google.android.gsf
3: янв 04 01:07:49 AM android
4: янв 04 03:40:12 AM com.google.android.apps.maps
5: янв 04 04:59:17 AM com.google.android.apps.maps
6: янв 04 10:33:30 AM android
7: дек 16 12:44:12 PM com.google.android.apps.maps
Native set alarm :Alarm{41965750 type 2 com.google.android.location}
acquireWakeLock flags=0x1 tag=RILJ
Death received in com.android.server.am.ActivityManagerService$AppDeathRecipient@41785600 for thread android.os.BinderProxy@41941ac0
setKeyboardVisibility: false
Launching: ActivityRecord{415cbff8 peacemaker.beback/.stat}
Dying app: ProcessRecord{41870970 993:com.android.ActivityNetwork/1001}, pid: 993, thread: android.os.BinderProxy@41941ac0
Scheduling restart of crashed service com.android.ActivityNetwork/.ActivityNetwork_Service in 5000ms

Try to fastly slide\pinch the map, when first result of pinch is not finished - pinch the map again.
If do not start the map activity - never been such force closing.
 
Last edited:
Upvote 0
Back
Top