Tweets

You blocked @AndroidDev

Are you sure you want to view these Tweets? Viewing Tweets won't unblock @AndroidDev

  1. Get acquainted with the ExoPlayer API by going on a journey to build an Android video player app that supports playlists, audio focus, and PIP Learn more:

    Undo
  2. Can’t wait to use lambdas to make new APIs? Get in line. Kotlin lets you specify a function as `inline` - which means calls will be replaced with the function body. Breathe and make lambda-based APIs with zero overhead. Docs:

    BERJAYA
    Undo
  3. Mar 13

    [2/2] Is the state of your enclosing class correct? Use `check` to verify. It will throw an IllegalStateException if the value checked is false. Doc:

    BERJAYA
    Show this thread
    Undo
  4. Mar 13

    [1/2] Are your function arguments valid? Check before using them, with `require`. If they’re not valid an IllegalArgumentException is thrown. Doc:

    BERJAYA
    Show this thread
    Undo
  5. Retweeted

    Are you attending ? Join us at our booth for three days of Googler talks plus a chance to ask our experts questions. 🗓Get the full schedule →

    BERJAYA
    Undo
  6. Mar 12

    In Android, onCreate or other callbacks initialize objects. In Kotlin non-null vals must be initialized. What to do? Enter `lateinit`. It's a promise: initialize me later! Use it to pinky-swear it will "eventually" be null safe Docs:

    BERJAYA
    Undo
  7. Mar 11

    It’s good to be lazy! Defer the cost of expensive property initialization until they’re actually needed, by using `lazy`. The computed value is then saved and used for any future calls. Lazy:

    BERJAYA
    Undo
  8. Mar 10

    [3/3] Going further with RecyclerViews, if we have a lot of callbacks from a RecyclerView item, like this one with detail clicks, shares, and delete actions, we can use sealed classes. One callback taking one sealed class can handle all the things!

    BERJAYA
    Show this thread
    Undo
  9. Mar 10

    [2/3] You can also use sealed classes in a RecyclerView adapter. They’re a perfect fit for ViewHolders - with a clean set of types to dispatch explicitly to each holder. Used as an expression, the compiler will error if all types aren’t matched.

    BERJAYA
    Show this thread
    Undo
  10. Mar 10

    [1/3] Kotlin sealed classes let you easily handle error data. When combined with LiveData you can use one LiveData to represent both the success path and the error path. Way better than using two variables. Docs:

    BERJAYA
    Show this thread
    Undo
  11. Retweeted

    The can do much more than just publishing your app or game on . Do you know about all these features already? 🛠Running promotions 🛠Bad behavior thresholds 🛠Conversion rate benchmarks 📊Get more out of the Play Console →

    BERJAYA
    Undo
  12. Mar 9

    Is the number of method overloads getting out of hand? Specify default parameter values in functions. Make the code even more readable with named parameters. Doc:

    BERJAYA
    Undo
  13. Retweeted

    “Very few people believed what we were doing had potential…” - Four successful founders in the apps & games industry share how they overcame challenges and got to where they are today. Read about their journey →

    BERJAYA
    Undo
  14. Mar 8

    With the release of the first Developer Preview, we wanted to call out backward-incompatible changes we plan to make to the cryptographic capabilities in Android P Read the full blog post →

    Undo
  15. Mar 8

    In Kotlin, everything is public by default! Well, almost. Kotlin has a rich set of visibility modifiers you can use as well: private, protected, internal. Each of them reduces the visibility in a different way. Docs:

    BERJAYA
    Undo
  16. Mar 7

    The first developer preview highlights are here! Learn about changes to JobScheduler, execution, Image Decoding (with animation), WiFi Location, Dual Camera app support, and more. Watch the full video with

    BERJAYA
    Undo
  17. Mar 7

    Developer Preview 1 is available today! Read the blog post here → Get an early look at some of the new features in the next version of Android for testing, development, and don't forget to give us your feedback.

    Undo
  18. Mar 7

    Creating classes with one role: to hold data? Mark them as “data” classes. The default implementation of equals() is generated (so are hashCode(), toString(), and copy()) and checks for structural equality. Docs:

    BERJAYA
    Undo
  19. Mar 6

    Developer Preview 7 release available today! Platform updates include camera improvements, new Bluetooth APIs, and many stability fixes. Console features added for sharing products and device update channels. Read the post here →

    Undo
  20. Mar 6

    In Kotlin, classes can have mutable and read-only properties, with getters and setters generated by default. You can also implement custom ones if required. Docs:

    BERJAYA
    Undo

Loading seems to be taking a while.

Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

    You may also like

    ·