[android-developers] Simply touching screen reduces fps

2009-08-10 Thread sahn0
Yes, it is. Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO, let it run for a while. You will get something around 20ms / 50 fps. Now run it second time, and simply touch screen while test is running. You will get something around 35ms / 29 fps. So it is 15 ms difference. As I

[android-developers] Getting source under Windows (from web interface).

2008-10-22 Thread sahn0
As we all know, Google released Android's source today. But you can't get source if you are Windows user. Luckily, there is a web interface (http://git.source.android.com), which allows you to browse all files. So I wrote very simple program that parses htmls, collects links and downloads files.

[android-developers] Re: Bitmap on sdcard decodestream

2008-09-30 Thread sahn0
Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it... I created a sdcard and inside it I placed

[android-developers] drawLine is broken

2008-09-11 Thread sahn0
Consider two ways to draw a rectangle: //- int x=10; int y=10; int w=2; int h=2; canvas.drawRect(x,y,x+w,y+h,p); // (1) float[] lines=new float[]{ x,y,x+w,y, x+w,y,x+w,y+h, x+w,y+h,x,y+h, x,y+h,x,y };

[android-developers] How float coordinates are mapped to pixels (rounded)?

2008-09-11 Thread sahn0
How exactly float coordinates are mapped to pixels (provided that there is no transformation)? I guess they are rounded in a good old fashion way: (int) (floatCoordiate+0.5f). Am I correct? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: drawLine is broken

2008-09-11 Thread sahn0
Yes, p is Paint object set up as follows: Paint p=new Paint(); p.setColor(0xFF80); p.setStyle(Paint.Style.STROKE); Style.STROKE is needed for drawRect to actually draw rect, issue with right-bottom pixel shows itself independently of Style. On 11 сент, 19:48, Mike Reed [EMAIL PROTECTED]

[android-developers] Scaling 9-patch drawable *down*

2008-09-09 Thread sahn0
It seems that nine-patch behaves wierdly when scaled down. I created button and specified it to be 20x20 pixels. Button drawable is 44x48 and has 2x2 stretchable area. Downscaling produced weird results. In fact, the result didn't seem to be the result of scaling at all. It looked like result of

[android-developers] Re: Scaling 9-patch drawable *down*

2008-09-09 Thread sahn0
, Sep 9, 2008 at 10:15 AM, sahn0 [EMAIL PROTECTED] wrote: It seems that nine-patch behaves wierdly when scaled down. I created button and specified it to be 20x20 pixels. Button drawable is 44x48 and has 2x2 stretchable area. Downscaling produced weird results. In fact, the result didn't seem

[android-developers] Can't specify resources for different dpi

2008-08-26 Thread sahn0
It seems that in 0.9 SDK it is impossible to specify drawables (and other resources) for different pixel density. With image.png both in drawable and drawable-96dpi I get ERROR Resource entry image is already defined.. Is this a known bug? --~--~-~--~~~---~--~~