Emulators and Simulators

From NSB App Studio
Jump to navigation Jump to search

== Emulators and Simulators

Android - Windows

Download the Android SDK (22 megs) http://developer.android.com/sdk/index.html You will get a zip file. Unzip it someplace handy - I put it in \Program Files. Make sure you get Version 2.1 or later.

In the Tools folder, add administrator privileges to emulator.exe. This will allow the emulator to connect to the web.

Run "Android.bat" in the Tools folder.

The Android SDK & AVD Manager will appear. In the left column of this window, click the Available Packages button. Now you will be able to download the repository, which will provide you with more download options.

Open up the list, and choose the SDK Platform you want: probably something like "SDK Platform Android 2.2, API 8,..." Choose Install Selected. It will download the SDK.

Go to the left column and select Virtual Devices.

There should be one selection: something like Android 22. Select it, and click the Start button, then Launch in the window that pops up. The emulator will appear.

To run an NS Basic/App Studio app, start the browser and enter the URL.

To install an apk app (not needed for NS Basic/App Studio apps), execute this from the Windows cmd window:

 cd c:\program files\android\android-sdk-windows\tools
 adb install [path to your app].apk

BlackBerry - Windows

Download the Simulator you want here (approx 160 megs) http://us.blackberry.com/developers/resources/simulators.jsp. Make sure you get BBOS 6.0 or later. You�ll need to fill in some information about yourself.

Install it.

Start the Simulator from the Start Menu. It�s under Research in Motion.

Web connections work without any further settings.

To install an app, use the option in the File menu.


iOS - Mac only.

Find the iOS SDK on this page and download. http://developer.apple.com/devcenter/ios/index.action Registration will be required.

It will be called something like "Xcode 3.2.5 and iOS SDK 4.2 GM seed". Almost 4 gigs.

Install it.

Run this program: /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app

Web connections work without any further settings.

You can switch from iPhone to iPad using using the Hardware tab on the top menu. Installing app directly: Normally, apps are installed after XCode does its compile, which requires the source. To install directly, do an XCode install, then find out what files were installed. Copy just those files to the same directory on another system�s Simulator and it will work.