Specifying android:minSdkVersion="4" in the android manifest did the trick.
Thanks, Markus On Oct 12, 11:19 pm, Romain Guy <[email protected]> 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 <[email protected]> wrote: > > > I always thought the default display unit would be pixels. > > > But when I run my application on WVGA800 in the emulator the lines are > > five pixels wide even though I called Paint.setStrokeWidth(3). The > > same seems to happen with Drawable.setBounds(); the value I provide > > gets multiplied by 1.5 internally. > > > If that's the case, how can I specify pixels instead of dips if I want > > pixels? > > > Can someone clarify this? > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

