Skip to content

对于获取接口数据static 思考 #59

@yuekong

Description

@yuekong

public static Observable<List> getPhotoList() {
return sNewsService.getPhotoList()
.subscribeOn(Schedulers.io())
.unsubscribeOn(Schedulers.io())
.subscribeOn(AndroidSchedulers.mainThread())
.observeOn(AndroidSchedulers.mainThread());
}
如果获取接口数据都是使用静态方法 不会导致内存溢出吗?如果会,还有什么好的方法来解决这个问题呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions