Topic
17 replies Latest Post - ‏2013-02-08T00:13:02Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic How to generate file for blackberry.

‏2013-02-02T10:19:21Z |
Hi,

Please guide me how to generate file like apk for android.how to simulate the application.
write me steps.
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to generate file for blackberry.

    ‏2013-02-02T15:20:18Z  in response to SystemAdmin
    Hi,
    You should read the training material we provide for this purpose, for both BlackBerry 6/7 and 10.

    Setting up your BlackBerry development envrionment:
    ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_02_3_-_Setting_Up_Your_BlackBerry_Development_Environment.pdf

    Previewing your Application in BlackBerry environment:
    ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_03_3_-_Previewing_your_Application_in_BlackBerry_environment.pdf

    Previewing your Application in BlackBerry 10 environment:
    ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_03_5_-_Previewing_your_Application_in_BlackBerry_10_environment.pdf

    BlackBerry development:
    ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_10_-_Blackberry_Development.pdf

    In general:
    1. You need to download the relevant BlackBerry SDK + set signing keys, debug keys, etc (explained further in the training material and mostly at BlackBerry's dev website)
    2. Install the BlackBerry Ripple Chrome extension
    3. Create a Worklight project, application and add the BlackBerry environment
    4. Build and deploiy
    5. Open Ripple, set it up (explained in the training material), and deploy to device.

    Good luck! :)
    BlackBerry is not easy to setup unfortunately. Once you do the above and have question - don't hesitate to ask!

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T06:56:47Z  in response to IdanAdar
      Idan,

      Thanks for reply.I do according to your instruction and then contact you for further steps.

      Thanks.
      Anees
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T09:36:09Z  in response to IdanAdar
      Idan,

      When i add BlackBerry enviroment i dnt nativeResources Follder.Why..?
      • IdanAdar
        IdanAdar
        741 Posts
        ACCEPTED ANSWER

        Re: How to generate file for blackberry.

        ‏2013-02-04T11:04:09Z  in response to SystemAdmin
        In the BlackBerry 6/7 environment there is no 'nativeResources' folder simply because... there isn't. It was not added at the time.
        BlackBerry 6/7 does not provide any native functionality and so it was not added.

        Idan Adar
        QA Engineer
        IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T11:02:59Z  in response to IdanAdar
      Idan,

      Application working fine in case of android .But same code for BlackBerry giving error.snapshot is attached.

      Anees.
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to generate file for blackberry.

    ‏2013-02-04T11:05:44Z  in response to SystemAdmin
    This error has no implications. It is shown only when previewing the application via Worklight Console.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T11:22:44Z  in response to IdanAdar
      Ok, agreed but
      "Uncaught ReferenceError: worklight is not defined ....................wlgap.blackberry.js:18"
      This has also no impact..??

      If no then why application is not running in ripple while android working fine.
      Regards,
      Anees
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to generate file for blackberry.

    ‏2013-02-04T11:25:25Z  in response to SystemAdmin
    Judging from the log in the provided screen shot, you reached full initialization successfully.
    So I don't know. Would you like to attach your Worklight project, or provided any other information?

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T12:32:01Z  in response to IdanAdar
      Dear Idan,

      There is restriction in attaching project.I have attached some informations.Please check.
      When i run the application in ripple.It show partial blank screen.Means Show some part of html but rest of the contents which show through "WL.Page.load" doesn't appear.

      Anees.
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to generate file for blackberry.

    ‏2013-02-04T13:06:37Z  in response to SystemAdmin
    Although not related per-se to your issue, this should be corrected none the less...

    You have created the WEBWORKS_HOME environment variable; this variable is required only for BlackBerry 10, which you are not deploying at the moment.
    If you choose to do so, you would also need a different SDK altogether and update the path in the variable value. For BB10 it is v1.0.4.7, you can get it at this location: https://developer.blackberry.com/html5/download/

    Other than this, the information in the screen shots is not helpful, as it seems that the issue might be in the Pages and Fragments code you have implemented (sounds like it). Can you share that?

    Note: the Fragments and Pages API is deprecated and will be removed in a future version of Worklight... Although you can use it, we do encourage a 3rd party solution such as jQuery Mobile for such an application structure (multiple pages).

    See this training module and its accompanying sample app.
    It utilizies jQuery Mobile and multiple pages.

    Module: ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_07_5_-_Building_a_Multi_Page_Application.pdf
    Sample: ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/module_07_5_MultiPageApplication.zip

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T13:25:54Z  in response to IdanAdar
      Idan,

      Attached is our testing application.Live is bessed on it.Please Review it.
      BlackBerry 10 is not our aim for sometime so could i remove the Enviroment variable?
      And we are using fregmentation for multipages.you can see in project.But it is working fine in android so why not its work in blackberry.?
      I will read your proviede link as well.
      Please see the code.

      Anees.

      Attachments

  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to generate file for blackberry.

    ‏2013-02-04T13:32:59Z  in response to SystemAdmin
    Yes, you can remove the environment variable.
    I will review the project, but this may happen only tomorrow.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-04T18:51:15Z  in response to IdanAdar
      Dear Idan,

      Yes pls you take your time and review it,I have also holiday tomorrow.mean while I would have been trying may be I got a luck.

      Anees.
      • SystemAdmin
        SystemAdmin
        2327 Posts
        ACCEPTED ANSWER

        Re: How to generate file for blackberry.

        ‏2013-02-06T07:38:54Z  in response to SystemAdmin
        Idan,

        Did you find any solution.?

        Regards,
        Anees
        • SystemAdmin
          SystemAdmin
          2327 Posts
          ACCEPTED ANSWER

          Re: How to generate file for blackberry.

          ‏2013-02-08T00:13:02Z  in response to SystemAdmin
          Note: IBM forums are in the process of migrating to a new format. During migration the forums will be frozen and in read-only mode. If you wish to continue this thread discussion please post it on stackoverflow, where the Worklight team and others can respond.

          See the Forum Migration announce post for more details. Thank you.

          Barbara Hampson, Manager, IBM Worklight
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: How to generate file for blackberry.

    ‏2013-02-06T08:24:11Z  in response to SystemAdmin
    Hi,
    Sorry but I did not get to it yet, I'm swamped with internal work.

    However I see you are from UBL Bank, are you IBM Customers? If so you can open a PMR with the specific problem (display of jQuery Mobile UI/navigation elements in BlackBerry 6/7) and the support there should take good care of you.
    Otherwise it may take a while longer for me. Maybe someone else around here could help hopefully.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: How to generate file for blackberry.

      ‏2013-02-06T09:48:50Z  in response to IdanAdar
      Yes,we are IBM customer.Ok for this problem we open PMR.

      Thanks,
      Regards.
      Anees.