Use something like this:
private static boolean runningOnEmulator() {
return android.os.Build.MODEL.equals("sdk");
}
On Feb 7, 8:14 pm, "paul zazzarino" <[email protected]>
wrote:
> Is there a way to dynamically query from source code if you are in the
> emulator vs a real device ?
>
> if (IsEmulator())
> DoCodeForEmulator()
> else
> DoCodeForAnyRealDevice()
--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients
--
You received this message because you are subscribed to the Google Groups
"Android Discuss" 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-discuss?hl=en.