This website uses cookies to ensure you get the best experience on our website. Learn more

10 Best Practices for Moving to a Single Activity

x

10 Best Practices for Moving to a Single Activity

Watch the keynote and all sessions →

Learn the 10 best practices for moving to a single activity!

1. Use activities as entry points into your app’s UI. When a user goes to launch your app, their launching on activity.

2. Share data between screens by using the activity scope!

3. Use the Navigation Architecture Component to make navigating between destinations even easier.

4. Navigate between destinations with the new gradle plugin, Safe args.

5. Extract your business logic, don’t test at the destination level!

6. Test with FragmentScenario! Fragment 1.1 was just released with a new feature for testing and verifying fragments.

7. Mock the NavController to confirm that you’re calling the right navigate calls.

8. Inject dependencies with FragmentFactory.

9. Use multiple tasks when appropriate. Gasp!

10. Don't contort your app architecture. Do what’s right for your app.


Watch the full session by Ian Lake →

Event site →
Subscribe to the Android Channel! →

#AndroidDevSummit
x

10 Best Practices for Moving to a Single Activity

10 Best Practices for Moving to a Single Activity

Single Activity: Why, When, and How brings together a lot of the best practices around activities, Fragments, Navigation, and most importantly *making your code testable*.
x

Single Activity: Why, When, and How (Android Dev Summit '18)

With the Navigation Architecture Component, developers have the tools to move towards a single activity structure for their app, but they don't know:

— why they should move to that model
— when it is appropriate
— how exactly to take advantage of that structure and migrate to it

Navigation Architecture Component →
Testing Fragments →

Presented by: Ian Lake


Android Dev Summit '18 all sessions playlist →
Subscribe to the Android Channel! →

#AndroidDevSummit
x

Single activity navigation so simple even I can understand it - Mike Nakhimovich

I always wanted to be the type of android developer that creates single Activity applications. Only issue was my inability to understand any libraries for accomplishing my goal. After a few iterations I landed on an architecture that's based on mvp and reactive state which allowed me to accomplish my goal without anything more than rxjava and a few base classes. Come join me as I go through creating a single activity flow consisting of many screens and not a fragment in sight.
x

A Single Activity App with Jetpack’s Navigation Component (Android Bangkok Conference 2019)

Android Bangkok is large scale conference for Android developer come learn and network with experts from around the world sharing best practices building next generation app where the idea focusing on the best of Android.

Session by Boonya Kitpitak
Android Developer, Oozou

Best Practices for Themes and Styles (Android Dev Summit '18)

This talk focuses on how to work with designers to translate mocks into maintainable themes and styles for a high-quality Android app.

Presented by: Alan Viverette & Nick Butcher


Android Dev Summit '18 all sessions playlist →
Subscribe to the Android Channel! →

#AndroidDevSummit

5 Tips to Master ConstraintLayout

Watch the keynote and all sessions →

If you’re curious what we covered in our ConstraintLayout session at Android Dev Summit ‘18, watch this recap to get 5 tips to master ConstraintLayout!

1. Use Guidelines to anchor Contraints! Think of it as a new edge of the screen to help you layout your app.

2. Leverage Barriers as ViewGroups and help support multiple languages!

3. Add Constraint directly with the Context Menu, a new feature with Android Studio 3.3. It’s much more precise and should save you tons of undo keystrokes.

4. Take advantage of the new View Options like Show All Constraints and Live Rendering that will help you visualize how things look as you move things around on the Design Surface.

5. Use shortcuts to zoom and pan! We’ve changed the keyboard shortcuts, taking inspiration from design tools like Photoshop and Sketch.

Watch the full session by Sean McQuillan & Chris Sinco →

Event site →
Subscribe to the Android Channel! →

#AndroidDevSummit

Best Practices for Using Text in Android (Google I/O'19)

Android Q brings lots of updates to text aimed at different use cases for all developers: better control over fonts, better performance, and styling improvements, and others. Android also has integrated PrecomputedText with RecyclerView so that you can squeeze the last drop of performance out of your UI. This talk will cover these updates and give you some more tips and best practices for working with other text-related features such as fonts, editable text, and keyboard.

Watch more #io19 here:
Android & Play at Google I/O 2019 Playlist →
Google I/O 2019 All Sessions Playlist →
Learn more on the I/O Website →

Subscribe to the Android Developers Channel →
Get started at →

Speaker(s): Siyamed Sinir, Florina Muntenescu, Seigo Nonaka

TA9D95

Making the Most of It: Best Practices & Activities of One-shot Instuction

Best practices for text on Android (Google I/O '18)

This session will cover common usages of text in Android apps, and common pitfalls developers fall into that can be avoided. Topics to be covered include styling with spans, working with editable text, measuring your own text, when and how to use different hyphenation algorithms, and a strong emphasis on performance issues and how to avoid them. Some best practices will be demonstrated in a short live demo.

Rate this session by signing-in on the I/O website here →

Watch more Android sessions from I/O '18 here →
See all the sessions from Google I/O '18 here →

Subscribe to the Android Developers channel →

#io18
x

Daily Habits of Successful People | Brian Tracy

The most successful people all have certain habits in their daily routines. Plan for success every day with my FREE report, No Excuses! The Power of Self-Discipline:

What successful habits do you practice when you start your day? Leave a comment below.

_____________

Learn more:

Subscribe to my channel for free stuff, tips and more!
FREE Report:
YouTube:
Transcript here:
Facebook:
Twitter:
Google+: +BrianTracyOfficialPage
Pinterest:
Instagram: @TheBrianTracy
Blog:
_____________

daily habits, morning habits, good habits, daily routine, best morning habits, good habits for success,

RecyclerView OnClickListener (Best practice way)

This video is part of a course named SQLIte for Beginners 2019. It's free and available on my website:

In this video I show you the best practice way to attach an OnClickListener to a RecyclerView and determine what list item was clicked.

➤Learn to code like me:


➤Source Code:

Best Practices in Using the Android Emulator (Google I/O'19)

This session will cover what’s new in the Android Emulator. It will also explain how to take full advantage of the new features, how to validate apps with foldable Emulator, and best practices to boost productivity with multiple Emulator instances.

Watch more #io19 here:
Android & Play at Google I/O 2019 Playlist →
Google I/O 2019 All Sessions Playlist →
Learn more on the I/O Website →

Subscribe to the Android Developers Channel →
Get started at →

Speaker(s): Sam Lin, Lingfeng Yang, Hoi Lam

T8B7DA

Android Slices Best Practices (Android Dev Summit '18)

Based on our experience with 3rd party developers that are integrating with Slices, the presentation shares best practices for implementing Android Slices to be effectively presented on Search, and demonstrates Slices UI for a few verticals - code + demos + slides.

Presented by: Arun Venkatesan & Artur Tsurkan


Android Dev Summit '18 all sessions playlist →
Subscribe to the Android Channel! →

#AndroidDevSummit

Android Jetpack: how to smartly use Fragments in your UI (Google I/O '18)

With Architecture Components, the role of Fragments has evolved. This session will explore the changing responsibilities of a Fragment and talk about ongoing API changes.

Rate this session by signing-in on the I/O website here →

Watch more Android sessions from I/O '18 here →
See all the sessions from Google I/O '18 here →

Subscribe to the Android Developers channel →

#io18
x

Scene Transition - Change Layouts in single activity by animation

Android RecyclerView Example Best Practices

Read the full article with source
In this tutorial, We are going to explain best practices to implement RecyclerView in Android. We will create a custom layout with CardView and render it on RecyclerView

Developer tools and best practices

In this session, we discuss some practices and tools that help developers test digital apps quickly and easily, and that speed up fault resolution.

Watch this on demand session to hear how developers can:

• See in real time the impact of CSS changes on different browsers (Live Browsers)
• Develop and debug on real devices directly from dev tools (XCode, Android Studio, etc)
• Test local code and apps prior to commit on remote browsers and devices
• Execute XCTest and Espresso tests on numerous real browsers and device
• Test directly from your IDE (IntelliJ, Eclipse)

Best Practices for Using Microsoft Active Directory (AD) and Apps on Google Cloud (Cloud Next '19)

Microsoft Active Directory is still the standard for authentication, authorization, and auditing of users, groups, and applications in Windows environments. Join this session to see how you can leverage Google Cloud to manage your cloud-based AD-dependent apps and servers, automate AD server maintenance and security configuration, and extend your AD domain to the cloud. We will show demos and hear from Capital One on how they are doing this today.

Apps and Active Directory Best Practices →

Watch more:
Next '19 Security Sessions here →
Next ‘19 All Sessions playlist →

Subscribe to the GCP Channel →


Speaker(s): Siddharth Bhai, Kenny Hill


Session ID: SEC214
product:Cloud IAM,Cloud Key Management Service (KMS); fullname:Siddharth Bhai;

Top 10 C# Best Practices (plus bonuses)

To sign up for announcements about new videos and exclusive discounts, fill out this form: (your email will be kept safe and you will not be spammed).

Learn what I believe are the top 10 best practices for C# developers. When you are programming in Visual Studio, I think these will help you do so better, more efficiently, and with less bugs. Once you see all 10 (plus the bonuses at the end), let me know what you think in the comments. Did I miss one? Do you disagree with one?

Thanks to Julio M, here is a list of the best practices along with their video times:
0:51 Name things well
7:51 One class per file
10:18 Use properties not variables
12:58 Methods should do one thing
23:27 Keep it simple
28:21 Be consistent
32:25 Use curly braces for if statements
37:45 Concatenate strings using $
45:38 Avoid global variables
48:40 Use public modifier only when necessary

50:53 Never trust the user
52:28 Plan before you build

Menu