12-01-2010 12:59 AM
Hi,
I have implemented sample browser application and deployed in my tablet emulator, but whatever the url i give, it is not connecting, the error it is giving is
The Following error was encountered while trying to retrieve the url http://www.google.com unable to determine ip address from the host name "google.com" Name Error : The domain name does not exist.
My VM settings are :
NetWork Adapter Bridged
Device status connected (checked)
Connected at power on (checked)
Network connection
Bridged Connection directly to the physical network
Replicate physical network (checked)
Can anyone help me on this ?
12-02-2010 01:31 AM
i feel bad that no responses from anyone,
this is the application i have followed
http://www.petefreitag.com/item/770.cfm,
Please let me know if anyone have developed the above mentioned application and made it success.
Please respond.
12-02-2010 01:54 AM
12-02-2010 02:59 AM
ok so i've been working on it for a little bit. i've got some weird findings. first i copied and pasted the code in Flash Builder Burriot (4.5). I ran the debug it went to the dicated page "http://foundeo.com" and i could click through all the pages. But i could not edit the TextInput field at all. The keyboard application would pop up but it wouldnt take any inputs. So then i went back to the code and i manually typed in "http://google.com" and it gave me weird debug errors just by changing one bit of text. And then i did some other editing and undoing and the errors were gone. Assuming this was burrito acting up I went to the Flash Builder 4.0.1 install and tested out the code and i pasted the code ran the debug and same thing. could not edit the textinput field. so then i went back to the code and did the whole editing and putting in google.com instead and same errors as the burrito builder. i dont know whats going on. anyway so i edited did some undos and redos and saved and the erros mysteriously vanished. again i dont know whats going on. this time it would let me leave google.com hardcoded in. finally i ran the code and google.com showed up no problem. but even then the textinput would not take any inputs at all but i could browse through the links on the page.
so my conclusion is either the new SDK is really buggy or i need a restart or something on my computer. the page loads up fine if i hard code the address in but again i could not access the TextInput field so i couldnt go to any custom pages. ill try again tomorrow but for now try changing the http://foundeo.com text in the code to google.com instead and see if you can load the page.
the QNXStageWebView is really buggy from what i've read and i wouldnt be surprised if thats whats causing all the errors. so for now try hardcoding it in and see what happens. Here is the working code for google.com. Good luck!
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.geom.Rectangle;
import flash.text.TextField;
import qnx.media.QNXStageWebView;
import qnx.ui.buttons.LabelButton;
import qnx.ui.text.TextInput;
// The following metadata specifies the size and properties of the canvas that
// this application should occupy on the BlackBerry PlayBook screen.
[SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
public class PlaybookTest extends Sprite
{
private var addressInput:TextInput;
private var webView:QNXStageWebView;
public function PlaybookTest()
{
addressInput = new TextInput();
addressInput.x = 10;
addressInput.y = 10;
addressInput.enabled = true;
var goButton:LabelButton = new LabelButton();
goButton.label = "Go";
goButton.x = addressInput.width + 10;
goButton.y = addressInput.y;
goButton.addEventListener(MouseEvent.CLICK, go);
var closeButton:LabelButton = new LabelButton();
closeButton.label = "Close";
closeButton.addEventListener(MouseEvent.CLICK, closeWindow);
closeButton.x = (stage.stageWidth - closeButton.width) - 10;
closeButton.y = 10;
webView = new QNXStageWebView();
webView.stage= stage;
webView.autoFit=true;
webView.viewPort = new Rectangle(10,100,stage.stageWidth,stage.stageHeigh t-100);
webView.enableCookies = true;
webView.enableJavascript = true;
webView.enableScrolling = true;
webView.loadURL("http://google.com");
addChild(addressInput);
addChild(goButton);
addChild(closeButton);
stage.nativeWindow.visible = true;
}
private function closeWindow(event:MouseEvent):void{
stage.nativeWindow.close();
}
private function go(event:MouseEvent):void {
webView.loadURL(addressInput.text);
}
}
}
12-02-2010 04:32 AM
Thanks for the reply,
I have copied your code and run my application, the same thing was happend to me.
Unable to determine IP address from host name " google.com "
Can you let me know your VM settings for Network Adapter ? any firewall/proxy problem for me ?
12-03-2010 06:27 AM - edited 12-03-2010 06:28 AM
hey ramesh,
here is a screenshot of my vmware network settings:
let me know if you see any differences. good luck!
Edit: My current machine and screen shot is from a Mac. The windows one should have the same options just a different look. My windows machine is down and cant check its settings.
12-03-2010 01:26 PM
I'm having the same problem running on Windows XP
It must be a router / firewall problem
Any help appreciated.
Brian.
The Following error was encountered while trying to retrieve the url http://www.google.com
unable to determine ip address from the host name "google.com"
Name Error : The domain name does not exist.