Re: [android-developers] IPC Mechanism in android

2011-03-29 Thread Dianne Hackborn
Good lord, please don't run a big piece of C++ code as root. We designed things to have very very little code running as root, to keep the exploit surface area small. Also we strongly strongly discourage people from writing their apps with such a structure, where they for a separate process. The

Re: [android-developers] IPC Mechanism in android

2011-03-29 Thread Bob Kerns
That works if you start the native program from the Java program. It doesn't work if it needs to run independently. I like Frank's approach. Generally, minimizing the amount of C++ code in an application will make things better. In fact, I would argue you never want to make a native C++ applica

Re: [android-developers] IPC Mechanism in android

2011-03-29 Thread Kostya Vasilyev
You can just read the native program's standard output. Take a look at Java Process class. 29.03.2011 6:20 пользователь "arvind" написал: > Hi All, > > I have an NDK application(written in C++) packaged as an executable > and deployed in android. I also have a Java apk file in the > application la

[android-developers] IPC Mechanism in android

2011-03-28 Thread arvind
Hi All, I have an NDK application(written in C++) packaged as an executable and deployed in android. I also have a Java apk file in the application layer. Now my NDK app does some processing and outputs a string of data in the format "name = value". Basically the output from NDK looks like this: n