Home > Mobile >  Help, how to record in an android app to send and receive data.
Help, how to record in an android app to send and receive data.

Time:10-06

情况是这样的,公司的一个项目采用了6.0.1的rk3368的安卓主板,并24小时运行客户的app,但客户的app运行24小时后大概率出现app无网络情况,出现断网情况时间不一定有时候第二天就出现,有时候第三天就出现,此时退出客户的app用安卓的浏览器或其它app能上网, 确认了不是主板断网, 当我们再次进入客户的app后,客户的app又有网络了,想请教一下这一般问题会出在哪里,而且想问一下有什么方法能记录app有没有通过主板发送网络数据并且主板有没有把app发送的数据发送给app服务器,同时记录服务器有没有返回数据的方法或者设备,我是维护技术不懂安卓开发这块,想请教一下各位大神这问题到底出在哪里了,最近因为这个问题头都搞大了,

CodePudding user response:

1. In this case, the first suspect the client app code, for example because of insufficient memory, app kill off a particular service system,
2. If you can, look at the print of the system, and grasp the app network related log is the most simple and direct method,
3. You can use caught tools is analyzed, such as the fiddler

CodePudding user response:

Is there a lock screen in the process of running, most systems have now lock screen after a period of time off network mechanism

CodePudding user response:

Ok, thanks, I try try using fiddler grasp a log

CodePudding user response:

refer to the second floor for funny reply:
, is there a lock screen in the process of running condition, most systems have now lock screen after a period of time off the mechanism of network

No lock screen, the system is running 24 hours a day, the app has been open

CodePudding user response:

Weixin_45565113
reference 4 floor response:
Quote: refer to the second floor for funny reply:
, is there a lock screen in the process of running condition, most systems have now lock screen after a period of time off the mechanism of network

No lock screen, the system is running 24 hours a day, the app has been open


Don't need to lock screen, long relegated to the background is likely to be killed to
You can try your app to join battery optimization white list, then lock the app in the taskbar