Results 1 to 1 of 1
  1. rmbwebs's Avatar
    Posts
    129 Posts
    Global Posts
    145 Global Posts
       #1  
    Does anyone know a way to detect if the program is running on the emulator?
    I am developing an app that uses the GPS, but a call to the GPS service on the emulator will always trigger the onFailure callback. It would be nice to write a run-around that checks if we are on the emulator, and then just feed a fake set of coordinates to the onSuccess callback.

    Edit: Disregard. Apparently I need to check the error codes. The reason I wasn't getting coordinates back was because I hadn't accepted the terms under location services. Once I did that, the Emulator started feeding fake coordinates to the onSuccess callback function.
    Last edited by rmbwebs; 07/28/2009 at 07:58 AM.

Posting Permissions