setShowMyLocation() in goole map not enable gps always

22 views
Skip to first unread message

Fuad Nassar

unread,
Feb 2, 2020, 7:05:52 AM2/2/20
to CodenameOne Discussions
IDE: NetBeans
Desktop Windows/Mac
Device: Android pie

my app use GoogleMap cn1 library and i use map.setShowMyLocation(true); function to display myLocation button
but after run app on real device the gps will not enable always automatically (just first time)
i already fixed this problem by editing on GoogleMap cn1 library and replace InternalNativeMapsImpl.java class to a new one with some editing
 
what i wont?
i hope fix this problem and enable gps automatically always

InternalNativeMapsImpl.java

Shai Almog

unread,
Feb 2, 2020, 8:58:19 PM2/2/20
to CodenameOne Discussions
Thanks!
FYI you can modify the code of the Google maps cn1lib directly by forking the project performing the edit and then submitting.a pull request via github. That way you'll have proper credit in the version history of the code.
Reply all
Reply to author
Forward
0 new messages