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
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
+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.
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
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,
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
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
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
8 matches
Mail list logo