CST2641 Mobile App Development
Windows Notes
Chrome needs special permissions when using Ripple to access files locally. Target: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files (OS X users, see the me for a script that I wrote for the Mac) C:\Users\abenusa\workspace>echo %PATH% Note: There are two separate tools directories for the sdk. Make sure both are in the path. C:\sdk\platform-tools; C:\sdk\tools; phonegap local run --emulator=emulator-5554 android Problem: emulator will not start and install compiled program. Key: This example will assume that the name of your project is "hello". Go to your project directory and into platforms\android\cordova\lib. C:\Users\abenusa\workspace\hello\platforms\android\cordova\lib> API_18_Nexus_4_by_Google C:\Users\abenusa\workspace\hello\platforms\android\cordova\lib> Starting emulator : API_18_Nexus_4_by_Google At this point the phone emulator will have started and will just be sitting on the home screen idle. C:\Users\abenusa\workspace\hello\platforms\android\cordova\lib> emulator-5554 device C:\Users\abenusa\workspace\hello\platforms\android\cordova\lib> C:\Users\abenusa\workspace\hello> [phonegap] compiling Android... At this point the app will have loaded onto the phone emulator and will be running. You won't get a command prompt back until you exit the emulator. C:\Users\abenusa\workspace\hello> It appears that once you have done these steps one time, in the future you will only have to do: phonegap local run android --emulator=emulator-5554
|