How can it ask i detect orientation any listener or event?
Hi all
Can anyone suggest me what method or event called when you change the orientation of the BB Strom Simulator.
I can't figure how to detect when it changes from portrait to landscape to portrait and landscape.
Please suggest any small code end or any idea you have successfully.
Thanks in advance,
TEJ
sublayout() who is substituted by the display method will be called, not the sublayout() of each field method is called when the screen orientation changes.
You can do something like this:
public class TestScreen extends MainScreen { public TestScreen() { } public void sublayout(int width, int height) { //update scrren layout based on orientation if(Display.getOrientation()== Display.ORIENTATION_LANDSCAPE) { } else if(Display.getOrientation()== Display.ORIENTATION_PORTRAIT) { } super.sublayout(width, height); } }
Concerning
Bika
Tags: BlackBerry Developers
Similar Questions
-
How can you ask siri for a rest stop
How can you ask siri for a rest stop
Hello
Might have better luck using this app > https://itunes.apple.com/us/app/rest-area-finder/id330740828?mt=8
Tips for using Siri here > Siri use on iPhone, iPad, or iPod touch
-
How can I ask to reset my security question?
How can I ask to reset my security question?
Click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(137300)
-
Whenever I try to download something, he said that he could not access APPDATA Error 1606. How can I solve this problem without any of my stuff getting deleted?
Hello1. what Internet browser do you use?2 are you having the same problem with other browsers also?Method 1: I suggest you try SFC running [System File Checker] scan on the computer that would be a system file corrupt on the computer search and replace.Method 2: If the problem persists, you can try the steps mentioned below and check if it helps.(a) click Start.
(b) type regedit in the Start Search and press enter.
(c) access the site mentioned below."HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"(d) then change the appdata read "% USERPROFILE%\AppData\Roaming" thingNote: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/)
How to back up and restore the registry in Windows
Hope this information is useful. -
Adobe Revel? I forgot: the URL; my user name and password. How can I ask Adobe for these items? Thank your answer!
Dave,
No worries, this link will help you with your questions. You have not an account of revel with this e-mail in order to reset your password should be all you need to do. Just click on the link "I forgot my password" on the web page below:
http://helpx.Adobe.com/x-productkb/policy-pricing/account-password-sign-FAQ.html
Once you reset your password, you should be able to connect to revel in adoberevel.com on a browser or one of our applications on mac, ios, win8 or android.
Guinot
-
How can I change the command to "start listening" in Windows Reconition of discourse and change it to 'Computer' like in Star Trek?
I tried to change it by a macro, but it does not work, please help.KarlHello
Unfortunately, you cannot change the Windows speech recognition commands. It is by default. Click on the link below.
Common commands in speech recognition
http://Windows.Microsoft.com/en-us/Windows7/common-commands-in-speech-recognition
-
How can I verify and change the system set trace events?
Hi all:
How can I check that the system set trace level events? I don't want the big alert_log.
Concerning
TerryTo disable the use of the event
ALTER SYSTEM SET EVENTS '20 trace name ERRORSTACK OFF';
HTH
Srini -
How can I make a detectable 6000 microsoft wireless mobile mouse?
Try to connect my mouse to my laptop which has bluetooth and wireless built in. But the search did not see. How do you do this detectable mouse so that the laptop can see?
Most often when a device does not work, it's because the driver has been corrupted.
Try reinstalling your.
http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1
http://captaindbg.com/how-to-update-drivers-on-Windows-7/
-
How can we ask a free update of the LR5 LR6?
How can I request a free update of the LR5 - LR6?
Lightroom is located near the bottom of the screen. Click on the button buy and indicate you want to purchase an upgrade. The price will change. Follow any other instructions and make your purchase.
-
How can I rotate a picture of any Word 90 °?
I'm working on a document that contains hundreds of paintings, mostly adapting very well in portrait mode. However, a number of them have too many columns to fit any direction but the landscape. How can I rotate the pictures 90 ° without having to completely recreate the table in InDesign. All I see is the ability to rotate the text in a cell, which does not solve the problem.
Set the table in its own frame and rotate the image.
-
How can I ask for password on XP programs
I don't need a password to access Windows on my laptop. However, I want to restrict access through passwords to programs on my computer like Outlook Express, My Documents, etc. How can I do this?
It is best to password for your computer to do this, and if other people use your PC too, you could account for them or create alamaison account if there is no comments.
-
How can I remove selected Custom view (s) of the event viewer Console tree?
I looked at the MMC Help on create and manage custom views.
I can't find a way to remove the custom filter views in the Console tree, which can be found on the left side of the event viewer.
How can I remove selected Custom view (s) when they serve no more values?
Problem solved
I asked this question because I was unable to see what was going on in the event viewer and I couldn't find help in mmc HTML Help. However, now I see what's happening and I can give you a solution to my own question.
Cause
If I connect to the computer as a user with administrator privileges, I am able to use the event viewer to create a custom view filter that can be used by all users who have access to the event viewer. If I fix remove a view filter custom Console tree, I can't delete it unless I'm logged in as the user who created it.
Solution
- Log the computer as the user who created the custom view.
- Start Event Viewer
- Use the right-click of the mouse on a custom view filter selected in the Console tree, open the drop down menu.
- Delete appears fourth in the bottom of the menu if and only if you are logged on as the user who created this view.
- Select Remove to remove the filter to custom view.
If Delete does not appear in the drop-down menu, then it may not possible you connect as the user who created the custom view.
-
When I had previously had iPhoto open "iCloud" appears under "Sharing" and I was able to click on it to bring up the photos that I had shared and also those that others have shared with me. "iCloud" is so more from the list; How can I get that back?
What version of iPhoto do you use? Have you turned on iCloud for another application, for example. Photos? That will disable in iPhoto.
Check if iCloud is always enabled in iPhoto in iPhoto > Preferences > tab iCloud.
-
How can I automatically go to a tab after an event?
Gumby question here... I'm just starting to work with tabs.
I have a tab of a number is the "Start Up" tab Whenever the user clicks on the little white 'Start', I want the program to automatically display the 'Start Up' tab. The user then selects the different communication ports, etc.. When you have finished configuring things, the user clicks a button 'Start Test'. At this point, I want to display the "Main screen" tab instead of the "Start Up" tab How can I do this?
See attached vi with dummy tabs that show the buttons I want on the tabs I want.
Thank you!
Create a node property for the tab control. Set the property "Value" on the desired tab. After creating the property node, create a constant for the value property. This is a list of your tabs.
Note: When you add or remove tabs of the control you need to cross and recreate the constant. It is not automatically updated.
-
How can I determine whether to use a structure of event or case?
I'm starting a major project and need a state machine. I can't decide whether to use a case or event structure. Y at - it an article or any other information that describes the selection criteria between the two approaches?
Thank you
Chuck
Normally a state machine is implemented with a box structure. It is possible to apply it with a structure of the event, but it's not the way I would go. I think that the two items that you really want to read are:
Maybe you are looking for
-
Used Firefox (and Xmarks) for many years without problem.Since the upgrade to the latest version of Firefox, I can't create new bookmarks. When I have a Web page 'star', it does not appear in the folder of Unsorted Bookmarks OR at the bottom of my li
-
Connect my Soundbar to TV with hdmi
Hi I just bought a Toshiba 40L5453D smart TV and also a Toshiba PA5075E-2SPA mini soudbar and sub wireless. Have all two HDMI ports, but it seems that my TV has only HDMI in and not out... There is no option on the sound to pass, so I am currently us
-
IPod 6th generation. Download the milder dishes of iTunes by Apple. failure why he isrestoring
-
How can I check my purchase history?
So I believe that my 10 year old son has been buying things on my iPad or on its own just by using his account. I want to see that if there - I can't get out of it. SO, how look my history in-app purchase because he spends a lot of time on applicatio
-
When I connect my camera (Panasonic TZ5) to my PC. The AutoPlay dialog box does not appear. Help please