I am using verticalfield manager to load data and browserfield to load url but both are in the same screen.
I am just swapping both as per my need using replace(field1,field2). But when i am trying to load url on bwoserfield, it can not load the url.
Anyone know how to resolve an issue.
Related
My app shows an information page loaded from amazon s3 (a public html file). An user is experiencing this when using 3G data connection:
when loading this page, an advertising banner is being loaded over the official html code or the web view redirects to another web page.
How could this happen?
What is the proper way to prevent this unwanted situation?
I am working on an application in which i need to download a PDF file, from a url.
After download I have to open that PDF file for user but as i dnt have any default app for PDF, i working to open that PDF file in browser as google doc with its url.
"http://docs.google.com/gview?embedded=true&url=" + pdfURL
where pdfURL is the url of PDF on server.
Problem: When ever I open the browser with the help of below code:
BrowserSession myBrowser = Browser.getDefaultSession();
myBrowser.displayPage("http://www.stackoverflow.com");
But the result is as shown in the image:
The data loading task stops at 28k always and same this picture appears in every case for every url.
Please help me in doing this task. Whats the actual problem with my code?
This is my source :
public MyScreen() {
// Set the displayed title of the screen
setTitle("MyTitle");
// URL of video file about 200KB size
String url = "http://a1408.g.akamai.net/5/1408/1388/2005110405/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_mpeg4.mp4";
BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage(url);
browserSession.showBrowser();
}
When I changed another URL of video file -- URL = "http://myServer/test.mp4" (this file about 2M size ) so my Apps can not run video file... It has one error popup appear on my screen. This is error content :
The item you selected can not displayed. Do you want to save or cancel?
Why appear this error . I think file size is reason of this error( may be##)...
If you know that. please help me...
I need to your support ##
Your specified url "http://a1408.g.akamai.net/5/1408/1388/2005110405/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_mpeg4.mp4"
is not working in mozilla also for streaming
Understand some process for browser
when you provide request to server it will give reply according to your user agent and request
if the reply content is supported by browser then it will display no problem.
if browser not support that content then it will offer us to "save"
you can save that item then you can open.
for example blackberry browser does not support .pdf files till now. so if you request to open any pdf file in browser it wont open. that browser offer us to save
same this way some of the contents not supported by browser
I am using stageWebView for showing webpage in my mobile app but don't know how to move back to my app once it gets loaded. In application descriptor file, I had already registered custom uri scheme (myapp://) for IOS devices and from the loaded page inside stageWebView, I was trying to call following URL myapp://webcam. But nothing had happened. It neither called LOCATION_CHANGE event of StageWebView not called INVOKE_EVENT of nativeapplication.
How can I fix this issue?
Thanks in advance,
Mamta
Custom URIs don't work in StageWebView (adobe help page)
Instead of a custom URI, use a hash tag and listen for Event.COMPLETE events on the StageWebView.
Webcam
instead of
Webcam
You'll get a Event.COMPLETE event when they click the link and can then check the StageWebView.location for a location hash.
how to open default blackberry browser when click on browserfield.
i am trying load a html page on browserfield when i click on opened browser page that time i want to open blackberry default browser.
BrowserField browser = new BrowserField();
MyBrowserFieldListener listener = new MyBrowserFieldListener();
browser.addListener(listener);
MainScreen screen = new MainScreen();
screen.add(browser);
pushScreen(screen);
browser.requestContent(url);
i use this code it works but it also load in browserfield i dont want to load on browserfied
It is always easier to answer questions when they have some information on what you are trying to accomplish. Like jprofitt I'm confused about what you want to happen. However, it is a bit of a kluge but you could:
in MyBrowserFieldListener detect that a link has been clicked when documentLoaded is called;
get the URL from the BrowserField with getDocumentUrl();
Launch the default browser with that URL;
If you want the BrowserField to remain on the original page call requestContent() or back().