Results 1 to 23 of 23
Like Tree22Likes
  • 9 Post By SCrid2000
  • 1 Post By KermEd
  • 1 Post By big bb
  • 2 Post By Sith_Apprentice
  • 2 Post By SCrid2000
  • 3 Post By Shao128
  • 1 Post By KermEd
  • 2 Post By Sith_Apprentice
  • 1 Post By SCrid2000
  1. SCrid2000's Avatar

    Posts
    10,375 Posts
    Global Posts
    10,387 Global Posts
    PIN
    PM me.
    Thread AuthorThread Author   #1  

    Default BlackBerry 10 Apps and Samples on Github (open source)

    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-2013 at 06:39 PM.
    Thanked by 10:
    Andrew Rolko (03-27-2013),  Bla1ze (04-27-2013),  greatwiseone (12-10-2012),  KermEd (12-12-2012),  pkcable (02-04-2014),  Qaxl (12-14-2012),  Sith_Apprentice (12-13-2012),  thrrgilag (12-11-2012),  Thunderbuck (12-10-2012),  Xopher (12-13-2012) 
  2. wfubball's Avatar
    CrackBerry Abuser

    Posts
    319 Posts
    #2  

    Default

    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
    Thanked by:
    SCrid2000 (12-13-2012) 
  3. #3  

    Default

    I think we should sticky this
    Thanked by:
    SCrid2000 (12-13-2012) 
    SCrid2000 likes this.
  4. big bb's Avatar
    CrackBerry Abuser

    Posts
    394 Posts
    Global Posts
    396 Global Posts
    #4  

    Default

    Quote Originally Posted by KermEd View Post
    I think we should sticky this
    +10 +10 +10
    Quote Originally Posted by G-bone View Post
    BlackBerry : We invented the Smartphone Business.
    We're takin' it Back!
    Thanked by:
    SCrid2000 (12-13-2012) 
    SCrid2000 likes this.
  5. Sith_Apprentice's Avatar

    Posts
    9,745 Posts
    Global Posts
    9,747 Global Posts
    PIN
    Changes way too often
    #5  

    Default

    Where is a mod when you need one? lol Sticky Thirded? Great job SCrid!
    Thanked by 2:
    KermEd (12-13-2012),  SCrid2000 (12-13-2012) 
    KermEd and SCrid2000 like this.
  6. SCrid2000's Avatar

    Posts
    10,375 Posts
    Global Posts
    10,387 Global Posts
    PIN
    PM me.
    Thread AuthorThread Author   #6  

    Default

    Quote Originally Posted by wfubball View Post
    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.

    Quote Originally Posted by KermEd View Post
    I think we should sticky this
    Quote Originally Posted by big bb View Post
    +10 +10 +10
    Quote Originally Posted by Sith_Apprentice View Post
    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.
    Thanked by:
    Sith_Apprentice (12-14-2012) 
    Sith_Apprentice and KermEd like this.
  7. #7  

    Default

    Ive made the thread a sticky now.
    Wallpaper Changer HD for BB10 A MUST HAVE APP - Automatically rotates your wallpaper - Now with battery % meter, weather and more!

    Evolution Web Browser with Ad Block - The ultra fast web browser with gestures and full screen browsing
    Ultimate ScreenSaver - Includes weather, rss news, clock and more! Many scenes including Aquarium and Fireplace or use your own pictures

    Visit: http://www.shao-soft.com
    Thanked by 5:
    big bb (12-21-2012),  KermEd (12-13-2012),  Qaxl (12-14-2012),  SCrid2000 (12-13-2012),  Sith_Apprentice (12-14-2012) 
  8. #8  

    Default

    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.
    Thanked by 2:
    SCrid2000 (12-20-2012),  Sith_Apprentice (12-14-2012) 
    SCrid2000 likes this.
  9. Sith_Apprentice's Avatar

    Posts
    9,745 Posts
    Global Posts
    9,747 Global Posts
    PIN
    Changes way too often
    #9  

    Default

    Quote Originally Posted by SCrid2000 View Post
    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.
    Quote Originally Posted by Shao128 View Post
    Ive made the thread a sticky now.
    We have a Dev mod
    KermEd and SCrid2000 like this.
  10. SCrid2000's Avatar

    Posts
    10,375 Posts
    Global Posts
    10,387 Global Posts
    PIN
    PM me.
    Thread AuthorThread Author   #10  

    Default

    I suppose it's worth mentioning that since I started this thread I added 4 new WebWorks samples to my Github.
    KermEd likes this.
  11. jeroen_13's Avatar
    CrackBerry Genius

    Posts
    1,730 Posts
    PIN
    Just PM
    #11  

    Default

    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
    ❤ button

    ✪✪✪ Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME. ✔✔✔[PB]Crackberry Forum App (NON-ANDROID) ✪✪✪
    ☢ bbUI.js ☢ expert -- Need HELP ? Just PM me ! ☣ Blackberry Playbook 64GB ☣
  12. SCrid2000's Avatar

    Posts
    10,375 Posts
    Global Posts
    10,387 Global Posts
    PIN
    PM me.
    Thread AuthorThread Author   #12  

    Default

    Quote Originally Posted by jeroen_13 View Post
    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
  13. jeroen_13's Avatar
    CrackBerry Genius

    Posts
    1,730 Posts
    PIN
    Just PM
    #13  

    Default

    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-2013 at 09:09 AM.
    ❤ button

    ✪✪✪ Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME. ✔✔✔[PB]Crackberry Forum App (NON-ANDROID) ✪✪✪
    ☢ bbUI.js ☢ expert -- Need HELP ? Just PM me ! ☣ Blackberry Playbook 64GB ☣
  14. big bb's Avatar
    CrackBerry Abuser

    Posts
    394 Posts
    Global Posts
    396 Global Posts
    #14  

    Default

    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;
    }
    Quote Originally Posted by G-bone View Post
    BlackBerry : We invented the Smartphone Business.
    We're takin' it Back!
  15. jeroen_13's Avatar
    CrackBerry Genius

    Posts
    1,730 Posts
    PIN
    Just PM
    #15  

    Default

    That is also possible, but for tutorials it might be easier to understand the IF & ELSE way.
    ❤ button

    ✪✪✪ Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME. ✔✔✔[PB]Crackberry Forum App (NON-ANDROID) ✪✪✪
    ☢ bbUI.js ☢ expert -- Need HELP ? Just PM me ! ☣ Blackberry Playbook 64GB ☣
  16. big bb's Avatar
    CrackBerry Abuser

    Posts
    394 Posts
    Global Posts
    396 Global Posts
    #16  

    Default

    Quote Originally Posted by jeroen_13 View Post
    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.
    Quote Originally Posted by G-bone View Post
    BlackBerry : We invented the Smartphone Business.
    We're takin' it Back!
  17. SCrid2000's Avatar

    Posts
    10,375 Posts
    Global Posts
    10,387 Global Posts
    PIN
    PM me.
    Thread AuthorThread Author   #17  

    Default

    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
  18. jeroen_13's Avatar
    CrackBerry Genius

    Posts
    1,730 Posts
    PIN
    Just PM
    #18  

    Default

    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
    ❤ button

    ✪✪✪ Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME. ✔✔✔[PB]Crackberry Forum App (NON-ANDROID) ✪✪✪
    ☢ bbUI.js ☢ expert -- Need HELP ? Just PM me ! ☣ Blackberry Playbook 64GB ☣
  19. cloverappz's Avatar
    CrackBerry User

    Posts
    15 Posts
    #19  

    Default

    excellent job! of great use.
    Blackberry users never lack of Apps, they just lack of EXELLENT ones.

    Battery Status Anywhere - Do one thing and do it best.
    http://appworld.blackberry.com/webst...tent/20351599/
  20. WhiteSpir1t's Avatar
    Banned

    Posts
    808 Posts
    Global Posts
    902 Global Posts
    #20  

    Default

    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.
  21. jeroen_13's Avatar
    CrackBerry Genius

    Posts
    1,730 Posts
    PIN
    Just PM
    #21  

    Default

    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-2013 at 05:40 AM.
    ❤ button

    ✪✪✪ Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME. ✔✔✔[PB]Crackberry Forum App (NON-ANDROID) ✪✪✪
    ☢ bbUI.js ☢ expert -- Need HELP ? Just PM me ! ☣ Blackberry Playbook 64GB ☣
  22. SCrid2000's Avatar

    Posts
    10,375 Posts
    Global Posts
    10,387 Global Posts
    PIN
    PM me.
    Thread AuthorThread Author   #22  

    Default

    You could use an ondomready event too to use it on non bbUI apps too.
  23. C0rt0's Avatar
    CrackBerry User

    Posts
    28 Posts
    #23  

    Default

    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

Similar Threads

  1. RIM Opens BlackBerry 10 App Submissions
    By Masahiro in forum News & Rumors
    Replies: 0
    Last Post: 10-10-2012, 06:35 PM
  2. Replies: 3
    Last Post: 05-03-2012, 05:24 AM
  3. Replies: 1
    Last Post: 05-12-2010, 09:01 PM
  4. blackberry is downloading apps and demos on every cold reboot
    By pumped in forum BlackBerry Bold 9700
    Replies: 1
    Last Post: 05-12-2010, 09:01 PM
  5. Where to get apps and games on curve
    By joethepro in forum BlackBerry OS Games
    Replies: 4
    Last Post: 08-11-2008, 11:02 AM

Posting Permissions