Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Renderscript 内核来执行类似于 google 示例的长时间操作。但是,用户可以取消请求。是否有任何 API 可以终止挂起的 Renderscript 操作?如何强制渲染脚本停止?
https://github.com/googlesamples/android-BasicRenderScript
没有直接调用取消。调用绑定到您的脚本(对象实例)的 RS 上下文对象可能会起作用。.destroy()RenderScript
.destroy()
RenderScript