[android-developers] Measuring/drawing text on a scaled Canvas

2011-10-12 Thread noriato
Hi, I've been struggling with text measuring and scaled canvases. When the canvas is unscaled, getTextBounds and measureText deliver accurate results. However, when the canvas is scaled both methods do not deliver results that match the actual size of a printed text. For testing I've created a s

[android-developers] Incorrect size for views with mm or inch dimensions

2011-06-22 Thread noriato
I've got a button having a layout_height of 10mm which looks correct on most devices, but on for instance the Lg Optimus 2X and on the Motorola Defy the buttons have about half the size: I retrieved the DisplayMetrics info on those devices and here's a short overview: HTC Desire Z: 480x800,

[android-developers] GL_INVALID_OPERATION (1282) after glDrawElements using Vertex Buffer Objects (VBO)

2011-03-14 Thread noriato
Hi, I'm working on a game using VBO for model rendering. Everything works fine, except when I lose context and reload all the models and textures I get a GL_INVALID_OPERATION error after calling glDrawElements with my VBO. Actually I have to lose context two times. Restoring after the first time wo

[android-developers] how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?

2010-11-06 Thread noriato
Hi, so there's the multitouch issue with the Nexus One and HTC Desire. Is there some documentation on what other devices have this hardware error and what the total market share is? If you had a game idea that needs massive multitouch gestures, would you go for it on Android or would it currently

[android-developers] Re: OpenGL ES 2D and 3D mixed graphics?

2010-10-29 Thread noriato
well you can create an orthoview with the dimensions of the screen. ie glOrtho(0,0,320,480,0,20); then you can use pixel coords to draw your stuff.. it would be non perspective though. Peter On 29 Okt., 04:40, Matt Quigley wrote: > I'm making a 2D game, with sprites drawn using the glDrawTexfOES

[android-developers] Re: HTC Incredible reboot when downloading massive files.

2010-10-24 Thread noriato
I had a (maybe) similar error when downloading a lot of files with each being around 1-5MB of size. I was filling a ByteArrayBuffer with bytes read from a BufferedInputStream of the http connection. This lead of a OutOfMemory error after a couple of files on some devices. I assume the gc wasn't fre

[android-developers] Re: LVL found to be easy to crack

2010-10-22 Thread noriato
So then the check for the checksum could be removed... same problem. Peter On 22 Okt., 07:50, Jose wrote: > I think that an easy way to tamper-proof apk would be: > > 1) Android Market computes a checksum for the apk when the apk is > uploaded > 2) In the License Response (eg. in one extra), Andr

[android-developers] Re: Internal Phone Storage Size

2010-10-15 Thread noriato
start an emulator on the command line like this: emulator -partition-size -avd emulator.exe can be found in the tools folder. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-09 Thread noriato
Hi, i also have the suspicion that the carriers filter out certain apps based on the requested permission. I have a app that requests permission for RECORD_AUDIO, and since i use admob i also need INTERNET and ACCESS_COARSE_LOCATION. And with request for RECORD_AUDIO permission i can't see my app