[android-developers] Re: STL android

2011-06-18 Thread hectordu...@yahoo.com
"me doy el lapo!" difficult decition, but i have decided to port everything to java and get advantage of the android technology :-( i have realized that both, java and SQlite afford all the functionality i have been working with STL, and in the short time i can use all the pissibilities that

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
yeah! i need to pass a pointer to a STL structure which is updated by each user interaction :-( I also have readen about NativeActivity but it also needs JNI in some way ... and passing the STL structures will be a requirement, yet. I only can package data into an own streaming if there is a secon

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
yeah! i need to pass a pointer to a STL structure which is updated by each user interaction :-( I also have readen about NativeActivity but it also needs JNI in some way ... and passing the STL structures will be a requirement, yet. I only can package data into an own streaming if there is a secon

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
yeah! i need to pass a pointer to a STL structure which is updated by each user interaction :-( I also have readen about NativeActivity but it also needs JNI in some way ... and passing the STL structures will be a requirement, yet. I only can package data into an own streaming if there is a secon

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
yeah! i need to pass a pointer to a STL structure which is updated by each user interaction :-( I also have readen about NativeActivity but it also needs JNI in some way ... and passing the STL structures will be a requirement, yet. I only can package data into an own streaming if there is a secon

[android-developers] Re: STL android

2011-06-17 Thread RichardC
I don't pass any STL structures across JNI, I pack/unpack just the data I need in to basic types or arrays of basic types, doing my own simple streaming as required. My application is a board game with the next move calculator in C++ and the UI (and game state) in Java, so there is not much to tra

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
hey Richard, thanks for helping ... in fact, i have installed SDK-NDK, read the CPLUSPLUS-SUPPORT.html doc, and preparing to compile my C++ STL stuff, but what i really am afraid is of JNI. There are interfaces depending of the filed's types, and i dont realize how to pass STL structures or pointe

Re: [android-developers] Re: STL android

2011-06-16 Thread Kristopher Micinski
The only thing I see is that the framework is entirely different. I used to think that putting huge "lumps" of c++ and interfacing through the ndk might be feasible, but if you've got a large batch of c++ code that *doesn't* need the niceties of the Android SDK, what is it doing? I've found that

[android-developers] Re: STL android

2011-06-16 Thread RichardC
Hi, I have a big "lump" of STL code that is building sucessfully using the latest release of the Android-ndk (r5c). It just need a few tweaks. It is called from Java via JNI as needed. I sugguest you download the NDK: http://developer.android.com/sdk/ndk/index.html and read the docs specificall

Re: [android-developers] Re: STL android

2011-06-16 Thread Kristopher Micinski
Java has a standard library that makes use of a constrained parametric polymorphism in the form of "generics." You can see tons of examples, List, Set, etc... This is pretty basic Java stuff, if you can write in C++, learning and using Java should be easy. Kris On Thu, Jun 16, 2011 at 3:51 PM,

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
kris, what is the java equivalent to stl (c++) ? i agree, if easy, i would prefere to port it :-(...and to avooid JNI... On Jun 16, 2:28 pm, Kristopher Micinski wrote: > Unfortunately if you're doing heavy computing, it might *not* make sense. >  This is typically the quickest way to kill the

Re: [android-developers] Re: STL android

2011-06-16 Thread Kristopher Micinski
Unfortunately if you're doing heavy computing, it might *not* make sense. This is typically the quickest way to kill the battery, and your application probably is not structured to fit the android specifics. (For example, what happens if your app is killed after running for a while? This doesn't

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
hello Kris, thanks for answering. Well ... in my case it makes sense :-( but i don want to go into functionality details. Fact is that i have a c/c++(STL) application which makes some computations :-( and i need it to communicate in any way with a java-androide aplication which will be the UI: one