[android-developers] Re: Default display unit px or dp?

2009-10-12 Thread Romain Guy
The Java APIs work only with pixels. Your app is probably running in compatibility mode. On Mon, Oct 12, 2009 at 12:20 PM, Markus markus.wiederk...@gmail.com wrote: I always thought the default display unit would be pixels. But when I run my application on WVGA800 in the emulator the lines

[android-developers] Re: Default display unit px or dp?

2009-10-12 Thread Markus
Specifying android:minSdkVersion=4 in the android manifest did the trick. Thanks, Markus On Oct 12, 11:19 pm, Romain Guy romain...@google.com wrote: The Java APIs work only with pixels. Your app is probably running in compatibility mode. On Mon, Oct 12, 2009 at 12:20 PM, Markus