platform-samples
platform-samples copied to clipboard
[Bug]: Current Location sample does not return any location
Is there an existing issue for this?
- [X] I have searched the existing issues
In which area is the issue?
Location
In a specific sample?
CurrentLocationScreen.kt
What happened?
I'm on android 13; Manufacture Vivo, model V21433
I want to get the current geo location for my app. So, I went on to learn the Current Location sample, and tried to run it. No matter how may time I tried to hit the button "Get current location", it doesn't show anything.
All location permissions are given:
- Allow all the time
- Use precise location
I see the location icon on the top notification are whenever I touch the button "Get current location". But still, no location shown. The screenshot is attached.
Relevant logcat output
---------------------------- PROCESS STARTED (31040) for package com.example.platform.app ----------------------------
2024-04-18 23:34:04.284 31040-31040 nativeloader com.example.platform.app D Configuring clns-4 for other apk /data/app/~~qQh6tH2dRtriIavyIL1eWQ==/com.example.platform.app-3NO08t9LbqQ9lA9Y7377Iw==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~qQh6tH2dRtriIavyIL1eWQ==/com.example.platform.app-3NO08t9LbqQ9lA9Y7377Iw==/lib/arm64:/data/app/~~qQh6tH2dRtriIavyIL1eWQ==/com.example.platform.app-3NO08t9LbqQ9lA9Y7377Iw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.example.platform.app
2024-04-18 23:34:04.332 31040-31040 GraphicsEnvironment com.example.platform.app V ANGLE Developer option for 'com.example.platform.app' set to: 'default'
2024-04-18 23:34:04.332 31040-31040 GraphicsEnvironment com.example.platform.app V ANGLE GameManagerService for com.example.platform.app: false
2024-04-18 23:34:04.332 31040-31040 GraphicsEnvironment com.example.platform.app V Neither updatable production driver nor prerelease driver is supported.
2024-04-18 23:34:04.336 31040-31040 NetworkSecurityConfig com.example.platform.app D No Network Security Config specified, using platform default
2024-04-18 23:34:04.337 31040-31040 NetworkSecurityConfig com.example.platform.app D No Network Security Config specified, using platform default
2024-04-18 23:34:04.344 31040-31040 WM-WrkMgrInitializer com.example.platform.app D Initializing WorkManager with default configuration.
2024-04-18 23:34:04.354 31040-31040 WM-PackageManagerHelper com.example.platform.app D Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService
2024-04-18 23:34:04.355 31040-31040 WM-Schedulers com.example.platform.app D Created SystemJobScheduler and enabled SystemJobService
2024-04-18 23:34:04.369 31040-31040 EmbeddingBackend com.example.platform.app D No supported embedding extension found
2024-04-18 23:34:04.394 31040-31040 VivoConfigStore com.example.platform.app E key:vivo.software.nightmode isCached is false and normal value is true
2024-04-18 23:34:04.399 31040-31070 Compatibil...geReporter com.example.platform.app D Compat change id reported: 160794467; UID 10193; state: ENABLED
2024-04-18 23:34:04.406 31040-31040 AppCompatDelegate com.example.platform.app D Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-04-18 23:34:04.453 31040-31040 VivoConfigStore com.example.platform.app E key:vivo.software.multiwindow isCached is false and normal value is true
2024-04-18 23:34:04.454 31040-31040 VivoConfigStore com.example.platform.app E key:vivo.software.freeform isCached is false and normal value is true
2024-04-18 23:34:04.477 31040-31040 le.platform.app com.example.platform.app W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-04-18 23:34:04.477 31040-31040 le.platform.app com.example.platform.app W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-04-18 23:34:04.782 31040-31040 le.platform.app com.example.platform.app W Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(boolean, kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
2024-04-18 23:34:04.782 31040-31040 le.platform.app com.example.platform.app W Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate$default(androidx.compose.runtime.snapshots.SnapshotStateList, boolean, kotlin.jvm.functions.Function1, int, java.lang.Object) failed lock verification and will run slower.
2024-04-18 23:34:04.783 31040-31040 le.platform.app com.example.platform.app W Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2024-04-18 23:34:04.783 31040-31040 le.platform.app com.example.platform.app W Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(boolean, kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2024-04-18 23:34:04.783 31040-31040 le.platform.app com.example.platform.app W Method void androidx.compose.runtime.snapshots.SnapshotStateList.update$default(androidx.compose.runtime.snapshots.SnapshotStateList, boolean, kotlin.jvm.functions.Function1, int, java.lang.Object) failed lock verification and will run slower.
2024-04-18 23:34:04.964 31040-31040 Compatibil...geReporter com.example.platform.app D Compat change id reported: 171228096; UID 10193; state: ENABLED
2024-04-18 23:34:05.353 31040-31071 AdrenoGLES-0 com.example.platform.app I QUALCOMM build : 0a31cc5b53, I80d2918b26
Build Date : 09/27/23
OpenGL ES Shader Compiler Version: EV************
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
2024-04-18 23:34:05.353 31040-31071 AdrenoGLES-0 com.example.platform.app I Build Config : S P 10.0.7 AArch64
2024-04-18 23:34:05.353 31040-31071 AdrenoGLES-0 com.example.platform.app I Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
2024-04-18 23:34:05.358 31040-31071 AdrenoGLES-0 com.example.platform.app I PFP: 0x016ee197, ME: 0x00000000
2024-04-18 23:34:05.485 31040-31071 Parcel com.example.platform.app W Expecting binder but got null!
2024-04-18 23:34:05.502 31040-31066 OpenGLRenderer com.example.platform.app I Davey! duration=1117ms; Flags=1, FrameTimelineVsyncId=30129599, IntendedVsync=89061746862836, Vsync=89061863529498, InputEventId=0, HandleInputStart=89061874855137, AnimationStart=89061874862065, PerformTraversalsStart=**************, DrawStart=89062785969668, FrameDeadline=89061763529502, FrameInterval=89061874777221, FrameStartTime=16666666, SyncQueued=89062831421595, SyncStart=89062831506127, IssueDrawCommandsStart=89062832263523, SwapBuffers=89062851228002, FrameCompleted=89062864504148, DequeueBufferDuration=28854, QueueBufferDuration=469844, GpuCompleted=89062864504148, SwapBuffersCompleted=89062852876127, DisplayPresentTime=-5**************2176, CommandSubmissionCompleted=89062851228002,
2024-04-18 23:34:05.525 31040-31040 ImeFocusController com.example.platform.app V onWindowFocus: DecorView@70262b4[MainActivity] softInputMode=STATE_UNSPECIFIED|ADJUST_PAN|IS_FORWARD_NAVIGATION
2024-04-18 23:34:05.525 31040-31040 ImeFocusController com.example.platform.app V Restarting due to isRestartOnNextWindowFocus as true
2024-04-18 23:34:05.525 31040-31040 ImeFocusController com.example.platform.app D onViewFocusChanged, view=DecorView@70262b4[MainActivity], mServedView=null
2024-04-18 23:34:05.526 31040-31040 ImeFocusController com.example.platform.app V checkFocus: view=null next=DecorView@70262b4[MainActivity] immDelegate=delegate{14f0edd displayId=0} force=true package=<none>
2024-04-18 23:34:05.555 31040-31066 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =1 state=196608
2024-04-18 23:34:09.703 31040-31094 ProfileInstaller com.example.platform.app D Installing profile for com.example.platform.app
2024-04-18 23:34:16.732 31040-31078 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196864
2024-04-18 23:34:19.481 31040-31066 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196608
2024-04-18 23:35:19.896 31040-31078 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196864
2024-04-18 23:35:20.193 31040-31078 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196608
2024-04-18 23:35:32.036 31040-31078 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196864
2024-04-18 23:35:32.295 31040-31078 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196608
2024-04-18 23:35:33.707 31040-31078 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196864
2024-04-18 23:35:35.069 31040-31066 ActivityThread com.example.platform.app V updateVmProcessStateForGc sceneId =0 state=196608
Code of Conduct
- [X] I agree to follow this project's Code of Conduct