29 May 2012 9:56 PM #1
Unanswered: How to Package / Deploy Sencha touch App on Blackberry Device
Please give me any information or doc for How to packging / Deploy Sencha applicaion on Blackberry Device.I found many sites but no one can give any info about this.So Please I request you give me Sencha with Blackberry Integration any link or demo.
29 May 2012 11:13 PM #2
30 May 2012 10:28 PM #3
Details about Sencha in Blackberry
Please give me details about how to deploy project in Blackberry.I use Blackberry webwork eclipse and download (import) phonegap coradova.jar in that EXT folder.and sencha application demo files pasted in that demo project also.Package complete (Build success) but not run.
Please give me details about Sencha app on Blackberry Using phonegap.
23 Oct 2012 5:52 AM #4
the way to get a build for blackberry using https://build.phonegap.com looks promising to me. No installation, just upload the sources and get back a ready to use app.
What sencha files do I have to upload? The generated all-classes.js and the index.html?
If so, there would remain one problem: I went through the sencha doc and tried to generate a build. I used sencha command line and it worked until I comes to edit the index.html. My index.html does not look like in the docu. So I don't know what to edit ...
I'm using sdk 2 beta3 and sencha touch 2.0.3. My app is using mvc - just in case this matters
Any help is appreciated,
23 Oct 2012 7:43 AM #5
You can use the BlackBerry WebWorks packager to package your Sencha touch app and deploy as well. For more info using BlackBerry Webworks packager, proceed to this URL, https://developer.blackberry.com/html5/documentation/
24 Oct 2012 4:08 AM #6
thanks for the reply. Does this mean
1. I can develop my app in sencha touch 2.0.3 as usual
2. Then I transfer my sources, e.g. app.js/indext.html/mainview.js and so on to WebWorks folders
3. I do not need to edit this files additionally or use sencha sdk
4. Instead I run WebWorks (and ripple to emulate if I'd like)
And all works for my mvc app?
24 Oct 2012 7:55 AM #7
That is correct. When you package the Sencha project with the WebWorks Packager, you need to create a configuration file, config.xml. The details can be found here, https://developer.blackberry.com/htm...969844_11.html.
After creating the configuration file, you can build the project using the Webworks packager.
30 Oct 2012 1:34 AM #8
I got everything installed and can play my app within ripple emulator. Looks nice. Thanks so far.
Even though the WebWorks documentation is very detailed, I don't succeed building my app. It looks like my config.xml is not correct. I copied the example config.xml and changed some entries. Ripple says that either the config.xml is not in the root directory or malformed. I saved it to the same directory like my index.html - so it should be the correct directory. My config.xml currently looks like:
<?xml version="1.0" encoding="UTF-8"?>
When I generate a .zip including all my sencha files and directories (app, resourced and sdk) and run bbwp I get a bunch of errors with invalid file names. All names with spaces and ".xxx". When I now delete them bbwp runs but brings the following errors:
[Warning] Failed to find <feature> element
Exported static routine .main(String) is multiply defined
jline.ANSIBuffer: Error! Missing stack map in: toString at label 11
[Error] RAPC exception occured
30 Oct 2012 12:13 PM #9
I've found the command line to be easier to use rather than packaging with ripple.
I'd suggest you download the latest package here:
Follow the directions to build a new app via the command line, drop your code into the www directory, update the config.xml file (they provide one that will work for you), and also update the .properties file.
It's actually rather straightforward and works.
31 Oct 2012 1:54 AM #10
thanks for another option. I found the problem: I need to run bbwp with local administrator privileges. Also, I must include index.html, config.xml, app.js and the folders app, resources into my archive file. In app and resources I just need to take care of wired file names, change them, then it looks fine.
P.S. But I'm not sure since I can't test my app - our company has restrictions on blackberry and after app installation I get run time errors due to access violations. Painful ...