开发者

Android - Invoke activity from within jar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜