Example:
This would exist in the JAR.
public class Foo {
public void saySomething() {
Log.d("Status","Got it!");
}
}
This would exist in my Main class.
public class Main {
public void tryToGetSomething() {
Foo.saySomething();
}
}
Obviously, the problem with that is that it would throw an error if the JAR was NOT included. How do I get around this? How can I protectively code this so that it will execute this if the JAR is included, but do something else if the JAR is NOT included?
Also, sorry if the code doesn't make sense, just wrote it in a few seconds. You should get the idea.