I made an Android app for studying I have a question.

Asked 2 years ago, Updated 2 years ago, 23 views

I made an application that shares locations with my friends, but the more friends I have, the worse the cell phone heats up and the battery decreases quickly, so I wonder if it's because of the application I made or other applications, and I want to know in detail where the load is severe.

The program I'm currently using is Android Studio. I communicate with php server, and with two AsyncTasks, one sends my location in 5 to 10 seconds, and the other receives my friends' location from the server at a similar time. The phone model is the LG G5.

android

2022-09-22 13:02

1 Answers

The polling method that periodically receives location information from the server every second has a severe fever. Wouldn't it be better if I push it from the server? I think it would be good to shoot it to the server only when I move a certain meter, not even my location. My friends also push me on the server if my friend's position moves more than a few meters and the value changes.


2022-09-22 13:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.