Hello everyone,

I have integrated Google Maps Api 3 in my app but when I'm offline (having no internet connection) and start the app the following error is thrown:
Code:
file:///android_asset/www/app/views/map/MapView.js: Line 144 : Uncaught ReferenceError: google is not defined
o   04-13 21:48:12.234: E/Web Console(1369): Uncaught ReferenceError: google is not defined at file:///android_asset/www/app/views/map/MapView.js:144
Actually I just wanna catch this error so that the whole app doenst stop. But I'm not sure how, since the Google Maps Code is already used in my index.html file:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

Any tips or advices how/where to wrap an try&catch statement?

Thanks in advance,
Florian