i have write a custom view and i used the onSizeChanged() to take the width and height of the phone.when everything seems right in the emulator i installed on the phone(htc desire) and i don't have the same results!
what can i do to support different screens than one?onSizeChanged shouldn't give me the solution?
You have to take care of the pixel density and the number of pixels.
Everything is here : http://developer.android.com/guide/practices/screens_support.html