waiting to long for browser bridge

78 views
Skip to first unread message

Chris Hales

unread,
Apr 4, 2017, 8:25:13 AM4/4/17
to CodenameOne Discussions
I playing around with google maps and codename one on android. I have something that works on the emulator abut when I run it on the android I get

an internal application error occurred: java.lang.RuntimeException Waited too long for browser bridge. 

What is that telling me? Any idea what I am doing wrong. 

Chris Hales

unread,
Apr 4, 2017, 9:01:22 AM4/4/17
to CodenameOne Discussions
Ok, I have looked more into this and it looks like I need to add build hints. I think the hints I need to add are below.  I can find where to add them but I am not sure what format they should be in. I am also not sure what to add. I think I found a post that said I needed to add
If this is what I should do can someone go to the entry form and send a screen capture of one of them entered so I know the format. Not sure what make the key value pair. Do I keep all the text? 
 android.xapplication=<meta-data     android:name="com.google.android.maps.v2.API_KEY"     
android:value="YOUR KEY"/>
android.xpermissions=<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/><uses-feature         android:glEsVersion="0x00020000"         android:required="true"/>


Steve Hannah

unread,
Apr 4, 2017, 1:16:28 PM4/4/17
to codenameone...@googlegroups.com
You only need to include the android.xapplication build hint, not the android.xpermissions build hint.  The latter is added automatically by the lib when the project is built.  The instructions are in the readme for the GoogleMaps plugin


Just place "android.xapplication" for the build hint name. And paste the <meta-data     android:name="com.google.android.maps.v2.API_KEY"     
android:value="YOUR KEY"/>

In the value for the build hint (except use your key).

Use the IDE interface (either cn1 settings or properties/build hints) to do this.  Don't try to paste it into the properties file directly.

Steve

--
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 codenameone-discussions+unsub...@googlegroups.com.
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/1fda542a-9047-41d1-b3c5-bb8c6f0678f5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Chris Hales

unread,
Apr 4, 2017, 1:58:37 PM4/4/17
to CodenameOne Discussions

Yes. You do need to add the android.xapplication build hint so that your API key is provided. You don't need to add the android.xpermissions build hint. It will automatically be added by the library when you build int.

The instructions for build hints are all in the README for the GoogleMaps cn1lib.

The format for the build hint would be Name: "android.xapplication". Value: "<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>" Use the IDE's UI to place the build hints. Don't try to paste them directly into the properties file.

answered 1 hour ago
steve hannah
1,343310

Mandi Gudalur

unread,
Sep 13, 2017, 6:44:22 AM9/13/17
to CodenameOne Discussions
Dear all.

I am facing the same Issue today.
Any suggestions?

Thanks,
Senthil.

Steve Hannah

unread,
Sep 13, 2017, 12:07:18 PM9/13/17
to codenameone...@googlegroups.com
That error shouldn't happen on device, only in the simulator.  Can you confirm that this is happening for you on an android device, and not the CN1 simulator?

--
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 codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages