I would suggest that you simply split you java part .. into Part a) native part + JNI -Java-Part running with system permissions
and Part b) normal Java-App Between b und a use intents. IMHO this is the easiest way. The others used by the platform are sockets and aidl ( and system variables ). To use aidl for a native app will not be easiert, as how far as I know their is no aidl compiler for native apps. Good luck ! Frank On 27 Mrz., 02:43, arvind <[email protected]> wrote: > 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: > name1 = value1 > name2 = value2... Now i want each of these name value pairs to be > passed to java application one by one. Currently i am writing the > output from NDK to a file in sdcard and the java app reads from the > file. But i want to use an IPC mechanism which is devoid of explicit > file writing and reading and instead use something like sending and > listening to a socket. I am not sure what is the best way of passing > message between native code and java. Also i am not using JNI > interface as i have some issue with root permissions as the C++ Native > code runs as root userid and Java apk runs in application level and i > can't combine both of them. Please give me suggestions on how to > perform IPC between native code and java apk. I am using android > developer phone 1 as the device. > > Thanks, > aravind -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

