displayPage anomalies

I'm new to the Blackberry with Java development. I'm doing something pretty simple, I think, but of course, it didn't turn out well.

First, the code:

import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.blackberry.api.browser.Browser;

class Quickie extends net.rim.device.api.ui.UiApplication {

    public static void main(String[] args) {
           Quickie instance = new Quickie();
           instance.enterEventDispatcher();
    }
    public Quickie() {

        BrowserSession visit = Browser.getDefaultSession();

        visit.displayPage("http://sample.com/sample.html");
    }
}

I use v5.0 JDE Blackberry Curve with v4.5.

  • On the phone, I click on the application. It opens the page. Great! I click Close on the menu. Browser closes. It seems good. I return to the application and click on it, the phone hangs. Do nothing until I push the red button on the end.
  • Turn the phone power with end button, click application, in turn screen white and stays white until I push the end button.
  • Do a battery pull, and then click application. Browser and the page load, but the option close on the menu screen freezes phone for a few minutes and then the screen turns white.

The only thing I can do to make it work a second time is to use the uninstall and reinstall Desktop Manager.

Shouldn't I do something in the code to manage the closure of the browser? None of the examples I saw nothing going on.

Help, please.

Hard to tell exactly what's going wrong here, but here are some observations:

In fact, you invoke the browser before entering the event dispatcher. Monitor the code and you'll see what I mean.

You have a UI application with no screen. Your user interface application is responsible for the painting of the display, but you do not.

There is no way for your program or get out by program.

My advice: start with the HelloWorld application, add a button to invoke the browser. In this way, the brower will be called in the event thread and will return to your main screen when the browser is closed.

Tags: BlackBerry Developers

Similar Questions

  • Anomalies of programming in the C:\ drive and to the registry files?

    The system I am writing on the subject is on an Acer Aspire 5050-3785 computer laptop with Windows Vista Home Premium SP2.
    I have two annoying problems that may be related.
    One: Empty folders are created programmatically in the C:\ folder with the folder names of the form "_xxxxxx_", where folder names consist of a character to underscore as prefix and suffix, with 6 digital numbers in the middle.   These records all network service as owner, with special permissions inherited from C:\ to Traverse folder/execute the file; List folder/read data; Read attributes; Read extended attributes Create files/write data; Creation of files/add data; and read permissions.  Permissions are shown to apply to folders only.  What kind of program could create these folders?
    Two: Another question, that might be related, is the presence of Oriental characters in the prefix of many names of readers in the registry and some references the program command?  Many of these bodies are in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EMDMgmt.  My language setting is for English only.
    Can someone please explain these anomalies and may offer suggestions for the procedure?  Thank you.

    Whatever the program creates files is a program in execution, so the best way to know is to stop running programs and the figure on which we did.

    Run the command MSCONFIG and uncheck all programs on the Startup tab.  Reboot and see if it persists.  If not, add a program or two until you find the cause.

    EMDMgmt is a ReadyBoost service.  This page has some details and said that "EMD" stands for 'external memory device'.

  • Android 2.2 Bug & Anomalies

    Hello

    Someone had to start this...

    I read the 2.2 upgrade materials and find no mention of bugs, anomalies or the following devices:

    Home screens is no longer turning.  Screen auto-rotation of images is checked.  This behavior started right after the download.  Once I open an application, the automatic rotation of images works OK.  More weird, auto-rotation works when the Droid is moored.

    Although the value of the timeout never when docked, new 'feature' of floating-date & time screen saver turns on after a minute.  The screen saver is mentioned in documents of upgrade for the settings of the clock; but it does not specify how to turn it off.  So far, no applications other than the clock seem to generate a screen saver.  Why have the setting stay awake if a screen saver overrides to it?

    A minimum of six applications are constantly running.  These aren't necessarily the apps I never ran.  If I close some, new applications of pop-up.  I am aware of Task Killer.  This is a new behavior.  It's as if 2.2 push as much apps run in the background as he can.

    Prolonged pressure on host to display the recently used applications is not consistent.  Sometimes, he does not use latest apps, but instead brings in an application that has never served during this period.

    It seems that I forced firmer on some applications (Aloqa)

    I should add that I'm really happy of the update, esp, the bluetooth features and warranty and can't wait for Flash 10.1.

    Please feel free to offer suggestions or add your own questions...

    My wife & I have the Moto Droid and the home screen never turned on each phone, my wife is updated to 2.2 yesterday (I do not have) his own still does not turn.

  • Call the native browser blackberry OS6 does not work when you use this line Browser.getDefaultSession () .displayPage (url);

    Hello

    I need to invode a native browser showing a Web site using the code below

    Browser.getDefaultSession () .displayPage (url);

    She works in OS5, but does not work for the OS6. Please, someone knows how to solve this problem, too much to guide me

    regards + thank you

    codemobiles.com

    Oh, thanks for your response. (the browser is not called, there is nothing happen)

    Hoowever, the problem is resolved. That's my problem forget to add the "http://" in the url.

    regards + thank you

  • Anomalies of a virtual machine "not yet calculated.

    First of all, I read the other thread which asked this same question, but the answer he does not apply to my situation.

    I'm under VCOPs 5.8.1 in a test environment. To test VCOPs behavior that I put in place 5 scenarios that exercise the CPU using a freeware tool called HeavyLoad. All scenarios are different, but repeat their behaviour on not more than a weekly pattern. For example, scenario 1 works the CPU at a constant 25% and 2 peaks - a 75% the Mar of 5-23:00 and on Friday from 8-12 a.m.. example no. 5 running the CPU at 100% for 3 minutes and then stop for 3 minutes and it repeats continuously.  The scnearios began to run at the beginning of August, while they all worked for 2 months. There is no other application on the servers and no users connect.  It shows the spikes, etc., as well as anomalies and that makes sense howerver all 5 have not established "Normal" for anomalies. Interestingly, when you look at the dynamic thresholds, it "knows", for example, that Friday, 8-12 has a greater use because the dynamic threshold has increased.

    Supossedly VCOPs teaches what 'normal' anomalies and then can tell you when you have something that is the true anomaly. I want to test is once the anomalies have established 'normal', I want to add an extra pick and who should be able to there's a new anomaly. Basically, I want to prove that he can correctly identify and draw attention to the real anomalies. Anyone have any ideas?

    Anomalies and dynamic thresholds are closely related. Dynamic thresholds are the thresholds that are learned after 7 days and establish the slices tighter to the thread of what follows if or 4 weeks. When a measured value falls outside this dynamic threshold, it becomes a fault alarm. If a value falls under this dynamic threshold, it is not an anomaly. If your recurring data (at any particular time, it is important only if it is a vC model Ops may correspond to an algorithm to wait/predict it) who became a dynamic threshold will not be considered an anomaly. However, if you have measured values which produces ad hoc or irregular, this will probably double pop up like an anomaly alarm.

    If you want to test anomalies... Just do a value (metric) do not enter the dynamic threshold (indicated by a gray band on a chart). vC Ops he'll call.

  • Siri anomalies;

    Hello

    A few days ago, I used Siri to identify a song by shazam but suddenly became crazy by starting the player of music without reason and without that I asked!

    I asked of saying me that the song was!

    This will be a bug?

    Siri is good but not perfect, he probably misunderstood your request. Happens to me. If it happens again try a forced reboot. Hold down the Home and Sleep/Wake buttons at the same time for about 15 seconds, until the Apple logo appears.

  • Z10 Z10 Hub Configuration Anomalies Blackberry BlackBerry?

    This is my second attempt to post this one!   I noticed a few minor quirks with the BB10 hub:

    1. I had assumed (never assume!) that the configuration of the hub on the Advanced menu (settings > Hub Management) would completely exclude some messages to appear in message hub for example lists. in my case, Facebook.  Checking messages excluded then would lead goes to the source application from time to time.  «It turns out that this is not the case: exclusion seems to mean not appearing is not in the display of the icon/County that appears on the screen of 'rest' BB10»

    2. assuming that my #1 is correct, there seems to be a minor bug in this 'exclusive' behavior - I tried to delete everything except my primary e-mail source but 'Twitter' stubbornly refuses to leave.  Twitter is still there after inviting back and asking to leave again and tent the 5 shot hub reset.

    Not a big deal to me but maybe clarification or fixing at some point would be good.

    I think I finally got this - deactivation in hub management filter messages from mailboxes selected in the main screen, but only to the point in time where we change the config (historic messages always appear probably because they are cached in this way on the phone).  The number of messages on the screen to 'rest' seems to be for each configured the application regardless of the filtering screen.  I checked with tests.

    My problem with twitter seems to be a Twitter issue and not a problem of BB10 - even if I delete Twitter messages in my BB10 they re - appear soon after.  Maybe, I need to understand Twitter a little better!

    In any case I'm OK for now and thanks for the help.

  • Punching of Anomalies

    Hello

    I now of paintings

    TBL1: WORKTIMINGS

    This table stores daily worktimeing of employees.

    ----------------------------------------------------------------------------

    EMPID STARTTIME ENDTIME

    ---------------------------------------------------------------------------

    TBL2:OVERTIME

    ----------------------------------------------------------------------

    EMPID OTFRM OTTO

    -------------------------------------------------------------------

    TBL3:SETTINGS

    -------------------------------------------------------

    PRESHIFTMINS POSTSHIFTMINS

    --------------------------------------------------------

    TBL4:PUNCH

    -----------------------------------------------------

    EMPID INPUNCH OUTPUNCH

    -------------------------------------------

    There is only one line in the table above.

    Suppose that preshiftmins = 30 and postshiftmins = 60

    This means, the employee can punch 30 minutes before

    his shift starts and that the employee is allowed to punch in the 60 minutes after his shift.


    The same rule applies to overtime. That is to say

    the employee can punch 30 minutes before

    his additional starts and that the employee is allowed to punch in the 60 minutes after overtime.

    I need a punching based on the above rule exception report.

    Here an exception is if overtime begin in the 60s (according to the table of parameters) minutes after his shift.

    the employee can continue up to the end of overtime.

    For example:

    worktimings for employee 1

    21/01/2014 08:00 to 16:00 21/01/2014

    Overtime for the same day is 21/01/2014 16:30 to 18:30 21/01/2014

    So to this day, all the punches between 21/01/2014 07:30 and 19:30 01/21/2014 are valid.

    For example: 2

    ====

    worktimings for employee 1

    21/01/2014 08:00 to 16:00 21/01/2014

    Overtime for the same day is 21/01/2014 18:30 to 21/01/2014 23:30

    So to this day, all the punches between 21/01/2014 07:30 and 17:00 21/01/2014 are valid.

    also punches between 21/01/2014, 00:30, 18:00-22/01/2014 are valid.

    I need a report to know the invalid punches.

    For example:

    =======

    In the following example 2 punches are not valid.

    21/01/2014 06:00 to 12:00 21/01/2014

    21/01/2014 12:30 to 21/01/2014 23:30

    I use oracle 10g

    examples of data

    ============

    create the table settings (select 1 empid, 30 preshiftmins, 60 double postshiftmins);

    create additional table as hours

    (select 1 empid, to_date (21 January 2014 16:30 ',' mm/dd/yyyy hh24 ') otfrm, to_date (21 January 2014 23:30 ',' mm/dd/yyyy hh24 ') double otto)

    );

    create the table worktimings as

    (select 1 empid, to_date (21 January 2014 08:00 ',' dd/mm/yyyy hh24 ') starttime, to_date (21 January 2014 16:00 ',' dd/mm/yyyy hh24 ') double endtime)

    Union of all the

    Select 1 empid, to_date (22 January 2014 00:00 ',' dd/mm/yyyy hh24 '), to_date (22 January 2014 08:00 ',' dd/mm/yyyy hh24 ') of double

    Union of all the

    Select 2 empid, to_date (21 January 2014 08:00 ',' dd/mm/yyyy hh24 '), to_date (21 January 2014 16:00 ',' dd/mm/yyyy hh24 ') of double

    );

    create table like punches

    (select 1 empid, to_date (21 January 2014 08:00 ',' dd/mm/yyyy hh24 ') inpunch, to_date (22 January 2014 08:00 ',' dd/mm/yyyy hh24 ') outpunch the double)

    Union of all the

    Select 2 empid, to_date (21 January 2014 08:00 ',' dd/mm/yyyy hh24 '), to_date (January 22, 2014 12:00 ',' dd/mm/yyyy hh24 ') of double

    Union of all the

    Select 2 empid, to_date (21 January 2014 00:00 ',' dd/mm/yyyy hh24 '), to_date (22 January 2014 18:00 ',' dd/mm/yyyy hh24 ') of double

    );

    Here, the output would be

    EMPID INPUNCH OUTPUNCH

    2 21/01/2014 00:00 21/01/2014-18:00

    Help, please

    Hello

    Krishna Devi Vinayaka says:

    On this basis, I arrived without authorisation periods IE. space between each retailer periods.

    Then I select all the inpunches and the punches that straddles these unauthorized periods.

    Here, while getting the next start time, there are two questions.

    (1) next launch may be less at the present time end

    (2) if there is no other record next departure is null.i this case, I select payroll enddate IE. 20/02/2014.

    ...

    I think you are taking the wrong approach.  You try to identify the periods not allowed as the gaps between the authorized periods and then see if punch took place in a non-authorised period.  It seems that it would be easier to find the punches that didn't take place during authorized periods, which is what I did in response #1 two weeks ago, and you said which produces erroneous results anyway.  If I understand the problem now, not only must the in-punch out - Punch of each line in certain authorized period, the two hallmarks of this line must be in the same period allowed, where a 'permitted period' is 1 or more lines of the worktimings tables and/or overtime which overlap, or at least have not a gap between them.  This is what the query in response #10.  The column new_shift (calculated in the subquery called got_new_shift) identifies if a work period begins a period authorized or not, seeking at all times of previous work via the analytical MAX function).  If all of these earlier periods ended before the beginning of the current, then (and only then) it starts a new period authorized.  The following subquery, got_shift_num, uses the analytical ACCOUNT works to see how many authorized periods have started to date, indicating which authorized period each work period belongs.  Once we know, we can use the functions MIN and MAX of aggregation for a fine when each authorized period begins and ends.  This is what the movement of subquery combined.

  • Update of Lightroom CC 2015.5 brings an odd excerpt and publishes anomalies

    When go to comprehensive overview he travels 2 views of incorrect exposure before the right.  When I change with the adjustment brush, each line brings a weird distracting Flash of the shadow.  This update seems to have bugs.  That is what it is?

    Re flashing using the adjustment brush, try to uncheck the option preferences > performance > use the graphics processor.

  • I have pictures of underground anomalies reflection profiles, I want to put a measure of scale along to the and the side of the image. How I do that in a picture?

    I'm thinking GPR profiles which must have the scale placed along the top and side of the image borders.  I need to crop the image, given that the existing software has its own scale that I can't use.  I need to place the image on a neutral background cultivated have space to add text, such as the direction of the movement, magnetic north, information. Im going to try to * a copy of the image that I have for example.  Although I want to learn how photoshop works I need to get this out of the way.  You will also need to understand how to assemble the images since some reflection profiles are longer than what can show the soft ware GPR.

    CRC Day 2 pipe Calibration.jpg

    I would create a shape layer that contains your ranges. I make a separate scale for each side and have the scale longer that you need so you can use it with different images. Before you crop or resize, I bring in leaders and their reference of scale scale that you ever image before cropping. Then put the scales in a dynamic object and the harvest, ensuring that you remove cropped audited pixels. This will be crop your original image, but areas of scales that fall outside the area of culture will not be deleted, because they are in Society. Once crop you, if the image is a background image, change it to a normal layer by clicking on the lock icon in the layer panel. Now you can use the size of the canvas to add the amount of the borders you want around your image. You can create a United below your main image fill adjustment layer and choose what color you want the background to be. Then, you can move your scales where they should be. Use a mask for the scales if they are too long. Most of this can be implemented in action so that you don't have to manually do each step. The scales are fairly easy to do using the line shape tool. Just create a single line and duplicate many times you need divisions in your balance. One of the fixed lines at the beginning of the scale and the other at the end of the scale and select the layer with the line and use the distribution with the move tool function to space out the lines. Transform a part of the major subdivision to longer lines and add text. Here is an example of a scale, I did for my work:

  • T500 Intel Graphics Anomalies with a side of BlueTooth

    Greetings,

    I have my system set up to use the graphics card Intel integrated (internal value in the bios to save energy) and I following graphics problems.  I use the latest version of bios and driver of Lenovo, display provided by ThinkVantage System Update.  Details of the pilots are in below directx Diagnostics.  I tried to install the latest Intel graphics driver of site Web of Intel for this chipset, but it says my system is not supported (maybe something to do with ATI Hybrid graphics card).

    This does not work in OpenSUSE 11.2 (even with the Gnome 3D desktop), but it does in Windows x 64 with Aero.  It occurs usually after watching the SlingBox or an instant view of NetFlix, but it occurred in the past without these activities.

    It did not appear when using the ATI graphics card (dedicated in bios set), at least of the limited amount that I did use.

    Model: 20828zu

    Diagnosis of DirectX (full system / card driver):

    http://home.Comcast.NET/~quako33/Misc/Dxdiag.txt

    Screenshots of the problem:

    http://home.Comcast.NET/~quako33/images/gpu_problem1.PNG

    http://home.Comcast.NET/~quako33/images/gpu_problem3.PNG

    Any ideas on how to solve this problem without having to switch to the ATI graphics card will be appreciated.

    Finally... the question bluetooth... sequences of keys to turn off only the bluetooth?  When I hit fn + f5, it disables the wifi and bluetooth.  A way to disable in OpenSUSE 11.2 Gnome (as I can in Windows) would achieve the same goal.

    Thank you

    This is a bug in the drivers. If you have 2 + 1 or 2 + 4 GB memory RAM, what will happen. Have you tried to disable Aero? This could help. What I understand the only way to solve this problem is to buy another 2 GB module (2 + 2 GB), or wait that a new graphics driver is released.

    What about the Bluetooth.

    Make sure you have installed Lenovo Hotkey (if you've run Lenovo system update you probably installed).

    Navigate to "C:\Program Files\Lenovo\HOTKEY" and open "TpFnF5.exe" and click on the 'Fn + F5 settings' button.

    I confess that I have really not had you the Fn + F5 problems in Windows or OpenSUSE, but the behavior of Fn + F5 on Ubuntu 9.10 is:

    Toggle WIFI/BT/OFF (Fn + F5 press once: Wlan BT off / press and second time: BT off, Wlan marche/troisieme time: BT on off Wlan / press and once: BT and WiFi on)

    If this is of any help to you.

  • SQL Dev anomalies

    SQL Dev 3.2.20.09
    Windows 7 Pro.

    I just installad SQL Dev on desktop of the current user and discovered a number of things

    (1) - tables and the views of folders in the navigation pane return anything. If the same user connects with sqlplus and selects ALL_TABLES and ALL_VIEWS, he gets the desired result.

    (2) - well, now I'm going to lose my mind... I'll let you point #2 for later.

    Tables and views are filtered by the user to logon.

    ALL_TABLES and ALL_VIEWS show each view and the table in the database.

    You will need to navigate to the bottom of the connection to the 'Other users' node tree, develop and pull up your objects by schema/owner/user.

    Point #2 - what is normal :)

  • vSphere HW and Anomalies upgrade tools

    I just did an upgrade on our virtual machines to version 7 of material and the latest tools. I started getting errors that our DHCP scope has completed. I checked and he distributed the IP addresses of our vm servers. All assigned them statically IP addresses. I've erased all records of DHCP, but anyone no matter what ides why this would happen? That create hidden NIC or something? And it will continue to happen?

    Thank you

    Scott

    Apparently the HW upgrade actually replaces the NIC - leaving the old 'sort out' - see the pdf of vmproteau

    http://communities.VMware.com/message/1445012

    So I guess that could be related to where your dhcp leases were origin - or perhaps as some intermediate stage of the upgrade dhcp leases were awarded before the static addresses replace them?

    Jordan

  • ESX 3.5 u4 update anomalies?

    I installed the host ESX 3.5 153857 as an update and the new facility. Updating older versions from 3,5 up to 1-3 seem to go well and watch as before. I recently installed a new copy of update 4 and noticed that the Service Console no longer appears as the old configurations and makes me fear that I missed a step somewhere.

    On upgrades from older versions of update of the Service Console network looks like befor with the Tag Service Console Port Connection Type and designation of vswif0 for the IP address, but on a new install of update 4 that the Service Console looks exactly like a regular port group?  In the updates properties VSwitch0 - Service Console - IP settings show upwards, but not in the new facility.

    I can always communicate with Virtual Console but all my efforts to recreate the Console port group does not resemble earlier versions.

    Any suggestions? Update 4 change the way in which groups of special ports appear? Any help is deeply appreciated.

    When installing make sure that its the right NETWORK card port to use for the SC shows (where your network cable is connected).

  • Scaling on the rendering of the anomalies that are not appearing in the timeline

    Hello
    Just prepare a direct employment to customer preview tomorrow and AE threw me a curve ball.

    I have an object able to evolve from about 200% 70% about and it changes position at the same time. On a lower layer there are a blur value of the camera that is changing. So nothing too taxing, I got thing. When I render - scaling the object appears at the top and bottom and seems twinkle big and small for some images. I tried to make it again, but more or less the same thing is happening.

    No idea what this could be - someone met before?

    Purge the cache using the edition > Purge of orders. Also purge the cache to disk.

    Make sure that you have installed the latest updates ( http://adobe.ly/lsrkmJ ). They solve many problems.

Maybe you are looking for

  • Upgrading memory on a Satellite Pro S300

    Hello I have a S300 with 3 GB of RAM and want to switch to 4 GB. There are two memory cards into the machine, both with 4 chips. What should I do to increase capacity? I guess I will need to replace the two cards with a pair of 2 GB cards. Thank you

  • Import static library Wizard labview 64 pointer size is 32

    I have labview 2009 sp1 64-bit on a 64-bit with windows vista64 bit computer.  I use the Import Wizard to the shared library on a dll 64 bit with the header file provided. I noticed that the header file shows some functions like the passage empty *. 

  • How to install the software pre-installed on dm1-4118au?

    I have a pavilion dm1-4118au that comes with windows 7starter kit. I upgraded the memory to 4 GB and installed windows 7 ultimate. How can I install the software pre-installed?

  • Extreme delays with W7 operations

    Suddenly my Windows 7 system has experienced long delays with any action, even search for the Explorer.  No suspicious activity appears in Task Manager.  What is a process that has the long timeout when an operation is attempted? Such a process would

  • Why are my .pdf files continue to open in Microsoft Reader after I had Adobe Reader by default?

    Windows 8. Even after uninstalling the Microsoft Reader .pdf files open in it! I got Adobe Reader by default but in vain. No choices appear in the metropolitan area as to what app, I want to use to open the PDF. Can you help me?