Passing those keys at runtime has no effect on the device.  They are used
in the simulator only.  The devise keys are set in build hints per the
cn1lib instructions.

Post some code and something might jump out at me.

Steve
On Tue, May 2, 2017 at 9:46 AM <[email protected]> wrote:

> I guess my maps lib was outdated. However, I'm still getting a quick
> screen flicker every time I click on the FAB or sub-FAB. I'm assuming I use
> the Google Maps Android API and Google Maps SDK for iOS and set those
> appropriate build hints.
>
> Steve had mentioned in a different thread that I was initializing the
> MapContainer without the static maps api key but trying both ways still
> produces the screen flicker:
> https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/codenameone-discussions/clQ-3bQAGJk/IZrLU4JfEAAJ
>
> Here is my init code (which now I can at least debug the map in the
> simulator, which is great):
> if (Display.getInstance().getPlatformName().equals("and")) {
>             cnt = new MapContainer(Constants.ANDROID_GMAPS_API_KEY);
>         }
>         else if(Display.getInstance().getPlatformName().equals("os")){
>             cnt = new MapContainer(Constants.APPLE_GMAPS_API_KEY);
>         }
>         //for debugging in simulator
>         else{
>             cnt = new MapContainer(Constants.JS_GMAPS_API_KEY);
>         }
>
> I have also tried initializing with cnt = new MapContainer(new
> GoogleMapsProvider(Constants.STATIC_GMAPS_API_KEY));
>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/f28295ec-5171-4aa5-83a8-1e69a1e8f249%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/f28295ec-5171-4aa5-83a8-1e69a1e8f249%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Steve Hannah
Web Lite Solutions Corp.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CABiRg%2BQVBe%2B5%3DVj5Z%3DMyubqSMdUXVyV5f7rOPWLw4ztWYVaNmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to