0

I need to implement the Hachoir libraries to parse through image files (the meta-data in them). My project requires this to be done on a Blackberry device, hence that would mean I will have to port the entire Hachoir library to Blackberry.

The other thing I could do is to, write python scripts (which utilizes the Hachoir libraries) and find a way to call these scripts from the Blackberry. I read that it is possible to call python scripts using NDK on Android. Is there a similar tool for Blackberry?

So in the end I will have to install hachoir(??) on the phone, call the scripts through the "NDK equivalent tool", capture the output again through this tool and display it to the user.

Any suggestions on the tools to be used and the method in general? Are there any other suggestions for hachoir like libraries on Java? Thanks!

cornerstone
  • 639
  • 1
  • 8
  • 19
  • There is no NDK equivalent on BlackBerry OS. There is on BlackBerry Tablet OS. So if you wrote your solution for the PlayBook using the NDK it would work on BlackBerry 10 devices when they come out. There is this SO question http://stackoverflow.com/questions/2168472/media-information-extractor-for-java which seems more aimed at video but might help. – Richard Mar 20 '12 at 18:14
  • Thanks Richard. I have been looking at Jython and it looks like a good option for running Python scripts from Java. Jython also runs on any platform which supports a JVM, however I am not sure if I would be able to use Jython on Blackberry? Does the Blackberry platform support a JVM? – cornerstone Mar 22 '12 at 12:28
  • Can someone please suggest how can I make python scripts run on Blackberry OS? – cornerstone Mar 22 '12 at 12:34
  • 2
    BlackBerry OS supports J2ME with extensions. The JVM is non-standard (RIM has implemented their own JVM with different byte codes than standards). This means that you will have to compile any Java you want to use with RIM tools. Sometimes you can link with a JAR but it depends on the dependencies of the JAR and what version of Java compiled it. – Richard Mar 22 '12 at 13:32

2 Answers2

0

Peter Hansen has Python running native on the BB playbook. See this link.

Peter Hansen
  • 21,046
  • 5
  • 50
  • 72
jjw
  • 1
  • 1
    For what it's worth, we've gone well beyond what was mentioned in that early post. We've ported PySide, so now you can write full Qt apps in Python (including using QML, which rocks) for the PlayBook and BB10 devices. See http://blackberry-py.microcode.ca/ and follow @BBPyProject on twitter. – Peter Hansen Jun 16 '12 at 19:04
0

Or you can write your own script using the python app, and then port it (if needed) to peter's framework (which is very cool too) http://appworld.blackberry.com/webstore/content/32880889/

Nande
  • 409
  • 1
  • 6
  • 11