問題描述
Android 用戶是否有機會重置 NetworkProvider,使位置為空?我想出了一個想法,即在第一次啟動設(shè)備后,唯一可能使該位置為空.但也比谷歌會立即檢查我的意見的位置.
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.
當(dāng)然,我正在為這種罕見的情況實施默認位置.我只是想知道這種情況有多少.
Sure, I'm implementing a default location for this rare case. I just want to know how seldom this case is.
推薦答案
在設(shè)置>位置和安全>通過網(wǎng)絡(luò)定位服務(wù)被禁用時返回'null'
所以這種情況經(jīng)常發(fā)生.
So that can happen quite often.
這篇關(guān)于Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER) 在現(xiàn)實生活中多久返回一次 null?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!