简体   繁体   中英

Is it possible to allow an app to be installed on the SD card for Android 6 only?

I have an Android app which for now can only be installed on the internal memory:

android:installLocation="internalOnly"

because it uses widgets, services which wouldn't work properly if the app was moved on the SD card ( doc )

I would like to enable the app to use Android 6 Adoptable storage and am wondering if there's a way to only do this for users running Android 6+...

Do you know if this is possible?

Thanks

您无法在Manifest中设置它,但您始终可以检查该运行时,如果有任何不符合您的要求,只需向用户显示错误对话框。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM