I already added the x.jar file in android application(selecting in build path as a x.jar), But I am not able to run and call x.jar file in the application. How can I call the x.jar file?
Asked
Active
Viewed 255 times
2 Answers
0
If this .jar is a library you should put it in the libs folder than call the ADD TO BUILD PATH.
To use the .jar file you just need to use the import and be happy.

JannGabriel
- 302
- 5
- 14
-
Already I did it not working and by importing also not working any simple example so that i can follow – user2000626 Jan 24 '13 at 10:05
-
http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project – JannGabriel Jan 24 '13 at 12:16
0
If you need to call the file from jar which you have attached through build in path android
You just call the file like below:
For example, you attached the ksoap jar file in to your project. you call the files like,
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
That is you call file with parameters and import the class from jar that's it..

Android_coder
- 9,953
- 3
- 17
- 23