簡體   English   中英

ARCore android 應用程序將安裝在不受支持的設備上

[英]ARCore android app to be installed on Non supported device

我創建了一個 Android 應用程序,它具有 AR 功能以及其他一些功能。 所以我希望我的應用程序可以安裝在所有設備上,並且 AR 只能在受支持的設備上運行。 請幫助我如何實現這一目標。 提前致謝。

聽起來您的應用程序在 ARCore 文檔中被稱為“AR Optional”:

AR 可選應用程序使用 ARCore 來增強不同的功能。 AR 可選應用程序具有可選的 AR 功能,這些功能僅在安裝了 Google Play Services for AR 的支持 ARCore 的設備上激活。

AR 可選應用程序可以在不支持 ARCore 的設備上安裝和運行。 當用戶安裝 AR Optional 應用時,Google Play 商店不會隨應用自動安裝適用於 AR 的 Google Play Services。

來自: https://developers.google.com/ar/develop/java/enable-arcore (在撰寫本文時)

ArCoreApk 中有一個實用方法可用於檢查設備是否支持 ARCore,如果支持 ARCore 是否可用 - ArCoreApk.checkAvailability()。

值得注意的是,有些人使用此檢查報告了不一致的結果,盡管它似乎在許多情況下都有效 - 請參閱此處的討論,例如: https://github.com/google-ar/arcore-android-sdk/issues /162

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM