BlackBerry emulator not connecting to internet

2019-02-14 03:18发布

问题:

My BB emulator cannot connect to the internet. I'm behind a proxy and have entered the following in my rimpublic.property under the [HTTP HANDLER] heading.

application.handler.http.proxyEnabled = true
application.handler.http.proxyHost=PROXY_NAME
application.handler.http.proxyPort=PROXY_PORT
application.handler.http.proxyUser=PROXY_USER
application.handler.http.proxyPass=PROXY_PASSWORD

I have BB JDE 5.0.0 installed. I am able to successfully start the MDS service and do get the screen to stay open but do not see any errors. I've read every question on SO regarding similar issues but nothing works. Also, I am starting the MDS service before booting my emulator. If it helps, I'm using the emulator 5.0.0.545 (9700).

Thank you.

回答1:

If its the standalone MDS server you may be running into an issue with them not talking to each other. I found it far easier to just adjust the configuration of the MDS server that can launch with the phone, and selecting the run option through launch configurations.

You can find the MDS server at the following location:

{Eclipse Dir.}\plugins\net.rim.ejde.componentpack[version-number]\components\MDS\config

Alter the rimpublic.property file that you changed before with the correct values.

Then in Eclipse go to your run configurations.

Right Click > Run As > Run Configurations

Click the 'Simulator' tab for your Blackberry Simulator run configuration, and check the "Launch Mobile Data System Connection Service (MDS-CS) with simulator" box.

When you run, all should be well.


Also important to note, that this is only for the browser interacting with sites. If your trying to access a site using an app, I believe you need to pass the appropriate proxy headers yourself, through the app. There is a url property that is supposed to use the MDS when searching urls, but it didn't work for me when I tried it.



回答2:

What exactly did you do to check the internet connection on the emulator ? Open the browser in the emulator and try to open any website ? Or something else ?