google-ar / codelab-geospatial

Apache License 2.0
34 stars 34 forks source link

Ready the source for SDK API level 31+ #6

Open MrCsabaToth opened 2 years ago

MrCsabaToth commented 2 years ago

Currently the source compiles against and targets API SDK level 30. Android Studio warns that SDK level 31 is already available. The main challenge is that API level 31 requires android.permission.ACCESS_COARSE_LOCATION next to android.permission.ACCESS_FINE_LOCATION, and the permission request logic has two stages as well: first testing against the coarse and then the fine. It's pretty easy to actualize Gradle version numbers and other package version numbers.

MrCsabaToth commented 1 year ago

https://medium.com/mobile-app-development-publication/download-file-in-android-with-kotlin-874d50bccaa2 https://github.com/elye/demo_android_pdf_reader_viewpager2/blob/master/app/src/main/java/com/example/pdfreader/FileDownloader.kt