Can I use android.os.* libraries in a standalone project?

后端 未结 2 2052
不思量自难忘°
不思量自难忘° 2021-01-21 17:10

I\'m trying to develop an external library (not sure if that\'s the right term) to provide prepackaged functionality in Android projects. Working in Eclipse, I\'ve added the app

2条回答
  •  自闭症患者
    2021-01-21 17:45

    You could try the lib Robolectric, that implements the android API so you would be able to create JUnit tests for some isolated code you have:

    http://robolectric.org/

提交回复
热议问题