I have downloaded the spen SDK along with the sample code. However when I try to build the code I am getting runtime exception as follows :
Log :
06-11 20:16:52.950: E/AndroidRuntime(542): FATAL EXCEPTION: main
06-11 20:16:52.950: E/AndroidRuntime(542): java.lang.NoClassDefFoundError: com.samsung.spensdk.SCanvasView
06-11 20:16:52.950: E/AndroidRuntime(542): at com.samsung.spensdk.example.startup.SPen_Example_StartUp.onCreate(SPen_Example_StartUp.java:50)
06-11 20:16:52.950: E/AndroidRuntime(542): at android.app.Activity.performCreate(Activity.java:4465)
06-11 20:16:52.950: E/AndroidRuntime(542): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
I have followed the steps as instructed in the samsung developer site. i.e I have included the libspen23.jar
along with the library files (.so) in the armeabi
folder and have configured the build path as well. However I am still getting the above mentioned error. Please, can anyone guide me if I am going wrong somewhere?
What I meant is that i have added the library manually
I have no idea what you mean by the term "manually".
Based on what you have written here, what you want is:
libs/
libspen23.jar
armeabi/
whateverTheyCalledIt.so
and no manual modifications to the Eclipse build path (other than the "Order & Export" fix I mentioned in my comment).
If your libs/
directory has any other structure, that may not work.
Note that I have no direct experience with the S-Pen SDK (as I cannot accept their license terms).