Hi Richard,Thank you very much for your answers and information with links. However, I have still do not understand it completely. As I am new to this NDK development, hence, these questions. Sorry, If these are silly.> With regard to your questions:> 1) Yes the method names/signatures are specified by JNI and can be generated from your Java code by call javah on your Java files. http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javah.htmlWhat I understand from your this sentence, write the Java code first and when we compile it we will get the method names. We need to use those method names in the C code which is going to be build as a Shared Library. I do not think, this is the right way of developing the shared library code. Generally, I will develop the library (APIs) first and then I will call them from my application using specified API name in the library. Due to this, I am expecting that there is a way to give the names to the methods which would be developed in the Shared Libraries of NDK framework.
> 2) The Android NDK is not meant to be used to write your whole application but to enhance or enable some functionality of your Android Java program.> See the first paragraph http://developer.android.com/tools/sdk/ndk/index.html . You should therefore start with a Java application and where you require it add native code.Yes. I have gone through this link only. I have downloaded and installed by following this link only. This http://developer.android.com/tools/sdk/ndk/index.html#GetStarted says write the library code first, but, not application. That is the reason, I am asking about how to give the names to the methods and how to develop the application for using the developed library APIs.> 2a) There is an advanced topic regarding native applications which still require Java to invoke them although this can be provided by the platform. The NDK documentation for native activities can be found> in <NDK>/docs/NATIVE-ACTIVITY.htmlI have gone through the <NDK>/docs/NATIVE-ACTIVITY.html file contents. What I understand after reading this html file is that this file explains about the developing a native application for using the developed shared library APIs. AM I CORRECT? I am bit confuse here. Please let me know whether my understand about this html file is correct or not.
I want to develop a shared library where I can use some of the OS APIs for example which are related to frame buffer. After developing this shared library, I want to develop a native application, in user space, which will call these shared library APIs using the JNI interface. This is briefly my requirement.
Srinivas