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: 83
Registered: ‎02-17-2009
My Device: Not Specified
Accepted Solution

Is there any way of setting a theme programmatically?

[ Edited ]

Hi,

 

Is this possible? Or maybe loading and installing a new plazmic theme as a bb application using OTA?

 

Regards

Message Edited by miskatonic on 03-12-2009 06:37 AM
Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: Is there any way of setting a theme programmatically?

Hi, there is no way of setting a theme programmatically. At least you can get the actual theme name programmatically. Loading a theme should be no problem using OTA, afaik. Regards, Jochen
Developer
Posts: 83
Registered: ‎02-17-2009
My Device: Not Specified

Re: Is there any way of setting a theme programmatically?

Thanks for your answer

 

I think i read that is possible to load a plazmic theme as a java app, but is it possible to install after loading without the user having to set it manually? I mean, as a OTA bb app installation using jad and cod.

 

Regards

Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: Is there any way of setting a theme programmatically?

Hi,

 

i'm not quite sure, but maybe you can install it as file using CodeModuleManager class??

Maybe only possibility... or does anybody know something else?

 

Regards,

Jochen

Developer
Posts: 83
Registered: ‎02-17-2009
My Device: Not Specified

Re: Is there any way of setting a theme programmatically?

Hi,

 

I haven't gone deep into using CodeModuleManager class so as to install my theme .cod, but i'm afraid that the only thing i'll be able to do is put the theme inside with my other themes, but not set it as current theme...

¿could anybody tell me if I'm wrong?

 

Thanks in advance...

Highlighted
BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Is there any way of setting a theme programmatically?

[ Edited ]
There are no BlackBerry APIs that allow you to change the current active theme.
Message Edited by MSohm on 03-23-2009 03:46 PM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 83
Registered: ‎02-17-2009
My Device: Not Specified

Re: Is there any way of setting a theme programmatically?

Hi again,

 

I'm still making some tests with themes and CodeModuleManager.

 

As i've seen when making an OTA installation of a plazmic theme through the jad file, it does put this theme inside the other theme options (Options/Theme) and it also appears inside Options/Advanced Option/Applications menu. But when i install the cod file from another application using CodeModuleManager it doesn't appear inside Options/Theme, and is installed as a module, so there's no way for the user to use it as a theme.

 

¿is there a way of doing this?

 

Regards

BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Is there any way of setting a theme programmatically?

You need to create a CodeModuleGroup for the CodeModule9s) in order to have the application appear under Options, Advanced Options, Applications (as an application, not a module).
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 83
Registered: ‎02-17-2009
My Device: Not Specified

Re: Is there any way of setting a theme via code?

Thanks Mark.

 

But with CodeModuleGroupManager could it be possible to make my theme cod appear in Options/Theme? 

 

Regards