Coder Social home page Coder Social logo

Comments (6)

android-notes avatar android-notes commented on August 27, 2024

建议在进入有crash的activity前装载,退出后卸载

from cockroach.

xiongwenzhi avatar xiongwenzhi commented on August 27, 2024

那还是每个activity都得写代码吗

from cockroach.

android-notes avatar android-notes commented on August 27, 2024

可以全局初始化一次,最好时发现某个activity频繁crash时再装载

from cockroach.

zhihuitang avatar zhihuitang commented on August 27, 2024

我觉得在Application里面安装,不卸载是可以的。这样Cockroach会一直伴随着Application, Application不在的话也无所谓卸载了。

from cockroach.

android-notes avatar android-notes commented on August 27, 2024

如果你能做好善后 工作的话也是可以的,但若activity生命周期回调中抛出了异常就会导致黑屏的,而且还有可能导致各种奇怪的现象,建议开启后不影响用户体验的情况下开启 @zhihuitang

from cockroach.

zhihuitang avatar zhihuitang commented on August 27, 2024

嗯,我自己在我的app中用上了,在application 中安装,不管卸载了。因为我觉得以前直接粗暴的退出也比黑屏好不到哪里去。

from cockroach.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.