Possibility to get a theme of device when the theme of the app has changed?

I wonder if anyone knows if it is possible to determine the color theme of the device when your application has been his theme changed. Normally, you can determine the color theme of the device like this:

bb::cascades::VisualStyle::Type theme = Application::instance()->themeSupport()->theme()->colorTheme()->style();

.. But if the application has had his overloaded theme in the file of the bar - descriptor.xml or environment variables (or by code on OS 10.3 +), then the example above returns the overloaded theme, not the unit one. I want to be able to determine is the theme of a real device, even if the application has overloaded it. Does anyone know a way to do this?

This would match the theme used by the user in the application right now, what he wants is the default theme for the phone.

You have 2 choices:
(1) file "" / services/pps/deviceproperties ' has a key named 'defaultTheme' which will point to 'black' or 'white'. "
(2) make your own function that manually associate HardwareInfo::modelName() with the theme appropriate, somewhat like the following code example that manually associate the name of the model with a value in case you want to use du() in 10.2 project.

https://github.com/RodgerLeblanc/AssetSelector/BLOB/master/src/DesignUnits/DesignUnits.cpp

I thought that I myself remembered a function called someClassName::isAmoled (), but never found when Googling it, so I just thought that there was...

Tags: BlackBerry Developers

Similar Questions

  • In ADF when the list has changed

    Need help please...

    In ADF when the list has changed I want choose value in the attribute according to changes in the list.

    I would write a ValueChangeListener for the SelectOneChoice. There you can get the selected value and the appropriate value to the 'value' attribute

    It might look like this:

    {} public void valueChangeListener (ValueChangeEvent vcEvent)

    Get the selected value of SelectOneChoice

    String newValue = (String) vcEvent.getNewValue ();

    get the value of the attribute "value" depending on the value selected in SelectOneChoice and set

    ...

    }

  • Why not printer start printing when the cartridge has changed

    All in one HP 4504

    Hello

    Try to make a COPY of a document / picture, it should work.

  • Locate a virtual computer when the name has changed

    Hi all

    Bit of a noob question, someone renamed a VM, I want now to make a vmotion of storage of this machine. But obviously can not find in Vcenter. I can't use the VMX unit is still plugged, as well as the last log file.

    any suggestions?

    There may be different ways to discover this. The easiest way is probably to use http://www.robware.net/ , which - in addition to the name of the virtual machine and its file names - will show you a name mismatch on the health tab.

    André

  • Is it possible to get an extra internal drive on the Satellite A200-1d(a)

    Is it possible to get an extra internal drive for the A200-1d(a)?

    Hello

    It should be possible, but you must first case if your machine has the connector or not. You can check this by opening the second hdd cover and check if the connection is present.
    So Don t you know where to look, just unscrew the covers on the bottom of the machine and watch. :)

    Welcome them

  • Is it possible to restore an iPhone on a previous backup?  My phone was stolen 2 weeks ago and took me off but the thief has changed a lot of my apps and things.  I just want to know whether and how to restore them from before flight

    Is it possible to restore an iPhone on a previous backup?  My phone was stolen 2 weeks ago and took me off but the thief has changed a lot of my apps and things.  I just want to know whether and how to restore them from before flight

    How the thief has changed a lot?

    You do not have a password, find my iPhone ON?

    Read here for the restoration of the backup: http://support.apple.com/en-us/HT201252

  • How to get notifications on both devices at the same time, iphone and watch

    Are we able to get opinions on both devices at the same time?

    Yes, if they are connected using the same Apple-ID
    (1161)

  • How can I get audio to not start when the button is clicked?

    I am new to adding audio to slides, buttons, click boxes.  Import the recorded voice on the overall slide of files sounds easy enough.  However, there are several buttons that display a legend I want audio to not start when the button is clicked.  I added audio just for this button, but it starts when the slide begins.

    How can I get audio to not start when the button is clicked?

    Hello

    Audio playback when the assigned object with the audio appears. That's why hear you when the button appears.

    Try to assign audio instead to the object that is displayed when you click the button. Perhaps the legend.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • I get a pop up saying that the Rundll32 has stopped working.

    This pop up came after I visited a site of RX glasses. I noticed that the site was a slow response. It seemed to be a legitimate site. Later, that's when the warning has popped up. I always get.

    Hello

    1. what operating system do you use?
    2. What is the full and exact error message?
    3. have you installed software before the show?

    4. you receive this message when you use Internet Explorer only?

    Method 1: Boot the system in clean boot mode and check if you get the same error again. Try now to the KB article to perform the clean boot:

    If you are using Windows Vista / 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista and Windows 7:
    http://support.Microsoft.com/kb/929135
    Important: After you used the clean boot in order to solve your problem follow step 7 to reset the computer to start as usual.

    If you are using Windows XP:

    Try now to the KB article to perform the clean boot:
    http://support.Microsoft.com/kb/310353
    Important: After you use the clean boot in order to solve your problem follow the steps in the "steps to configure Windows to use a Normal startup state" section to start your system in normal mode.

  • which method is called when the screen has lost focus but stays on blackberry?

    Hello

    I want to know in which method is called when the screen has lost focus, but always visible BlackBerry?

    For example, a screen is in the foreground and we disply dialog box so that the screen is visible but not to focus, therefore, at this time that methos called when we close this dialog box?

    Please, help me please please

    Override the following methods in your class to screen according to your needs

    1. when the screen button to the stack

    Call

    onDisplay() or

    onUiEngineAttached(boolean attached) - so attached is true then your screen is at the top of the screen

    2. When you are in a backlight and the lcd screen turns off to your state of rest and turns on again when you actively use this form

    call

    onVisibilityChange(boolean visible) - if visible is set to true, then you get the focus when the lcd display turns

    3. when your application moves to the background by clicking the red end button (i.e. without quiting the app, yet yours is active in the background)

    call

    onExposed() - when your application comes to the foreground of the background or during any type of screen that is in the top get popped

    & call

    onObscured() - when your application moves to the background, or when a screen pushed above your current screen more

  • An email received, how can I configure my email to receive a notification when the recipient has read the email?

    How can I configure my email to receive a notification when the recipient has read the email?

    Based on your e-mail program, a read receipt can be ignored by the recipient and some servers will block any reception

    Basically there is no process by which a receipt can be confirmed or that the recipient has read the mail - except by asking them directly

  • Hallo why? When I update ios. When the image has finished error itunes and usb

    Hallo why? When I update ios. When the image has finished error itunes and usb

    Connect the iPhone to the computer that you are synchronizing usually with

    and follow the prompts to iTunes on this computer. If you

    do not generally in sync with a computer, you should always use

    iTunes on a computer to complete the update.

  • Satellite A50-109 shut down when the CPU has to work hard

    My laptop off when I open the www with graphic flash or when the processor has to work hard. What's wrong?

    Hello

    Looks a bit like an overheating problem. What do you think??
    Have you checked the temperature with a tool of freeware as an Everest for example?

    To my knowledge the laptop stops automatically if the temperature rises to a critical level to prevent material damage!

    I think that the cooling modules don t runs properly and therefore the temperature doesn't fall.

    Usually, fans can turn with a maximum yield due to dust and debris inside the laptop.
    From time to time it s advisable to clean the fans with a spray of air compression. It can be everywhere for laptop and computer purchase.

    You should also be able to clear any dust and debris using a normal vacuum.
    Place it on the grids of aspiration air for a few seconds. But be careful.
    A strong suction can damage fans.

    If you have no experience, I recommend to contact a technician and would like to ask for help

    Good luck

  • When the Surface has a direct purchase for HBO Go app?

    When the Surface has a direct purchase for HBO Go app?

    Original title: HBO Go

    Hello Susan,

    Thanks for posting your question on the forum of the Microsoft community.

    Unfortunately, HBO Go app is not included as an application that can be purchased directly for Windows Surface and we have all the information when it is included in the Windows store.

    Please let us know if you have any other questions.

    Thank you

  • Is it possible to put a video during running on the app or an image?

    Is it possible to put a video during running on the app or an image?

    You can't put a video instead of the boot image.

Maybe you are looking for