Logcat says - The application may be doing too much work on its main thread and error message says - StringtoReal.invalidReal(string.boolean)line:63 [closed]

隐身守侯 提交于 2019-12-01 19:13:42

I would ignore that. The message you are seeing is important on phones but not in the emulator. The emulator is extremely slow. Nothing you are doing is resource intensive so your application should perform nominally on a device.

On a device you can use developer options, on some phones, to enable a visible signal that you may be doing too much work in the foreground. On my Galaxy Nexus I can navigate to Settings > Developer Options > Strict mode enabled. Checking that box will causes a red border to flash around any application when it causes a message like what you posted from your logcat to occur.

The solution for removing the warning is threading but I feel you may be devoting effort to a non issue. Only way to know is device testing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!