Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.support.v8.renderscript... to android.renderscript.... #8

Open
wosiu opened this issue Oct 16, 2018 · 0 comments
Open

android.support.v8.renderscript... to android.renderscript.... #8

wosiu opened this issue Oct 16, 2018 · 0 comments

Comments

@wosiu
Copy link

wosiu commented Oct 16, 2018

How about using android.renderscript instead of android.support.v8.renderscript everywhere?

Here quote from docs (https://developer.android.com/guide/topics/renderscript/compute):

When developing an Android application that uses RenderScript, you can access its API from Java in one of two ways:

android.renderscript - The APIs in this class package are available on devices running Android 3.0 (API level 11) and higher.
android.support.v8.renderscript - The APIs in this package are available through a Support Library, which allows you to use them on devices running Android 2.3 (API level 9) and higher.
Here are the tradeoffs:

If you use the Support Library APIs, the RenderScript portion of your application will be compatible with devices running Android 2.3 (API level 9) and higher, regardless of which RenderScript features you use. This allows your application to work on more devices than if you use the native (android.renderscript) APIs.
Certain RenderScript features are not available through the Support Library APIs.
If you use the Support Library APIs, you will get (possibly significantly) larger APKs than if you use the native (android.renderscript) APIs.

I believe currently almost no-one (?) targeting API level < 11, whereas smaller apk sounds good.
Also I've got some build problem when adding support for android.support.v8.renderscript in my gradle build, but I guess it's internal problem which requires to dig deeper on my side.

I could try migrate whole code to use android.renderscript instead of support one if you agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant