Results 1 to 22 of 22
- 12-10-2012, 09:49 PM
Thread Author #1
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/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/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; 02-13-2013 at 09:47 AM.
Thanked by 9:Andrew Rolko (03-27-2013), Bla1ze (04-27-2013), greatwiseone (12-10-2012), KermEd (12-12-2012), Qaxl (12-14-2012), Sith_Apprentice (12-13-2012), thrrgilag (12-11-2012), Thunderbuck (12-10-2012), Xopher (12-13-2012)
- 12-11-2012, 01:35 AM #2
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 - 12-12-2012, 09:49 PM #3
I think we should sticky this
Blog | Vendor | OSBBx | filearchivehaven | @kerm_ed
Junior developer or wanting to learn? Join BBM chat using this QR code
- 12-13-2012, 09:01 AM #4
- 12-13-2012, 10:03 AM #5
Where is a mod when you need one? lol Sticky Thirded? Great job SCrid!
- 12-13-2012, 06:14 PM
Thread Author #6
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.
Thanked by:Sith_Apprentice (12-14-2012)
- 12-13-2012, 08:24 PM #7
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!
Leave It On - Take control of your backlight, keep the blacklight on for any app you want like Google Maps & BBM, light up with new msgs and pop-up now!
SixTools - The essential app for OS6 & OS7 users
BB10, BBOS &PLAYBOOK games apps, and more!
Visit: http://www.shao-soft.com - 12-13-2012, 09:26 PM #8
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.Blog | Vendor | OSBBx | filearchivehaven | @kerm_ed
Junior developer or wanting to learn? Join BBM chat using this QR code
Thanked by 2:SCrid2000 (12-20-2012), Sith_Apprentice (12-14-2012)
- 12-14-2012, 06:36 AM #9
- 12-20-2012, 09:03 PM
Thread Author #10
I suppose it's worth mentioning that since I started this thread I added 4 new WebWorks samples to my Github.
- 01-08-2013, 06:25 AM #11
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 soonDeveloper of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-08-2013, 08:19 AM
Thread Author #12
- 01-08-2013, 08:51 AM #13
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:JS:Code:<input type="checkbox" id="stat" />
that way it remembers the settings-screen options.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; }
to make it functional in the whole app; index.html
just some code for an exampleCode: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">' ); }Last edited by jeroen_13; 01-08-2013 at 09:09 AM.
Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-08-2013, 10:08 AM #14
I am not a WebWorks dev but couldn't you do
instead ofCode:localStorage.setItem('stat', document.getElementById('stat').checked);
alsoCode:if(document.getElementById('stat').checked) { localStorage.setItem('stat', "true"); } else { localStorage.setItem('stat', "false"); }
instead ofCode:document.getElementById("stat").checked = localStorage.getItem('stat');
Code:if (getStstus == "true") { document.getElementById("stat").checked = true; } - 01-08-2013, 11:09 AM #15
That is also possible, but for tutorials it might be easier to understand the IF & ELSE way.
Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-08-2013, 11:20 AM #16
- 01-08-2013, 01:15 PM
Thread Author #17
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-12-2013, 04:38 PM #18
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 soonDeveloper of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 02-22-2013, 09:06 AM #19
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/ - 05-07-2013, 05:22 AM #21
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:
add the update_check.htm page and give it the 'update_check' id like 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-->
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_WebworksLast edited by jeroen_13; 05-07-2013 at 05:40 AM.
Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 05-11-2013, 12:51 AM
Thread Author #22
You could use an ondomready event too to use it on non bbUI apps too.
Similar Threads
-
RIM Opens BlackBerry 10 App Submissions
By Masahiro in forum News & RumorsReplies: 0Last Post: 10-10-2012, 06:35 PM -
RIM guarantees developers will make $10,000 on their 'certified' BlackBerry 10 apps i
By adrenaline_x in forum News & RumorsReplies: 3Last Post: 05-03-2012, 05:24 AM -
blackberry is downloading apps and demos on every cold reboot
By pumped in forum BlackBerry OS AppsReplies: 1Last Post: 05-12-2010, 09:01 PM -
blackberry is downloading apps and demos on every cold reboot
By pumped in forum BlackBerry Bold 9700Replies: 1Last Post: 05-12-2010, 09:01 PM -
Where to get apps and games on curve
By joethepro in forum BlackBerry OS GamesReplies: 4Last Post: 08-11-2008, 11:02 AM



Reply

















