new development of BB. Try to build an application that opens a Web page. Error on BrowserField
Hello
I'm new to the development of BB. I am trying to create a container application that will open a Web page that is hosted on the internet.
Grabbing the BrowserPushDemo, here is where I am:
/*
* AWAPP.java
*/
Net.rim.device.api.browser.field2 import. *;
Net.rim.device.api.system import. *;
Net.rim.device.api.ui import. *;
Net.rim.device.api.ui.container import. *;
SerializableAttribute public class AWAPP extends UiApplication
{
Public Shared Sub main (String [] args)
{
BrowserField app = new BrowserField();
app.enterEventDispatcher ();
}
Public Sub BrowserField()
{
pushScreen (new BrowserFieldScreen());
}
}
class BrowserFieldScreen extends screen
{
public BrowserFieldScreen()
{
BrowserField myBrowserField = new BrowserField();
Add (myBrowserField);
myBrowserField.requestContent ("http://www.google.com");
}
}
I am getting an error on the "app.enterEventDispatcher ()"; on the point...
ERROR:
Thus you use? The code is as follows:
import net.rim.device.api.browser.field2.BrowserField; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.container.MainScreen; public class AWAPP extends UiApplication { public static void main(String[] args) { AWAPP app = new AWAPP(); app.enterEventDispatcher(); } public AWAPP() { pushScreen(new BrowserFieldScreen()); } } class BrowserFieldScreen extends MainScreen { public BrowserFieldScreen() { BrowserField myBrowserField = new BrowserField(); add(myBrowserField); myBrowserField.requestContent("http://www.google.com"); } }
Tags: BlackBerry Developers
Similar Questions
-
Can I build an application using an existing Web of Muse?
Can I build an application using an existing Web of Muse?
Muse is not build applications, so I don't know what you are asking. The rest is between you and any application development tool / SDK you are using.
Mylenium
-
Building an application that uses all local program or library files
I need to build an application that will not use any local or program files LabView libraries (although LabView is installed on the PC). I am also curious to know if anyone knows if there is a way to debug such a request (that he compiled state).
Any help on these matters would be greatly appreciated.
Hello
I'm not clear on what you're trying to accomplish here. As the previous poster mentioned, if you enable debugging when you build your application, you can remotely connect and probe the block diagram of the executable running. Executables using the runtime engine, but could also access the driver or other time if you use a specialized tools/module box. All this depends on your application.
-Zach
-
I downloaded the Adobe Premiere Pro CS6 product for free trail. Now, there is one last month, when I try click on 'buy now' cannot display the web page. What is the problem? The trail is over?
Hello
Contact please contact customer service
Kind regards
Gag
-
Building an application that works 24 / 7
Hi, I'm new to BB development and have the following question. I appreciate if you can send me links to code examples that help me solve the question below.
Can I build an application using JDE 4.7.0 where it can run when starting the device, then it checks every 4 hours (draws a server for content) content and have the application runs 24 / 7 where the application can NOT be terminated by the user.
If you see a problem in the battery life if the application runs 24-7, pull the content from one server every 4 hours, or is it possible to have a timer to wake up the application every 4 hours.
What you ask, it's certainly possible and for a developer experienced BB, not so difficult.
I wouldn't worry about the impact of battery life of what you're trying to do. It will be not significant.
You will probably hit problems in the following areas:
restart a) making sure that the application starts correctly, after both a soft and hard
(b) the connection to the server using generic code that works in most situations.
(c) decide how to inform the user and/or get feedback from the user, as you run in a background Thread.
These are all covered in the discussions on this Forum or KB articles. However, I don't think that there is place to direct you to the these right now. You need to start coding in Blackberry, just do stuff from the UI simple, until you are familiar with your development environment and the capabilities of the device. Once you have there, then search in this forum and KB, and then after specific questions if you want.
When start don't forget to look at the Sticky Thread:
http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=13264
-
Error when you try to run an application that worked when built with 8.6
I have a simple program that I wrote in the 8.6 version that I've never had a problem generation and execution of applications built with it to 8.6. Two weeks ago, I got 2009 by mail because we had very recently purchased 8.6 and I get errors when you try to run an application built with the same code using 2009. The error relates to the Mean.vi. He claims that he can't find it. The error I get is as follows:
Error loading VI 'NI_AALBase.lvlib:Mean.vi '. LabVIEW support 3 error code: could not load façade. I don't have access to the front panel of this vi, so I wonder if there is a problem with the runtime and not my code. Please answer as soon as possible because it will quickly start to the impact of my calendar. Thank you.
Hello!
The same problem ?
I talked with my local OR technical support team. The application now works without any problem.
Rule of thumb: when creating a Setup program do not forget that the option "Run Time Engine xxxx" in the category "Other installers" is selected despite the fact that the runtime is already installed.
Best regards.
-
File - > new menu has a long list of old applications that I want to delete but can't
File-> new folder menu has a long list of old applications that I want to delete but can't.
You may have downloaded a screenshot, but you forgot to include a link. No one can see your files unless you share and give a link.
Regardless, the solution to your problem is here--> http://windowsxp.mvps.org/shellnew.htm
-
When I click on a link in an e-mail or a web page, instead of opening a new tab my pc opens a new window, how can I fix this please?
Open Options Internet Explorer and click on settings under 'Tabs' near the bottom of the window. In the section 'Open links from other programs' tick next to "a new tab in the current window. Who should take care of it for you.
SC Tom
-
Hello, I have successfully downloaded creative cloud and from there downloaded HAVE but when I try to open it all that happens is that a Web page opens with three tutorials. The program itself does not open.
Any help would be appreciated.
Thank you very much.
Sarah
If it is not on your desktop, check your c: / / program files/adobe/directory to a subdirectory of adobe illustrator.
-
Try to build the application, the screw startup list is empty
Hi all
I am following the directions on this page:
http://zone.NI.com/reference/en-XX/help/371361G-01/lvhowto/building_a_stand_alone_app/But somehow, when I get to Statup screw selection stage, the list is empty and cannot add the VI I intend to use it. Why is this happening? What step am I missing?
Isaac,
The first step in the help file you cite says «Open the LabVIEW project...» ». You have your VI within a LabVIEW project? If you want help with your Build, it would be useful to look at the project. The best way to proceed is to implement the project (and all the screws, you wrote that belong to the project) within a Windows folder, compress the file (at one. Zip file) and fix it. Zip file.
Bob Schor
-
When I get off the fall from the address window, rather than display the URL of the Web site I want to open in a second tab says "switch to the tab '. But I don't want to move to the tab - I want to open a second tab on the same URL. If I want to open it a second time, I have to manually enter the address. Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu? I was always able to do this with the previous versions of Firefox.
"Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu?
You can install this add-on: https://addons.mozilla.org/en-US/firefox/addon/switch-to-tab-no-more/
If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You must update some plug-ins:
- Plugin check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in: install (or update) the Shockwave with Firefox plugin
- Next-generation Java plug-in for the Mozilla browser: install or update Java in Firefox
-
Firefox keep me, redirect after I try to open a Web page that I found in 'finding '.
Locked due to age. If you still have a problem, please start a new thread
After doing a search, I click on suggested sites. It will start to load, and then will redirect me to another site that usually has nothing to do with original research.
This has happened
Don't know how many times
== a few days ago
One of your modules could be the culprit too. Try running Firefox in questions to troubleshoot Firefox in Safe Mode with all disabled add-ons. If that solves the problem, see Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems and possibly troubleshoot issues with plugins like Flash or Java to solve common Firefox problems
Also your problem can be caused by Malware. You can run and update according to free anti-virus software:
1. Malwarebytes (free version) - http://www.malwarebytes.org
2. Spybot Search & Destroy - http://www.safer-networking.org
3. Spyware Terminator - http://www.spywareterminator.com
In addition, there are a number of forums, you can use to help get rid you of your infection. It is:
-
When I click the icon "more" to open a new tab appears again my homepage. It displays a page of Web sites recently or frequently used in a format of screenshot showing the home page of the Web site that I could then click on and this website would be the load. Recently, Yahoo had an overlay on its splash screen that asked if I wanted it to be my default search engine. Without thinking, I clicked it and that seemed to change the way my home pages loaded on startup and how clicking on a tab is no longer produced the results I'm looking for as described above. I have since fixed the problem of the homepage so that it now loads properly when Firefox starts.
Help, please. I would just go back to what I had when I clicked open a new tab. If anyone needs more information or clarification I will provide willingly. Thank you very much.One of your modules corresponds to this number, for example, the version 3.18, or sounds associated with "hp" in some way? You can copy and paste a list of your extensions in a response by selecting the Extensions from the list on the next page with the mouse, then using Ctrl + c or right click > copy. Either:
- button "3-bar" menu > "?" button > troubleshooting information
- (menu bar) Help > troubleshooting information
- type or paste everything: in the address bar and press Enter
When you paste, it's a little messy, but we are used to it.
-
I have just recently started to get a sound strange, something this show every time I opened then switch to this new tab, it does not occur with each tab, how can I stop this
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.
- Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
- Do NOT click on the reset button on the startup window Mode safe
-
I see no longer images on some Internet sites. When I downloaded the new flash, all sites had no image on any website. Yahoo came with just writing. I changed the encoding of characters at Universal and now Yahoo has images but Facebook load with none, just a white screen. Videos YouTube don't play, either
Clear the Cache and Cookies
Clear the Cache of the network
Troubleshooting extensions and themes
Check and tell if its working.
Maybe you are looking for
-
want to set up my Canon MX439 to my PC unit
Please help me in setting up MX439 printer to print from my PC
-
Why is - each program with which I try to open asking me what program I want to open it.
Why is - each program with which I try to open asking me what program I want to open it. He just started asking me one day when he didn't have the day before, but if I make a shortcut that I can open the program, well to do anything said program need
-
Play continuously Window Movie Maker Project
Once I finished a project and has published, how to automatically continue to play the same movie over and over again. I used this instead of power for a birthday imgages point.
-
I did computer format many times... now I'm having this problem... built-in webcam does not appear in Device Manager and its does not work even if I install webcam software... but there is webcam option in the BIOS, but I am unable to use my webcam.
-
Smartphones BBM blackBerry question
Hi all one of my friends just bought her 1 Blackberry and wants to know she needs a data plan to use the BBM service? Concerning David