1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    28
    Vote Rating
    0
    Amarjeetbiet is on a distinguished road

      0  

    Default Unanswered: running sencha + phonegap + blackberry

    Unanswered: running sencha + phonegap + blackberry


    hi,

    I runing sencha application using blackberry phonegap.for this steps i following;
    1. make build of sencha application using command(sencha app build package)
    2.created blackberry phonegap project and under this created www folder
    3. copied all files from sench build and paste in the www folder
    4. run blackberry phonegap project
    after running project i get white screen. can please anyone tell me what i'm doing wrong.

    my index.html code is:

    <!DOCTYPE HTML><html manifest="" lang="en-US">
    <head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no">
    <title>RetailBanking</title>
    <script type="text/javascript">
    (function(h){
    function f(c, d){
    alert("inside fcd");
    document.write('<meta name="' + c + '" content="' + d + '">')
    }
    if ("undefined" === typeof g)
    var g = h.Ext = {};
    g.blink = function(c){
    alert("inside blink");
    var d = c.js || [], c = c.css || [], b, e, a;
    f("viewport", "width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no");
    f("apple-mobile-web-app-capable", "yes");
    f("apple-touch-fullscreen", "yes");
    for (b = 0, e = c.length; b < e; b++) {
    alert("inside for of c");
    a = c[b], "string" != typeof a && (a = a.path), document.write('<link rel="stylesheet" href="' + a + '">');
    }
    for (b = 0, e = d.length; b <e; b++) {
    alert("inside for of d");
    a = d[b], "string" != typeof a && (a = a.path), document.write('<script src="' + a + '"><\/script>')
    }
    }
    })(this);
    ;
    Ext.blink({
    "id": "0e9adf70-bf82-11e1-97b4-2d0be393dffb",
    "js": [{
    "path": "cordova-1.9.0.js",
    "type": "js"
    }, {
    "path": "sdk/sencha-touch.js",
    "type": "js"
    }, {
    "path": "sdk/sencha-touch-all.js",
    "type": "js"
    }, {
    "path": "Messages.js",
    "type": "js"
    }, {
    "path": "constants.js",
    "type": "js"
    }, {
    "path": "math-uuid.js",
    "type": "js"
    }, {
    "path": "app.js",
    "update": "delta",
    "type": "js"
    }],
    "css": [{
    "path": "resources/css/app.css",
    "update": "delta",
    "type": "css"
    }]
    })
    </script>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true">
    </script>
    </head>
    <body>

    </body>
    </html>

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have you tried doing a testing build to make sure the ST2 code works first?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    28
    Vote Rating
    0
    Amarjeetbiet is on a distinguished road

      0  

    Default thank you, Mitchell Simoens.

    thank you, Mitchell Simoens.


    i checked my sencha code is working fine. but now i want to use that code in blackberry there i having problem.

  4. #4
    Sencha User NaveenanM's Avatar
    Join Date
    Oct 2012
    Posts
    79
    Answers
    12
    Vote Rating
    1
    NaveenanM is on a distinguished road

      0  

    Default


    Hi There,

    What is the issue that you are having? Have you tried packaging your Sencha project using the BlackBerry WebWorks packager? you can find the instructions for BlackBerry WebWorks packager on, https://developer.blackberry.com/htm...866977_11.html.

    Thanks

    Naveen M
    Naveenan Murugesu
    BlackBerry Application Development Consultant
    nmurugesu@rim.com
    https://developer.blackberry.com/