[android-developers] Re: Vector

2011-08-24 Thread blake
Chris is right, that gets rid of the error, but I bet it is not what bob is trying to accomplish. Chris' solution will create a Java array of 9 Vectors. I have a couple of suggestions, here: 1) Don't ever use Vectors. They are historical cruft. Use List and ArrayList 2) Don't mix generics and

[android-developers] Re: Vector

2011-08-24 Thread Chris
I agree, a List is a lot better than Vector, but what bob was looking for was a number (9) of Vectors capable of holding numerous Articles. If it were my code, I'd use a ListListArticle to do this so I could have numerous Lists holding numerous Articles. Your code only has one List holding

[android-developers] Re: Vector

2011-08-24 Thread Lew Bloch
+1 to blake's comments. A couple more points, inline: blake wrote: Chris is right, that gets rid of the error, but I bet it is not what bob is trying to accomplish. Chris' solution will create a Java array of 9 Vectors. I have a couple of suggestions, here: 1) Don't ever use Vectors.

[android-developers] Re: Vector

2011-08-24 Thread Chris
On Wednesday, August 24, 2011 1:19:58 PM UTC-4, Lew Bloch wrote: +1 to blake's comments. A couple more points, inline: Chris wrote: articles = new VectorArticle[9]; try articles = (VectorArticle[]) new Vector[9]; Again, neither of these is legal. You can get around it with

[android-developers] Re: Vector

2011-08-23 Thread Chris
articles = new VectorArticle[9]; try articles = (VectorArticle[]) new Vector[9]; - C -- 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 from this group,

[android-developers] Re: Vector Graphics Rendering - Mechanisms

2010-07-24 Thread Robert Green
I'd consider just writing an svg importer and then rendering using opengl in line mode. On Jul 23, 11:09 pm, Eric erics...@gmail.com wrote: inkscape has a command line svg renderer I just bet you could find a way to use that code in your process to render in-memory.  (Say to render straight

Re: [android-developers] Re: Vector Graphics Rendering - Mechanisms

2010-07-24 Thread Anton Persson
There is this library: http://code.google.com/p/svg4mobile/ I haven't tried that but it seems to be directly written for Android, which is good.. Then there is my port of libsvg.. libsvg-android. https://launchpad.net/libsvg-android I only ported libsvg-android since I couldn't find anything

[android-developers] Re: Vector Graphics Rendering - Mechanisms

2010-07-23 Thread Eric
inkscape has a command line svg renderer I just bet you could find a way to use that code in your process to render in-memory. (Say to render straight into the video buffer) But honestly this is mobile platform still even in 2010 you ought to prerender for performance's sake. On Jul 23, 8:33