android
android copied to clipboard
Activity or context shall not be passed to the CloudClient constructor
trafficstars
-
OwnCloudClientFactory.createOwnCloudClient takes Activity as second parameter. This could be a problem of having memory leaks. e.g. OkHttp lib is pure java and does not have any link to the android app context. Could you do the same?
-
I am wondering how did you do the Unit Tests? It is harder to test having links to Android components. It would be simple having pure java unit tests.