开发者

Android - Invoke activity from within jar

开发者 https://www.devze.com 2022-12-28 11:21 出处:网络
I have a jar that consists of a class that extends Activity and performs some activity on onCreate. I want to import this jar into my Android app and start the ac开发者_JAVA百科tivity.

I have a jar that consists of a class that extends Activity and performs some activity on onCreate. I want to import this jar into my Android app and start the ac开发者_JAVA百科tivity.

How can I go about this?

Thanks George


Step #1: Put the JAR in your project's libs/ directory.

Step #2: If you are using Eclipse, add this JAR to your build path


I got this working. I put the JAR in the assets folder, and didnt have to set the build path. Thanks a lot!

0

精彩评论

暂无评论...
验证码 换一张
取 消