[android-developers] Re: How can I determine if app is running on the emulator or a device.

2008-04-03 Thread Digit
the ro.qemu properly is defined when running in the emulator, and not the
device.

however, be *very* cautious about making different code path for emulator
and device cases. this is generally not a good idea (and since no devices
are available, you device-specific code is never going to run as you may
expect it, and not get tested properly)

On Wed, Apr 2, 2008 at 5:27 PM, Brendan [EMAIL PROTECTED] wrote:



 Is there someway in code to tell if an application is running on the
 emulator, on the device. I can't see how it coul dbe checked. Maybe
 there is something in SystemProperties? If not, it would be a useful
 extra flag to have available in a future version of the SDK.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can I determine if app is running on the emulator or a device.

2008-04-02 Thread Agus

from the dalvik debug monitor
run ddms.exe in android_home/lib/tools directory


On Wed, Apr 2, 2008 at 11:27 AM, Brendan [EMAIL PROTECTED] wrote:


  Is there someway in code to tell if an application is running on the
  emulator, on the device. I can't see how it coul dbe checked. Maybe
  there is something in SystemProperties? If not, it would be a useful
  extra flag to have available in a future version of the SDK.
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can I determine if app is running on the emulator or a device.

2008-04-02 Thread Agus

correction:
android_home/lib/ddms.bat

On Wed, Apr 2, 2008 at 12:49 PM, Agus [EMAIL PROTECTED] wrote:
 from the dalvik debug monitor
  run ddms.exe in android_home/lib/tools directory




  On Wed, Apr 2, 2008 at 11:27 AM, Brendan [EMAIL PROTECTED] wrote:
  
  
Is there someway in code to tell if an application is running on the
emulator, on the device. I can't see how it coul dbe checked. Maybe
there is something in SystemProperties? If not, it would be a useful
extra flag to have available in a future version of the SDK.
  
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---