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
Pocket
Posts: 61
Registered: ‎08-12-2011
My Device: Curve 8520
Accepted Solution

cibyl with Java for BlackBerry

[ Edited ]

Hi,

 

I'm interested in creating an application for BlackBerry that uses a C/C++ API, because the company are too lazy to create a Java API for their product - but is there any way I can use cibyl to work in conjunction with a C API?

 

Also, does anyone know if BlackBerry has Vorbis audio support?

EDIT: Referring to: http://code.google.com/p/cibyl/

Developer
rcmaniac25
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

Re: cibyl with Java for BlackBerry

BlackBerry only supports Java (or HTML). There is no C/C++ API for BlackBerry. As for Vorbis, you need to check the supported media types, I think some devices have Vorbis support.
---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
Pocket
Posts: 61
Registered: ‎08-12-2011
My Device: Curve 8520

Re: cibyl with Java for BlackBerry

[ Edited ]

Cibyl is a programming environment and binary translator that allows compiled C programs to execute on J2ME and BlackBerry phones. Cibyl uses GCC to compile the C programs to MIPS binaries, and these are then recompiled into Java bytecode. Cibyl programs are regular compiled Java programs, and Cibyl therefore performs relatively well. 

 


I'm looking to use a Spotify API on BlackBerry, via cibyl.

Developer
rcmaniac25
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

Re: cibyl with Java for BlackBerry

I see. Still BlackBerry is J2ME only.

 

If you have a C library that you want to use with the program you are talking about, then you would have to use cibyl to convert that to JAR. But then it should work once converted to a COD file (since the JAR would support J2ME and BlackBerry).

 

If the issue is how to use a C library with the app, that would seem more like a cibyl related issue which I have no experence with.

---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
Pocket
Posts: 61
Registered: ‎08-12-2011
My Device: Curve 8520

Re: cibyl with Java for BlackBerry

I just wanted to clarify whether it would even be possible.

Thanks for your help, I'm sure you get the same (or similar) question about C/C++ for BlackBerry all the time here.