Code Monkey home page Code Monkey logo

Comments (6)

Ereza avatar Ereza commented on July 17, 2024

Hi:

I don't see the benefit of using mipmap on this image if you don't use it on animations or anything like that. And if you do, you are already using your own custom activity, so you can use a mipmap there if you wish... Or maybe I'm wrong and there is benefit on using mipmaps other than for animations (or launcher icons)?

Can you elaborate?

Thanks!

from customactivityoncrash.

ppamorim avatar ppamorim commented on July 17, 2024

@Ereza Before all, What do you think about using that implementation only with code? The override of resource can be a little bit confuse to some developers.

from customactivityoncrash.

Ereza avatar Ereza commented on July 17, 2024

@ppamorim You mean specifying the drawable with something like: CustomActivityOnCrash.setDefaultErrorActivityDrawable(R.drawable.my_image)?

I guess it's feasible, but I don't see how overriding a drawable is more confusing than overriding strings...

from customactivityoncrash.

ppamorim avatar ppamorim commented on July 17, 2024

@Ereza Yes, but you can maintain this override of the drawable with strings and implements the method way too.

from customactivityoncrash.

Ereza avatar Ereza commented on July 17, 2024

You're right, I'll do that.

from customactivityoncrash.

Ereza avatar Ereza commented on July 17, 2024

Hi, this has been implemented in the 1.4.0 release. A new method CustomActivityOnCrash.setDefaultErrorActivityDrawable(int); is available, and you can pass in a drawable or mipmap id.
Thanks for your suggestion!

from customactivityoncrash.

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.