BlackBerry Simulator Configuration Options

Leave a comment


Recently I wanted to configure couple of things in BlackBerry simulator.  To configure the BlackBerry simulator settings typically you need to look for a file called rimpublic.property. Typically this file resides under the eclipse plug-in directory (if you use eclipse IDE for BlackBerry development) but if you have BlackBerry JDE installed it might be located under that. Anyway just search for this file and once found, do the following.

1) Enable internet connection via proxy

Under [HTTP HANDLER] section, do the following changes

[HTTP HANDLER]

.

.

.

application.handler.http.proxyEnabled = true

application.handler.http.proxyHost=your_proxy_ip_address or your_proxy_name

application.handler.http.proxyPort=your_proxy_port_number

2) Change the MDS listening port

Under [WebServer] section, do the following changes, changing sslport is not needed, anyway for consistency sake, change it

[WebServer]

.

.

.

WebServer.listen.port=new_port_number_that_is_not_already_in_use

WebServer.listen.sslport= new_port_number_that_is_not_already_in_use

 

3.Edit run.bat file:

The run.bat file is in this path – Research In Motion/Blackberry Email and MDS services Simulator 4.1.2/MDS/..

Edit this file and replace !BMDS_CLASSPATH!;!BMDS_CLASSPATH2! with %BMDS_CLASSPATH%;%BMDS_CLASSPATH2%

Also, you need to run that batch file as an administrator.


Enabling Internet Connection Through Proxy in Android in Windows

Leave a comment


Steps for Android 1.5

Following content is referenced from

http://www.coderanch.com/t/462906/Android/Mobile/connect-internet-behind-proxy

In the earlier versions of Android emulators (up to version 1.1r2), you were required to make an entry in the system table of“com.android.provider.setting.db” database and/or start the emulator with –http-proxy switch supplying it the IP address and port number of your proxy.

These methods however, have become obsolete and don’t work with SDKv1.5.
Step 1: On emulator, go to:
Home->Menu->Settings->WirelessControls->MobileNetworks->Access Point Names->T-mobile US->set Proxy IP and Port#

Step 2: Now the next time you go to a web address, the browser will prompt for your user-id and password. Enter your credentials and you should be good to go.

Reference: http://groups.google.com/group/android-beginners/b…d4f948c4ed622#5ced4f948c4ed622” target=”_new” rel=”nofollow”>

Steps for Android 2.2

1) Create an emulator with name say android_2.2_emulator using AVD manager in eclipse.

2) Create a batch file (.bat) with following command and a keep a handy shortcut.

emulator -avd “android_2.2_emulator” -http-proxy “your_proxy_url”:”port”

3) Run the batch file before starting the eclipse IDE, so that the emulator session will have internet connection.

That’s it.