On Mon, Apr 5, 2010 at 11:31 AM, HeHe <[email protected]> wrote: > OR, i should not run a debug build on a real device and hope map api > works...
You seem to think that there is a difference between a debug build and a release build, when there isn't. The code itself is always the same, whether you use "Run" or "Debug" in Eclipse, or whether your compile with Ant with the "debug" or "release" target. Even if you export a release package from Eclipse, the code is still the same. What changes are: - debuggable=true in the manifest. What this does is make the application accept debugger connection. It's not needed in the emulator because the emulator has a "debug" build (devices, unlike applications, do have debug/release builds) and those let applications accept debuggers always. On production devices (release builds) they do not (for security reason) so you need to explicitly tell the system that your app is debuggable. - Run/Debug session from Eclipse means only that, in Debug mode, a debugger is automatically connected to the application for you. Everything else, including the way the application is started on the device is the same. - Exporting a release application from Eclipse (or building with the "release" target of Ant) only signs the application differently, using your own certificate (that you must create to ship your app). This requires you to manually enter your password, which is cumbersome for successive debugging, so instead the application is signed with a certificate that's automatically created with a known password (so that you are not prompted for it every time you compile, which is everytime you save a file in Eclipse) Hope that clears (some) things up. Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

