Josh,
I decided that I would like the application to also output a hex dump
of the results of Branding.getData() for each field that returns a
non-null value. I've tried lots of things but haven't managed to get
the byte array returned by Branding.getData() converted into any other
format. This is my first attempt at programming something in Java so
it is lots harder than if I had more experience.

I've attached what I have so far.

It may be nice to be able to output text for the fields that are text
and to display an image for the fields that contain a PNG image, but
for now I'd be happy to just get a hex dump of whatever data each
field contains.

Thanks,
Robert Yaklin

On Mon, Jan 26, 2009 at 3:01 PM, Josh Kropf <j...@slashdev.ca> wrote:
> Attached is a decompile of Branding.class, sorry field values are in
> decimal not hex.
>
> hello.zip contains a small sample program that prints getVersion()
> value in Branding.  Included is the source if you would like to
> modify and recompile.
>
> To build you need:
> * JDK 1.5 or higher
> * JDE 4.5
> * Apache Ant
> * bb-ant-tools
>
> On Mon, 26 Jan 2009 14:18:23 -0600
> Robert Yaklin <ryak...@gmail.com> wrote:
>
>> Could someone write a simple BlackBerry application to display the
>> Branding Version so I can complete my documentation in that area? The
>> info for it is at
>> http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/Branding.html#getVersion
>> ()
>>
>> I've deduced the values for the following:
>>
>> 0x1003        FIELD_WELCOME_MESSAGE_SUBJECT
>> 0x1005        FIELD_WELCOME_MESSAGE_FROM
>> 0x0001        FIELD_BITMAP_1_TIMEOUT (milliseconds to display splash
>> screen) 0x4004        FIELD_BRANDING_TUNE
>> 0x4002        FIELD_BRANDING_TUNE_NAME
>> 0x0000        FIELD_BITMAP_1_DATA (a PNG file splash screen)
>> 0x1004        FIELD_WELCOME_MESSAGE_BODY
>>
>> I think  FIELD_BRANDING_IGNORE_INTEL_SPLASH  is either 0x5100 or
>> 0x0011, and I think 0x4003 is a PGP Public key.
>>
>> I'd also appreciate if you could let me know the rest of the hex
>> values for the other fields listed in the Field Summary on the page
>> linked to above. They will probably be somewhere as a #define FIELD
>> 0x????.
>>
>> Once this information is known, I can complete my documentation for
>> this and a program can be added to Barry to edit or create our own
>> Vendor Splash Media branding files to customize our devices.
>>
>> Thanks
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Barry-devel mailing list
>> Barry-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/barry-devel
>
>
> --
> Josh Kropf <j...@slashdev.ca>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel
>
>

Attachment: BrandingInfo.7z
Description: Binary data

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to