i create a html file that show a google map using javascript i tried it on chrome and firefox and its working, now i want to show the map into my blackberry app so i put it into eclipse and create a browserfield that show the content of this html file, but when i open the app it show blank, the map does not appear
this is the code of map in javascript:
<style type="text/css">
html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
</style>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js? AIzaSyBxGIma4VDwwcvBjgqLkfDLTxHFVV1mGd8">
</script>
<script type="text/javascript">
and this is the code how i show the browser field in blackberry
BrowserField browserField = new BrowserField(myBrowserFieldConfig);
InputStream content = getClass().getResourceAsStream("/map.html");
try {
byte[] html = IOUtilities.streamToBytes(content);
String htmltxt = new String(html);
browserField.displayContent(new String(htmltxt), "local:///");
} catch (IOException e) {
e.printStackTrace();
}