1. SCrid2000's Avatar
    I'm somewhat surprised there isn't a thread like this already a thread like this already, but here goes.

    The purpose of this thread is to give new/aspiring devs a way to get some good examples of BlackBerry Apps. I personally know that sometimes a good example is vital to helping you overcome a coding hurdle. Open source code is an amazing place to look for that (because, although arguably it might be legal to examine proprietary code to see how it works under the fair use doctrine (I'm not getting into that, and that's not legal advice), open source code is more readily accessible and certainly legal to check out.

    One of the best places to find Open Source code is Github, but then there's another small problem: what in there is going to work on BlackBerry? Because even if you can shoehorn the code onto BB10 (which you can with probably any HTML/JavaScript code or Qt or really almost any language I believe), there's a reason RIM had the Built For BlackBerry program. Code made for BB10 is going to work better with BB10 than code that's not.

    SO, with all that in mind, here's a couple Github accounts that have some solid BlackBerry open source code that you can check out.
    (note - this is focusing on app samples, so I didn't include some of the amazing but more intense stuff from people like Adam Stanley, TIm Windsor, Gord Tanner, Ken Wallis, Tim Neil, or other BlackBerry employees, or stuff like the WebWorks SDK for Linux by Mike Robinson).

    One addition request: this stuff might be open source, but please don't just compile and attempt to post it on App World, that's a real douchy thing to do.

    https://github.com/blackberry/ - BlackBerry's own samples (and other open source code, like Webkit), nearly anything you could ever want is on here. Seriously, check this out, there's literally tons of amazing samples.

    https://github.com/OpenSourceBB/ - a lot of the github accounts below are run by people who also contribute (or say they'll contribute ) to the OpenSourceBB Repos.

    https://github.com/SCrid2000/ - my github account (yeah, I put myself on here, what of it? ) - Mostly WebWorks, with a Marmalade c++ sample as well. I don't think I have anything on here that's not BlackBerry related.

    https://github.com/KermEd - if you need any Air samples, Lloyd's github is the place to go.

    https://github.com/bcs925 - Brian (BlackBerry 10 Cascades Code Tutorials & Examples) has some awesome cascades samples here.

    https://github.com/sf18443 - Jeremy has some cool apps, especially Space TV, which you can get for BB10 on App World.

    https://github.com/CatalystG - N64 and PlayStation PlayBook emulators.

    https://github.com/jtokarchuk - Justin has some BlackBerry emulators and such mixed in with some other stuff he's done.

    https://github.com/a7omic/ - mostly stuff forked from the BlackBerry account, but if I remember right, this is why we have DosBox.

    https://github.com/jcarty - Jerome is the main man behind Blaq and some other awesome apps, and has some good samples up (no, he hasn't posted the source code for Blaq).

    https://github.com/lyricidal - Justin (Lyricidal) doesn't have much, but he has a sweet bbUI password protection app.

    http://github.com/kylefowler - If you want to see some examples of open source social networking apps for BB10, Kyle's repo is the place to go.

    https://github.com/SamVerschueren/ - BeRail, which is a nice looking Cascades app. Sam posted the link on CrackBerry and says more stuff is coming.

    https://github.com/TheMarco - Marco has some cool WebWorks samples, dealing with Canvas, canvas to blob, gif to json conversion, and other more advanced and some other sweet samples.

    Now that's just a short list, because it's limited to people I know about; if you have a github account full of BlackBerry sample surprises, let me know and I'll add you to the list. And if you'd like to create some open source code for BlackBerry, Github is ridiculously easy now to use on a PC. Also, if you contact Eduardo Pelegri (head of open source at RIM), he'll be more than happy to help you contribute.
    Last edited by SCrid2000; 07-09-13 at 06:39 PM.
    12-10-12 09:49 PM
  2. wfubball's Avatar
    Ive got 2 projects up on my github... http://github.com/kylefowler

    One of them I think is in the blackberry github, but its here too just incase
    SCrid2000 likes this.
    12-11-12 01:35 AM
  3. KermEd's Avatar
    I think we should sticky this
    SCrid2000 likes this.
    12-12-12 09:49 PM
  4. big bb's Avatar
    I think we should sticky this
    +10 +10 +10
    SCrid2000 likes this.
    12-13-12 09:01 AM
  5. Sith_Apprentice's Avatar
    Where is a mod when you need one? lol Sticky Thirded? Great job SCrid!
    KermEd and SCrid2000 like this.
    12-13-12 10:03 AM
  6. SCrid2000's Avatar
    Ive got 2 projects up on my github... http://github.com/kylefowler

    One of them I think is in the blackberry github, but its here too just incase
    Thanks Kyle! Loving the Social Networking samples, I added you to the OP.

    I think we should sticky this
    +10 +10 +10
    Where is a mod when you need one? lol Sticky Thirded? Great job SCrid!
    Thanks guys, not a bad idea the Mods probably don't come to the developer forums much lol, not many people causing trouble here.
    KermEd and Sith_Apprentice like this.
    12-13-12 06:14 PM
  7. Shao128's Avatar
    Ive made the thread a sticky now.
    12-13-12 08:24 PM
  8. KermEd's Avatar
    I have started posting more BB10 samples for Air. Once I have a bunch more, I will move them to the BlackBerry repositories. So my Github is actually more up to date. BUT anyone who has an AS3 question - please feel free to ask. PM me if you dont want people to see it.

    Ed.
    SCrid2000 and Sith_Apprentice like this.
    12-13-12 09:26 PM
  9. Sith_Apprentice's Avatar
    Thanks Kyle! Loving the Social Networking samples, I added you to the OP.







    Thanks guys, not a bad idea the Mods probably don't come to the developer forums much lol, not many people causing trouble here.
    Ive made the thread a sticky now.
    We have a Dev mod
    SCrid2000 and KermEd like this.
    12-14-12 06:36 AM
  10. SCrid2000's Avatar
    I suppose it's worth mentioning that since I started this thread I added 4 new WebWorks samples to my Github.
    KermEd likes this.
    12-20-12 09:03 PM
  11. jeroen_13's Avatar
    I'm currently working on a 'settings' plugin for BBUI.js
    It will help you create a working settings page via LocalStorage, and demo how to show/hide element when a setting is on/off.

    I'll post my github here soon
    01-08-13 06:25 AM
  12. SCrid2000's Avatar
    I'm currently working on a 'settings' plugin for BBUI.jsIt will help you create a working settings page via LocalStorage, and demo how to show/hide element when a setting is on/off.I'll post my github here soon
    Sounds cool if you need help with it, check out the localStorage bbUI app in my github
    01-08-13 08:19 AM
  13. jeroen_13's Avatar
    i just tested your app and it's very good ! it demonstrates all the LocalStorage functions and possibilities.
    my app/demo will be more 'options' based with checkboxes to change value (like; Keep screen alive - Use Notifications - Use sounds )

    piece of 'settings.htm' code

    HTML:
    Code:
    <input type="checkbox" id="stat" />
    JS:
    Code:
        setStatus = document.getElementById('stat');
        setStatus.onclick = function() {
            if(document.getElementById('stat').checked) {
                localStorage.setItem('stat', "true");
            } else {
                localStorage.setItem('stat', "false");
            }
        }
    
    
    getStstus = localStorage.getItem('stat');
        if (getStstus == "true") {
            document.getElementById("stat").checked = true;
        }
    that way it remembers the settings-screen options.

    to make it functional in the whole app; index.html
    Code:
    getStstus = localStorage.getItem('stat');
        if (getStstus == "true") {
    
    // if checkbox is checked in the optionsscreen ->
           document.write(
      '<div data-role="page" id="list">' +
      '  <div data-role="header" data-position="fixed">' +
      '    <h1><span id="widgetTitle">...</span> ' +
      '      <span style="font-size: x-small"></span></h1>' +
      '  </div>' +
      '  <div data-role="content">' +
      '    <ul data-role="listview" data-filter="true" id="articleList">'
    );
        }
    just some code for an example
    Last edited by jeroen_13; 01-08-13 at 09:09 AM.
    01-08-13 08:51 AM
  14. big bb's Avatar
    I am not a WebWorks dev but couldn't you do
    Code:
    localStorage.setItem('stat', document.getElementById('stat').checked);
    instead of
    Code:
    if(document.getElementById('stat').checked) {
        localStorage.setItem('stat', "true");
    } else {
        localStorage.setItem('stat', "false");
    }
    also
    Code:
    document.getElementById("stat").checked = localStorage.getItem('stat');
    instead of
    Code:
    if (getStstus == "true") {
        document.getElementById("stat").checked = true;
    }
    01-08-13 10:08 AM
  15. jeroen_13's Avatar
    That is also possible, but for tutorials it might be easier to understand the IF & ELSE way.
    01-08-13 11:09 AM
  16. big bb's Avatar
    That is also possible, but for tutorials it might be easier to understand the IF & ELSE way.
    good point, I was thinking of it from the processing standpoint.
    01-08-13 11:20 AM
  17. SCrid2000's Avatar
    I'm gonna have to agree with big bb.
    Might I recommend using JSON to store all the data so you only use a single localStorage key?
    Excited to see the sample
    01-08-13 01:15 PM
  18. jeroen_13's Avatar
    I'm almost finished with my LocalStorage sample.
    I also will include / make a second sample with Analytics for the Playbook & BB10. I couldn't find a native / bb-designed Analytic so I figured out a way to use Localytics in BBUI.js . It will allow you to track app data for every .htm file.

    It will show: Number of Sessions. Unique users, Average time spent, Country's using the app, OS, and so on.

    I'll post it here soon
    01-12-13 04:38 PM
  19. cloverappz's Avatar
    excellent job! of great use.
    02-22-13 09:06 AM
  20. WhiteSpir1t's Avatar
    I will make sure your effort of posting this for us don't go to waste. It is good to have people share ideas as if we're rooting for each other as a community. Keep it coming.
    04-27-13 11:15 PM
  21. jeroen_13's Avatar
    I finished up my 'Update Checker' project for the Blackberry 10 Webworks SDK (Originally created for the Playbook)

    it uses the BBui.js Framework.

    in your index.htm : add this:

    Code:
    	<script type="text/javascript" src="update_notify.js"></script> <!--update library-->
    		<script type="text/javascript" src="http://yourwebserver.com/file/web_service.js"></script>  <!--remote file-->
    add the update_check.htm page and give it the 'update_check' id like this:

    Code:
    onclick="bb.pushScreen('update_check.htm', 'update_check' )"

    add this to your 'onscreenready' element in the index.htm
    Code:
    if (id == 'update_check') {
    dataOnTheFly_initialLoad(element)
    update_screen();
    }

    you web_server.js file contains the following options:

    Code:
    var data = '3.0.1.1' ; // your new app version
    
    
    var notify = "yes" ; // 'yes' = NOTIFICATIONS ON, 'no' = NOTIFICATIONS OFF
    //dont write 'YES', but 'yes' WITHOUT THE CAPITAL LETTERS
    var notification_message = "notify \n" ; // here your message
    
    //changelog settings
    var change_log_check = "no" ; // yes = changelog on
    var change_log = "* improved stability \n *bug fixes" ; // changelog message

    how the update is checked:

    The server file will be compared with the current blackberry.app.version

    if the server file number is higher than the app version -> alert update
    else: no updates



    Download

    https://github.com/jeroen13/Blackber...ecker_Webworks
    Last edited by jeroen_13; 05-07-13 at 05:40 AM.
    05-07-13 05:22 AM
  22. SCrid2000's Avatar
    You could use an ondomready event too to use it on non bbUI apps too.
    05-11-13 12:51 AM
  23. C0rt0's Avatar
    Hi,

    My App LightGuru is open source under GPL and available on GitHub here : https://github.com/gaeljaffrain/LightGuru

    It is a small app, but browsing the code, programmers will find how to use :
    - ambiant light sensor
    - custom picker using xml data source
    - some math in javascript in the QML
    - persistent settings
    07-11-13 10:52 PM
  24. RodgerLeblanc's Avatar
    I have a lot of native Cascades sample apps that can be access here : https://github.com/RodgerLeblanc?tab=repositories
    09-20-14 10:31 AM
  25. Syedshaishad's Avatar
    Thanks for sharing the Github accounts. Me Get a lot help from theme sources
    08-23-15 08:19 AM

Similar Threads

  1. RIM Opens BlackBerry 10 App Submissions
    By Masahiro in forum General BlackBerry News, Discussion & Rumors
    Replies: 0
    Last Post: 10-10-12, 06:35 PM
  2. RIM guarantees developers will make $10,000 on their 'certified' BlackBerry 10 apps i
    By adrenaline_x in forum General BlackBerry News, Discussion & Rumors
    Replies: 3
    Last Post: 05-03-12, 05:24 AM
  3. Replies: 1
    Last Post: 05-12-10, 09:01 PM
  4. Where to get apps and games on curve
    By joethepro in forum BlackBerry OS Games
    Replies: 4
    Last Post: 08-11-08, 11:02 AM
LINK TO POST COPIED TO CLIPBOARD