christianrowlands / android-network-survey

Cellular Survey Android App
https://www.networksurvey.app
Apache License 2.0
151 stars 27 forks source link

Cellular Refresh Frequency #21

Closed Juderer closed 1 year ago

Juderer commented 1 year ago

Hi, I'm building an application to show cellular information (LTE or NR service and neighbor cells). There is a huge confusion that my programming refresh less frequently than yours. Would you guys give me some advice or reference? THANKs a lot!!!

christianrowlands commented 1 year ago

How are you getting the information for LTE and NR cells?

In Network Survey the term "scanning" is a bit of a misnomer. Really all I am doing is making a call to TelephonyManager#requestCellInfoUpdate at a set interval. You can see that call here. And a few lines down you can see where I schedule the next run of that handler using the user preference scan rate.

Let me know if you have any questions.

Juderer commented 1 year ago

@christianrowlands Thank you very much!