Re: [HAPI-devel] custom segments

2009-10-20 Thread James Agnew
Hi Tony, You can actually add a custom segment to messages at runtime fairly easily, there is a method called "addCustomSegment(String name)" on the Group class, which is the superclass of Message. Using that, you could add a custom segment fairly easily, and I'm fairly sure (though not positive)

Re: [HAPI-devel] custom segments

2009-10-20 Thread Charles D. Fisher
When you modify source, you don't necessarily have to recompile the whole thing. You just have to recompile the ones you changed, and then contrive to have them in the classpath ahead of the standard jar files, so your modified ones get picked up first. This works for us. Charles Fisher Divisio

Re: [HAPI-devel] custom segments

2009-10-20 Thread Tony Kennedy
I'd prefer not to have to modify any source. I'd like to be able to add a custom segment just like you can add a custom message package. But, I'm not quite sure how to go about that. Any examples? I'm using the 0.42 build (no, I don't want to update, it's a LOT of re-coding.) If I need to modi

[HAPI-devel] custom segments

2009-10-20 Thread Tony Kennedy
Hi all, Is there a way to add custom segment parsing without having to add code to HAPI and recompile the whole thing? Thanks Tony -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the onl