[android-developers] Re: ZipFile

2010-01-10 Thread Timothy F
ZipInputStream is easy to use, as is getting an InputStream from either Apache's or Java's HTTP request/response classes. Just keep calling getNextEntry until you find the entry you are looking for (or null if you reach the end), then use the read method to read in the data associated with that

[android-developers] Re: Texture compression

2009-12-28 Thread Timothy F
I would always encourage use of the common features, so as to maximize compatibility across devices, so I'd recommend your using GL_OES_compressed_paletted_texture. Also, while GL_OES_draw_texture is fast, if you need to render many sprites, then using this extension you'd need multiple calls to

[android-developers] Re: Avoiding garbage collection for smooth 2d animations

2009-12-28 Thread Timothy F
You can tell very easily in LogCat whether the GCs belong to your task or another task. If they belong to another task, then at least you can take consolation that Android 1.6 (I think?) gives less CPU to background tasks. If they belong to your own task, then you should run the DDMS tool (not

[android-developers] Re: How can i fill an outlined font?

2009-12-07 Thread Timothy F
We wrote a drop-in replacement for TextView called TypeFaceTextView (http://code.google.com/p/skylight1/source/browse/trunk/SkylightGame/ src/net/nycjava/skylight1/view/TypeFaceTextView.java). You can use it in your layout XMLs wherever you would use TextView, and it automatically puts a black

[android-developers] Re: High performance access on static data: What is your approach?

2009-11-30 Thread Timothy F
A combination of res/raw and java.nio.channels.FileChannel.map() are likely to give you the best performance. If you know your maximum record size, then using get on the Buffer into a byte array, b, then wrapping that in a new DataInputStream(new ByteArrayInputStrea(b)) will make it easy to read.

[android-developers] Re: Encrypting in PHP and Decrypting in Android

2009-11-23 Thread Timothy F
Get a really strong cup of coffee and check out http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html. Use CipherInputStream/OutputStream for encrypting. Not so sure on the PHP side, but http://www.devx.com/webdev/Article/37821 will help you out. On Nov 23, 1:13 pm,

[android-developers] Re: Why is GL_QUADS not supported ?

2009-11-16 Thread Timothy F
You can use them in OpenGL, just not in OpenGL ES::o) Seriously though... given any four points there is no guarantee that they are co-planar, and I believe that no-coplanar quads introduce all sorts of complexities when interpolating colours, textures, and even positions in 3D space. By

[android-developers] data in onPictureTaken always null for raw picture

2009-09-14 Thread Timothy F
I'm attempting to obtain raw picture data from the camera. According to the Javadocs it can be obtained via the callback passed to camera.takePicture(null, callback, null). However, the array passed to the callback is always null. I've checked permissions, examined the logcat, registered a

[android-developers] Re: data in onPictureTaken always null for raw picture

2009-09-14 Thread Timothy F
I can't believe I was unable to find that thread in my searches! Thanks for the prompt answer, even though it is a disappointment of course. On Sep 14, 8:45 am, Mark Murphy mmur...@commonsware.com wrote: Timothy F wrote: I'm attempting to obtain raw picture data from the camera.  According

[android-developers] Re: How to read in a large array of chars, quickly?

2009-09-03 Thread Timothy F
Firstly, I can't help but wonder why you need all of the characters in memory at once. On a constrained device I'd rather stream the characters and process them that way. What do you plan to do with this data that requires it all be in memory at once? However, if you truly need to, then tell

[android-developers] Re: there are only five animations for android? how can i extend this feature

2009-09-02 Thread Timothy F
The animations don't do anything to the bitmap, per se. For every tick of the animation, the method getTransformation is called on each Animation so that it can return a Transformation that describes an affine transformation and an alpha value. If you want to do more than those two things you

[android-developers] Re: ADC2 Challenge - Is this allowed?

2009-08-27 Thread Timothy F
I believe from the very beginning it was stated publicly that it was for apps that had not previously been published. I was fearing that they would not allow the entered apps to be published until after ADC2, so the fact that they are allowing them to be published even before ADC2 begins is good

[android-developers] Re: CameraPreview: Out of memory

2009-06-21 Thread Timothy F
Are you calling the release method on the camera? On Jun 21, 5:10 am, Shirish ashir...@gmail.com wrote: If you put the system.gc() every place then your system performance will degrade. On Jun 17, 8:32 pm, Sahil Arora sahilz...@gmail.com wrote: Hi, I had an application where i would

[android-developers] Re: vertice coodinates of Kube

2009-06-18 Thread Timothy F
I haven't used it yet, but look at: http://developer.android.com/reference/android/opengl/GLU.html#gluUnProject(float,%20float,%20float,%20float[],%20int,%20float[],%20int,%20int[],%20int,%20float[],%20int) I think that may help you. On Jun 18, 4:21 am, quill quill...@163.com wrote: Thank you

[android-developers] Re: How to know it's week when input random date?

2009-05-19 Thread Timothy F
Have a look at java.util.Calendar, and its subclasses. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe