Time for action – testing a simple stack on devices

Now, let's try running our tests on physical devices. Get your USB cables ready and connect the devices to your computer.

Lets go through the steps for an Android device first:

  1. You should still have Android selected in Standalone Application Settings.
  2. Get your device to its home screen past the initial Lock screen if there is one.
  3. Choose Development/Test Target and select your Android device. It may well say "Android" and a very long number.
  4. Choose Development/Test.
  5. The stack should now be running on your Android device.

Now, we'll go through the steps to test a simple stack on an iOS device:

  1. If you have not read Chapter 7, Deploying to Your Device, on how to deploy the current environment to your device or the Apple pages or have not installed certificates and provisioning files, you will have to skip this test for now.
  2. Change the Standalone Application Settings back to iOS.
  3. Under Basic Application Settings of the iOS settings is a Profile drop-down menu of the provisioning files that you have installed. Choose one that is configured for the device you are going to test.
  4. Close the dialog box and choose Save as Standalone Application… from the File menu.
  5. In Finder, locate the folder that was just created and open it to reveal the app file itself. As we didn't give the stack a sensible name, it will be named Untitled 1.
  6. Open Xcode, which is in the Developer folder you installed earlier, in the Applications subfolder.
  7. In the Xcode folder, choose Devices from the Window menu if it isn't already selected.
  8. You should see your device listed. Select it and if you see a button labeled Use for Development, click on that button.
  9. Drag the app file straight from the Finder menu to your device in the Devices window. You should see a green circle with a + sign. You can also click on the + sign below Installed Apps and locate your app file in the Finder window. You can also replace or delete an installed app from this window.
  10. You can now open the app on your iOS device!

What just happened?

In addition to getting a test stack to work on real devices, we also saw how easy it is, once it's all configured, to test a stack, straight on an Android device. If you are developing an app that is to be deployed on both Android and iOS, you may find that the fastest way to work is to test with the iOS Simulator for iOS tests, but for this, you need to test directly on an Android device instead of using the Android SDK virtual devices.

Have a go hero – Nook

Until recently, the Android support for the Nook Color from Barnes & Noble wasn't good enough to install LiveCode apps. It seems to have improved though and could well be another worthwhile app store for you to target.

Investigate about the sign up process, download their SDK, and so on. With any luck, some of the processes that you've learned while signing up for the other stores will also apply to the Nook store. You can start the signing up process at

https://nookdeveloper.barnesandnoble.com.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset