Application.Orientation (cannot unlock...)

Basically, my application allows the user to switch the orientation and basically the user interface will change based on that. However, there are a few screens that I want to block orientation (settings & help for example).

I use bbui.js (0.9.6) and use the ondomready: function to check the page (id) to lock and unlock the orientation.

[...]
ondomready: function(element, id, params) {
if (id == 'menu') {
blackberry.app.unlockOrientation();
}
if (id == 'settings') {
blackberry.app.lockOrientation ('portrait-primary');
}
if (id == 'help') {
blackberry.app.lockOrientation ('portrait-primary');
}
[...]

I am able to do block to portrait, but I can't unlock it. I even tried to put an event 'onclick' on the actionbar (back) button to see if it will work. This isn't. Any idea on what I'm doing wrong here?

Thank you.

Ok... I solved my problem. It works when I call a new function instead of having within the ondomready function.

So, I made these functions.

function lockDisplay()
{
    blackberry.app.lockOrientation('portrait-primary');
}

function unlockDisplay()
{
    blackberry.app.unlockOrientation();
}

Call them of in the ondomready... and it works.

Tags: BlackBerry Developers

Similar Questions

  • Cannot unlock 6 sec more

    I requested unblock for my 6s more tmobile and I aproved, the phone is opened since 21 August but on servers apple its still locked. I tried all means about 10 times each and will not unlock the phone. I know that apple cannot unlock phones, but can it be lack of apples?

    Please be more specific about what you have already tried. Do you have already restored the phone like new in iTunes?

  • Cannot unlock apple ID or logout to Icloud

    Hey guys,.

    My iphone login an apple ID even with my gmail. But this apple ID locked. I cannot unlock apple ID and cannot search apple ID by this gmail in "https://iforgot.apple.com/password/verify/appleid#!" & section = appleid'.» I try to unlock apple ID by email. But my gmail does not receive mail.

    After that, I create the new apple what ID by this gmail and it was completed successfully. Now the new apple ID even with apple ID in my iphone. I have ID apple and see my iphone under "devices." What can I do now

    Thanks for all your help in advance!

    There is a contact link.

    Apple ID support

    Apple ID support (2)

    Apple ID - alert "this identifier Apple has been disabled for security reasons" is displayed

  • Issue of campus Solution 9.0: Table prompt Application Center cannot come data

    People,

    Hello. I implement Solution Campus with PeopleTools 8,53 9.0 for a University. At the moment, I put implement student recruitment and admissions Module. I made this as the 3 steps below:

    Step 1: Configure AWAR > Products > recruitment and Admissions. I've implemented all the data in this part.

    Step 2: Student recruitment. This part is not really necessary to do so.

    Step 3: Student admissions > lettering > Add Application

    The component is 5 pages. In page 4 "Application Data", table prompt Application Center cannot come from the data. Unable to save all the data of the component.

    I found that the problem is that the quick table PS_ADM_APPLCTR_SVW is a view involving 3 tables as below:

    PS_ADM_APPLCTR_TBL

    PS_ACAD_CAR_TBL

    PS_SCRTY_APPL_CTR

    I type in the Application Center data in Set Up > AWAR > related products > recruitment and Admission > candidates > Application Center of Table, the data is correctly saved in the PS_ADM_APPLCTR_TBL table and returned to the browser correctly.

    The table PS_ACAD_CAR_TBL returns data successfully.

    The problem is that the table of PS_SCRTY_APPL_CTR returns no data. This table is the SCRTY_APPL_CENTER component. GBL about the Application Security Center. It seems that we need a process for security.

    I checked the value Up AWAR > Security > Secure Student Administration > processes that are below:

    -Update of view security

    -Update security - Acad Orgs

    -User management profiles

    -Profiles user Mgmt - clean

    -Access to demographic data

    -Safe use mass replacement

    I don't see any process runs about the Application Security Center.

    My question is: can all folk fix "Application Center table quickly propose no data" in "student admissions > lettering > Add Application"-page of Application data?

    Thanks in advance.

    People,

    Hello. The problem is solved by myself. Table prompt Application Center now come from the data. Thank you.

  • Hello. Soon, I should start a business. Adobe Creative Cloud package includes all applications including Photoshop, first, After Effects, Acrobat, Illustrator? In addition, the features of the application are fully unlocked by purchasing this package?

    Hello. Soon, I should start a business. Adobe Creative Cloud package includes all applications including Photoshop, first, After Effects, Acrobat, Illustrator? In addition, the features of the application are fully unlocked by purchasing this package?

    Hi francesco96,

    'All the Apps' plan includes access to all listed here Adobe applications:

    "Desktop adobe Creative Cloud applications. Adobe Creative Cloud

    Kind regards

    Maurice

    This answer was helpful? Please consider marking it as 'Useful' or 'Right answer' to help future customers with the same problem. Thank you!

  • Adobe Application Manager cannot install

    When I try to download an application, a new window opens and begins to date Adobe Application Manager.  Then I get an error message stating "we encountered the following problems: Adobe Application Manager cannot install" then quit.  I don't see the creative cloud installed on my system.  What Miss me?  Help!

    Spin it creative please see http://forums.adobe.com/message/5424231#5424231 where this subject has been discussed.

  • The adobe application manager cannot install updates because I told that another installer is running

    The adobe application manager cannot install updates because they say that another installer works? Another installer does not work, any way to fix this?

    We do not know. You provide all information system or other details. Reboot your system, be sure to sign as an administrator, and then try again.

    Mylenium

  • < CLOSED > cannot unlock the bootloader XT1022

    Hello

    you want to ask, I want to unlock my Moto E bootloader, but he always tells me that my device cannot be unlocked, I just tried for 3-4 browsers with all extensions disabled, but it always seems failed.

    has anyone have the same problem with me?

    in any case thanks before...

    Please head on the developer forums - you can get help here:

    https://forums.Motorola.com/hives/58b810112f/summary

    We can not help you here.

  • TENS of installation in the application directory--> cannot find directory RTE

    Hello

    I couldn't find an answer of fitting about my problem using search, so I'll try my luck by asking.

    First of all: I'm using Labwindows/CVI 8.5

    I created an installer for my application using the Distribution Kit Wizard. Under the tab drivers & components I chose only the 'standard Run-Time'.

    On the Advanced tab, I left the option "Install Labwindos/CVI Run-Time Engine in the application directory" unchecked.

    This installs and works fine at my PC clients.

    Now the problem:

    My client does not want that all files are installed in the Windows\System32 directory...

    So I checked the option "Install Labwindos/CVI Run-Time Engine in the application directory" and created a new installation routine.

    This installs fine and the cvirte folder is also be copied into the directory of the specified program and not Windows\System32... but now whenever my client tries to run the application, it gets called with the following messagebox:

    Cannot find the directory RTE:

    C:\Windows\system32\cvirte

    Which is actually very good, because I wanted to RTE must be installed in the folder of my program, but somehow my request is always pointed toward the search in system32.

    Is there a way to fix this without copying the RTE in Windows\System32 again?

    Given your explanation, I can understand why you see the error message. When you try to locate the resource (bin) and directories of fonts, DLL RTE search in the directory of the process that loaded, then in the system directory. As RTÉ is not installed in one of these locations (instead, it is installed in the same directory as your DLL file), we do not find the directory "RTE". There is nothing particularly wrong with what you're trying to do, except that we can't do well. I'll drop a request to fix this for a future version. In the meantime, you have a few options:

    1. let the RTE to install in the system directory, as it normally would.

    2. manually copy the directory cvirte of your repertoire of the DLL in the system directory.

    3. ask the client install your package DLL in its application directory. The target directory can be changed by the customer at the time of installation.

    I know these aren't the major options. I personally highly recommend the first option, despite protests from your customer. Is there a good reason that it is forbidden to use the system directory?

    A. Mert

    National Instruments

  • cannot unlock my account

    Windows 7 starter edition. I keep trying to log in to my administrator account, but it says wrong password and ive been using the same password for two years. How can I unlock my account?

    Moved from Vista security, confidentiality and Forum accounts.

    Hello

    This is Information from Microsoft on the problems of passwords;.

    If you are unable to connect to Windows 7 or Windows Vista, you can use the Windows Vista System Restore feature, or the Windows 7 system restore feature.

    You may be unable to connect to Windows Vista or Windows 7 in the following scenarios:

    • Scenario 1: You recently set a new password for the protected administrator account. However, you don't remember the password.
    • Scenario 2: You type the correct password. However, Windows Vista or Windows 7 does not accept the password because the system is damaged.
    • Scenario 3: You delete a protected administrator account. Now, you cannot connect to another administrator account.
    • Scenario 4: You change an administrator account protected with a standard user account. Now, you cannot connect to another administrator account.

    _____________________________________________

    Malware can also cause problems with passwords:

    Download, install, update and scan your system with the free version of Malwarebytes AntiMalware in Mode safe mode with networking:

    http://www.Malwarebytes.org/products/malwarebytes_free

    'Advanced options boot (including safe mode).

    http://Windows.Microsoft.com/en-us/Windows/Advanced-startup-options-including-safe-mode#1TC=Windows-7

    ___________________________________________

    "What to do if you forget your Windows password"

    http://Windows.Microsoft.com/en-us/Windows7/what-to-do-if-you-forget-your-Windows-password

    "If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to log on Windows and you need to reinstall Windows. »

    ___________________________________________

    http://support.Microsoft.com/kb/189126/en-us

    Tools third password

    Some third-party companies claim to be able to bypass the password that have been applied to files and features that use Microsoft programs. For legal reasons, we cannot recommend or endorse any of these companies. If you want to help to break or reset a password, you can locate and contact a third party company for this help. You use these third-party products and services at your own risk.

    ___________________________________________

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • I'm stuck on my laptop Windows 8 and cannot unlock my Microsoft account. How can I return to my laptop?

    My mother had a new laptop from Windows 8 for Christmas. Woohoo! She already has a Windows Phone, so she has a Microsoft account.

    When she first signed in her computer, she didn't use his account of Microsoft, so she used a different email address. We had him go back and link their account to a Microsoft Account, but she could not remember the password to MY (her phone does not require it to remember). So, while she has access to his account of MY through his phone (email, skydrive, Messenger, etc.), she can't connect to it via the web or their new computer. To further complicate the things, all this switching autour led to forget the password, she chose when she first signed in the (local account on the) laptop.

    So, now it is totally locked out of his computer. We tried to reset her password to MY, but unfortunately the security only option we have is to send it to an e-mail address that is not fully illustrated and must be incorrect, because we never received the email to reset. Ugh.

    Yes, Yes, we should have remembered the password. Yes, we should add more security options (such as the telephone number of its Windows Phone). This isn't the issue, the question is: how the hell we have access to his laptop again?

    A question is: How do we get access to mastery again? We tried three or four times to give all the information they ask for (last addresses sent e-mail to the last e-mail subject lines, etc.) without success (despite the fact that it can send and receive emails from its Windows Phone). We do not have a credit card or other billing associated with his account information and it did not create folders to email him (and apparently, can't make his phone).

    It gets really frustrating - there should be a way to talk to a human being or something that can reason better than Microsoft account unlocker automated tool.

    Last updated on 26/12/12:

    It is interesting that my mother would have access to his account (e-mail, skydrive, e-mail) via his phone but, since she don't remember not his password to his laptop or the live.com site. It is also interesting that even if she has a phone that is obviously linked to his account, it cannot receive a text (or messenger note or same email) with a link to security number/password or password reset via his phone.

    If anyone with the ability to listen, my mother could really use a link reset password secure e-mail to its live.com account, so that it can reset his password on his phone!

    Otherwise, I think it's just going to return the laptop Windows 8. They do not have give it an OS reinstall the drive, which is the only other thing I can think to recover his system...

    PS: It would also be nice if Microsoft would publish an email address on their account or email recovery page such that when the process fails, there is another available for persons other than simply to try new way (which is, as some claim, the definition of insanity).

    Thank you!

    Thanks for any help you can provide.

    samske answered the

    Come back in my laptop after talking to 4 technicians of Microsoft, seems that if you hold down the SHIFT key and press on restart you start a totally different group of options. Which is safe mode, once you start in safe mode, go to run type msconfig in the start option in msconfig, you will find in the Startup column this repair active directory has been selected uncheck the safe boot option and restarting worked for me
  • Impossible to update, cannot unlock the drive, may not reach the store, nothing on the start screen

    Symptoms...
    1. After several months of work perfectly, I made a mistake (details below) and attempted to retrieve a previous Restore Point.
    2. the system always starts ok, and some things work.  However...
    3. some applications don't work anymore, for example, Logitech SetPoint.
    4 files Explorer remember settings and defaults to each invocation.
    5. various Windows settings have been lost.
    6. the Windows 8 start screen has only 'Start' and my login ID.
    7. I can't update the system or re-install the system.
    8. "change system settings" does absolutely nothing.
    9. I got error messages saying my system disk is locked and I need to unlock it, but I can't do it.  None of my disks is BitLocker on, and I can't find any other meaning of "locked".  The message is "the drive where Windows is installed is locked. Unlock the drive, and then try again. »
    10. I suspect some programs of Windows 8 system are corrupt or lost, but the OS is clearly still Windows 8 in appearance and behavior.
    What I tried...
    1 clean the registry with various cleaners.
    2. checked with Windows Update, the software has been completely updated.
    3. the Windows troubleshooting diagnostic tool has not helped.
    4. the same problems occur in Mode without failure.
    5. always had problems after a clean boot.
    6 sfc/scannow (as admin) did not help.
    7. I can't do a simple Refresh or reset because I can't go to the store.
    8. out of desperation, I tried updating to Windows 8.1 Overview, but it doesn't have to say that my system disk is locked.  I couldn't find sort of the 'unlock'  BitLocker is off anyway.
    9. I downloaded the installation of window package 8, created an ISO file and burned a DVD.  Tried to repair and regeneration, but both failed.  Once more, the error message said that my system disk is locked.
    10. I am very reluctant to throw my applications, I have over a hundred installed.  In any case, I'm afraid that if I format the system drive, I won't be able to install Windows 8 in all.
    How it all started: I made a mistake...
    I installed the Gavotte RamDisk and then tried to delete it, forgetting that I needed to run 'as administrator '.  This does not, without saying why, so I removed with Control Panel etc.  Once I did, things started to go wrong.  Previous restore points did not help, and after floundering about in frustration and growing desperation, I ended up here where I am now.
    The system...
    1 MSI motherboard (Z87 - G43)
    2. 2 x 4 GB Corsair Vengeance RAM (CMZ8GX3M2A1600C8)
    3. three SATA drives, each with two partitions
    4 DVD burner
    5 external USB floppy
    6. two analog monitors, one connected via a digital-to-analog converter (powered)
    7 keyboard and mouse Logitech wireless
    8. USB printer cable
    9 LAN with another PC of Windows 8 that works properly
    10. access to on and old XP laptop
    WHAT CAN I DO?  I HIT THE BUFFERS!
    The Solution
    ========
    The result was much better than I expected.
    If you take the road to Microsoft to fix the system, it offers a 'Refresh' or 'remove all and reinstall '.  These two failed because they require access to Microsoft Store.  However, there is a middle path to fix, as long as you have a product key, which re - install Windows 8 as if it were an 'upgrade '.
    The process is described quite well here:
    http://www.TechRepublic.com/blog/Windows-and-Office/quick-tip-download-a-new-copy-of-the-Windows-8-upgrade-ISO/
    In summary, download the upgrade of widows 8 components and create a picture ISO of DVD, you must burn it to a DVD.  Then, you use this disk to re - install Windows 8.  The great thing about this is that it offers keep your files and settings.  (However, as it is an 'upgrade' it does not provide the option to install on another partition.)
    In my case, it worked much better than I expected.  Most of the Windows settings, I thought were lost forever, have been restored.  It's as if she restored settings that he did not know that there :).  Instead of spending hours putting my system after re-setup, I was able to relax, take an evening away from the PC!
    Thanks to the person who responded to my original query.
  • Adobe Application Manager cannot connect :(

    Hi all

    Maybe someone will help me support is not

    I bought a new laptop running 64-bit Windows 8. Then I installed the following software to my creative cloud subscription:

    _ Lightroom, up and running fine

    _ Photoshop, installed in trial mode, as he could not connect, well, I thought it was a temporary bug and leave it in the trial.

    I couldn't update my final test software such that he asked to connect to the internet and enter the Adobe ID.

    After a long discussion with a technical support agent Adobe it me to Photoshop to uninstall and reinstall once more. 'Ideal' that I can't download now even Photoshop like Application Manager wonder Adobe ID at the beginning.

    After another verry long discussion with little support technical agents the only think that they can say this is probalbly a problem of language (Polish) and gave me local contact supports the team in Poland.

    I'll do it, but I'm sure that's not the source of the problem.

    For info:

    I'm not on a protected network, just a router and a DSL modem, even directly connected to DSL AAM cannot find internet connection. Even on a different network in a different place.

    Even with the firewall and antivirus off MAO doesn't work. There is nothing in hosts. I am borrowing the server licenses adobe as indicated by the agents.

    So everything works fine only shit AAM find a way to find my internet connection.

    Oh and for the final, a second computer connected to the same home network have the same creative cloud liscences running, updated and works well.

    So if anyone has an idea of what I need to do to not sue Adobe for 3 days lost to seek the solution I'll be happy to read it here

    I just can't work.

    M.

    Ufff it works! Technical support in Poland helped to get directions for a solution. Thank you!

    Now I explain how:

    Probably a process in Windows 8 blocks Adobe Application Manager that cannot connect to the internet.

    A quick solution is to create a new user account and install all software of this account, as the programs are shared you need not use all the days of the account.

    It is a solution for a while as each month what MAO will try to connect and check if your license is still in place.

    In the end, I have to check all the processes one by one and disable one who blocks the AAM, which will certainly take me a lot of time

    But for now I have a working software... Finally...

    How much money will I get Adobe for this tip for debugging? A discount will be welcome for 3 days lost here :/

  • Adobe Application Manager cannot find Acrobat XI Mac Pro on MBP

    Hello

    I tried several times, and personal support from Adobe yet contacted chat, to solve this problem, but when I run Adobe Application Manager, still shows that I have not installed Adobe Acrobat XI Pro for Mac.  He told me that my serial number is valid, but that it cannot find AA XI Pro on my MBP.  When I run Adobe Acrobat Pro XI for Mac on my MBP, I get a similar message.  Adobe Acrobat Pro XI is not yet in the list of applications for which I could possibly enter a serial number.  So, I wonder - Adobe has not yet clued in its own applications that he has released Acrobat Pro XI?

    Seems all kinds of descendant and not professional to me.

    See you soon,.

    Hussar

    Since the message that you have described, it shows that you have purchased the upgrade for Acrobat XI. You are eligible for an upgrade if you already have an earlier version of Acrobat. More details here - http://www.adobe.com/products/acrobatpro/buying-guide-upgrade-pricing.html

    If you already have an earlier version of Acrobat, select this version from the drop-down list and provide the serial number of this version. For example, if you have Acrobat X and you decide to upgrade to Acrobat XI, then launch Acrobat XI you will get this message. Select Acrobat X and provide the serial number for Acrobat X so that your eligibility for discounted upgrade is checked.

    If you do not have the earlier version of Acrobat, and yet you have purchased an upgrade, please contact customer support to solve this problem.

    -Karan

  • Turn on auto cannot unlock with Apple Watch

    Hi guys,.

    I need help here.  I'm on macOS Sierra on a MacBook Pro (retina, 13 inches, end of 2013).  I actually had auto unlock with my Apple Watch two days ago.  But then I did a stupid thing yesterday and had to restore the MacBook OSX Maverick and re-upgrade to Sierra.  I can't activate longer auto unlock with Apple Watch now and it's really frustrating.

    Thanks in advance for your help.

    Don't feel alone, there are a lot of problems. Very inconsistent behavior.

    Requirements for continuity on Mac, iPhone, iPad, iPod touch and Apple Watch - Apple Support

    http://www.CultofMac.com/441405/how-to-use-Apple-watch-to-unlock-your-Mac-in-Mac os-sierra.

Maybe you are looking for

  • Noisy left fan on the old MacBook Pro

    the fan is replaceable on my old MacBook Pro?

  • 10.11.3 OSX kernel panics

    MacBook Pro early 2008 start-up problems and seems to have a kernel panic, preventing the boot to continue. I'm unable to boot into recovery mode.  I can boot into single user mode, and when I get out of this mode, a normal start happens.  Any sugges

  • Spectrum 360: battery drain

    I notice that my drains battery very fast when I turn the laptop off the coast and don't turn it back on for several days. Often, when I come back, my battery is at "0%". That night in the life of the battery?

  • Keyboard does not work on my old Pro of Satellite 420

    I know, it's a very old book, but I have a big problem, maybe someone of you can help me. I bought the laptop only for wrighting reports. But the main problem is, when I try to write for example after the sentence: I had a lot information on... the f

  • Use sysprep for activation?

    My computer system has been implemented with an upgrade of Vistap after the initial installation of XP.I need to do a reformat, but want to be sure of the activation procedure with the upgrade installation.I was told to use the system preparation too