本文介紹了Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER) 在現實生活中多久返回一次 null?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
Android 用戶是否有機會重置 NetworkProvider,使位置為空?我想出了一個想法,即在第一次啟動設備后,唯一可能使該位置為空.但也比谷歌會立即檢查我的意見的位置.
Do the Android users have the chance to reset the NetworkProvider, so that the location will be null? I came up with the idea, that its only possible to have that location null, after starting the device the very first time. But also than google will check the location right away for my opinion.
當然,我正在為這種罕見的情況實施默認位置.我只是想知道這種情況有多少.
Sure, I'm implementing a default location for this rare case. I just want to know how seldom this case is.
推薦答案
在設置>位置和安全>通過網絡定位服務被禁用時返回'null'
所以這種情況經常發生.
So that can happen quite often.
這篇關于Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER) 在現實生活中多久返回一次 null?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!