Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

BlackBerry eXtensions

Ok, when I first started developing for BlackBerry, I wanted a bunch of features from .Net within BlackBerry (as I am a .Net developer). I created a personal library that I called "Rebuild". A few months before Dev Con 2011, I decided to open source most of it and call it BlackBerry eXtensions (BBX). At Dev Con 2011 BBX was announced and I had an idea for something else called BBX so I decided to make it a placeholder.

 

Regardless, I finally released the code. Let me know what you think, or should add.

 

http://bbx.codeplex.com/

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: BlackBerry eXtensions

do you have some more information what you have in the library?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: BlackBerry eXtensions

[ Edited ]

*facepalm* Good point, forgot them.

 

  • CustomButtonField: A simple button field that can have a picture, text, or both visible on the button.
  • GestureField: A base field that allows for handling of different gestures and pinch to zoom.
  • Image encoders: BlackBerry has image decoders (EncodedImage) but only a couple encoders. Supported image encoders-JPEG, PNG, TIFF (customizable with tag support), WBMP
  • Version: Standard "version" data type.
  • General utilities:
    • assert
    • permissions
  • String utilities:
    • isNullOrEmpty(orWhitespace)
    • split
    • format (based off java.text.MessageFormat, though number specific number formating isn't supported [#.##])
  • MathUtilties: A math utilties class that is supported from OS 4.5 and up (as the built in MathUtilties varies based on OS level)
  • GraphicsUtilites:
    • Convert to and from EncodedImage/Bitmap/J2ME Image
    • Save EncodedImage/Bitmap/J2ME Image to file
    • Load EncodedImage/Bitmap/J2ME Image from file
  • IO utilities:
    • Directory/File exists
    • EnsureCreation (makes sure that a file or directory that will be in use is created)
    • Directory/File delete
    • Directory/File move
    • General path functions
  • "reference" types: Allows for parameters to be passed into a function, and for the function to be able to modify the values and the changes will be retrievable from outside of the function. If you ever worked with C#, this is similar to the "ref" parameter keyword or passing a pointer to a variable in C/C++.

It's not complete, but also isn't really supposed to be. It's just a general collection of functions/utilites that I have found useful and implemented. If you have any ideas for stuff I should add, let me know and I'll see what I can do.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: BlackBerry eXtensions

Is that better?
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: BlackBerry eXtensions

I have only taken a quick look at some of the classes, but it seems that the classes are well written and even contain meaningful comments.
I'll take a closer look later, to see if I can use any of these for a current project, and will share the link with my colleagues.

We have a similar library, but as it is property of the company i am working for I cannot share any of it.

Kudos to you to share your hard work, i would suggest that you go ahead and post the link whenever a question is raised that could be solved with one of your tools (as you have the best overview).
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: BlackBerry eXtensions

Thank you (on the code comment).

I plan to.

I realized I should have done this a while ago and just never got around to it.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: BlackBerry eXtensions

Ok, I realized I had a bunch of other helper functions/classes from a couple of my other libraries, so I decided to move them over too.

 

Version 1.2: http://bbx.codeplex.com/releases/view/86030

 

See site for change log.

 

Enjoy

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.