Android - Invoke activity from within jar

后端 未结 2 388
小鲜肉
小鲜肉 2021-01-26 19:39

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

<
相关标签:
2条回答
  • 2021-01-26 20:04

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

    0 讨论(0)
  • 2021-01-26 20:09

    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

    0 讨论(0)
提交回复
热议问题