Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Contributor
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800
My Carrier: Airtel

Trying to Port Cross Platform App Built for Android by Android Runtime

Hi,

 

I have a Cross Platform App working fine in android.

I am trying to port this app using Android Run Time to BB10, and able to build and run my app.

But html content is not rendering properly,  app crashes on every single click. I used underscore templating  which are not  rendering.

 

Please suggest if you have anything regarding this. 

Should I build a BB10 Webworks Application, If yes then please suggest start point to doing so.

 

Regards.

Developer
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: Trying to Port Cross Platform App Built for Android by Android Runtime

Can you share with us what technology you used to make it Cross Platform ? Can you not use the Cross Platform technology itself to port to BlackBerry (some of these technologies can port to BB10 directly)?

Are you saying your application is made in HTML5 ? Because your app would be a lot faster if you'ld use a HTML5 framework provided by BB10. Instead of HTML5>Android>BB10; you would have HTML5>BB10.


A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter
Contributor
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800
My Carrier: Airtel

Re: Trying to Port Cross Platform App Built for Android by Android Runtime

Yes I am trying to port HTML5 based android application to BB10.

I have used jQueryMobile, JQuery and underscore.js for HTML templating.

 

For using native capabilities of device I used Phonegap.

 

I don't have requirement for using BB specific API so I am trying HTML5>Android>BB10.

Ported app crashed every time whenever internal Ajax call occurs for ex. Loading templates.

 

If you can direct me to some fruitful direction that will be very helpful.

 

Developer
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: Trying to Port Cross Platform App Built for Android by Android Runtime

You can find more information on Phonegap on BB10 on this site: https://developer.blackberry.com/develop/platform_partners/cordova.html

Maybe you should have a look at the log files. I can't remember how you should do this for Phonegap/HTML5 on BB10, but maybe just have a search on Google/Developer BlackBerry how to debug those apps. There will probably some way, but I don't know which it is.

Once you are able to debug, you will probably see what is causing the trouble. Maybe it is just something stupid that breaks everything.

I hope you find the problem!


A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter
New Developer
Posts: 9
Registered: ‎06-23-2013
My Device: BB Z10
My Carrier: STC

Re: Trying to Port Cross Platform App Built for Android by Android Runtime

Did you find the solution to your problem. Because i have the same problem that i am using jQuery mobile in my android app, but when i port it to BB it crashes on every click. The problem that i got too is that when i enable Javascript in android web browser then the app crashes on every click.

 

infoWebView.getSettings().setJavaScriptEnabled(true);

 

How do i enable javascript on the WebView to not let it crash in BB.

 

Help!