0

Im using Reflection in Android and I need to read a method inside a external jar file. Is a Java jar. Can I do it? Im just get read the jar if a have the jar inside my project but I need to read it out of my project, just loading it. Can anybody help me?

  • What? Can you please be more clear? – Mohammed Atif Aug 15 '16 at 14:02
  • I need to load a jar save in my Android device and read it! I need to use a method from jar in Reflection. – daniel12345smith Aug 15 '16 at 14:24
  • In general, while accessing any external file, you must write the code within try block to catch FileNotFoundException. And if the method in your JAR file has public methods, then you can access it by storing it into Apps dedicated storage. – Mohammed Atif Aug 15 '16 at 14:27
  • Have a look at this related question: http://stackoverflow.com/questions/60764/how-should-i-load-jars-dynamically-at-runtime – Frederic Klein Aug 15 '16 at 14:31

0 Answers0