-2

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?

keyser
  • 18,829
  • 16
  • 59
  • 101

2 Answers2

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
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