02-28-2013 08:04 AM - edited 02-28-2013 08:05 AM
so i'm trying to replace my google map view with a web view that loads a web page with a google web map.
wondering if anyone's had success doing this and getting it working with bb10.
right now i'm loading the web page from the assets folder of the andorid app.
this might be silly question, but,
can i leave the app loading the web page file from the assets folder or will i need to host the page on a server somewhere and load it from there?
does anyone have info on how the assets folder is compiled into an APK and if it'll be accessible when converted to a BAR and running in android runtime on BB10?
02-28-2013 08:12 AM
Can't say much about the assets folder. Have you tried testing on any of the simulators? If it works on the simulator then you should be good to go. I would imagine it will be fine.
02-28-2013 08:30 AM
02-28-2013 12:08 PM - edited 02-28-2013 12:14 PM
Okay, I have an issue.
I just built my APK having hosted my html map view web page on our server.
In debug through eclipse, it works. Map loads. Everything fucntions.
Once I build the APK and install it on my droid phone, the map doesn't load.
I am loading an Https web page under a secured web page that requires authentication but i have updated the web config to not require a login to access this particular page.
any tips, help?
02-28-2013 02:15 PM
@towps: hmm, not sure. So your webpage is reachable from a browser, and you've tested that right? Can you reach that page from our phone?
Also, I assume you are using the standard Android build here and not Signing for Blackberry and then extracting the APK from that for your droid phone right?
If you just run it from Eclipse onto your phone (Run As->Android Application) does it work? If you then Export as Signed Android Application and use adb install, then it doesn't work??
Keep in mind of course for blackberry you would go through the Blackberry build process but sounds like maybe you are trying to have one set of code for BB and standard Android.
02-28-2013 02:47 PM
hey, thanks for the reply.
so yeah, i am just making sure my app works as an android app before trying to convert the APK to a BAR.
At least that's my understanding of the process, that I would submit the APK to the BB20 online convert tool and get a BAR back. Maybe I need to do a blackberry APK build in eclipse?
Anyway I need to make sure my app works as an android app first I think.
So I navigate to my external page in firefox and chorme and the page loads and the map functions.
So just now, I'm running as an android app from eclipse onto my galaxy nexus phone and the map loads and functions with my android code.
Once I export as signed APK, i copy the exported APK to my android harddrive and install it from the device by selecting the APK from a file manager tool. The app installs and the map stays blank, white. I don't get it.
02-28-2013 02:54 PM - edited 02-28-2013 03:15 PM
yeah the page loads in firefox on my phone! good grief....
i also tried setting my root home page as the web url in my app.
So where my web map sits is something like https://mysite.com/mysiteapp/mymapapp/default.html
If I set the URL to https://mysite.com/mysiteapp, the web view loads the page properly for that applicaiton and functions as expected. i'm missing something...
02-28-2013 03:08 PM