Join Albert Lo for an in-depth discussion in this video Implement AppAnalytics singleton, part of Building Android Apps with Cloud Services.
- [Instructor] We want to access the analytics trackers…anywhere and everywhere throughout our code base.…But, we also only want to deal…with one instance of the tracker.…Therefore, we use the Singleton design pattern…to provide unified and global access to the trackers.…So we create AppAnalytics, is our Singleton.…We create it by going Right Mouse on analytics.…And create New, Class, and we name it AppAnalytics.…
In this Singleton, first we're going…to create instance holders.…To hold instances of ScreenTracker and BatteryTracker.…I'm going to pass in getProvider…as the constructor parameter for ScreenTracker.…
And also, we're going to create…an instance of BatteryTracker.…And just like before, I'm going to pass…in getProvider as the constructor parameter.…So the reason the instance holders…are structured in this way, is twofold.…First, I want to avoid any threading issues.…And second, I want the instance holders to lazy load.…
This means that it will not be constructed…until the first time it is actually called in runtime.…
- Configuring Android Studio
- Getting started with Fabric.io
- Preparing for Fabric.io release
- Deploying to Fabric.io Beta
- Testing beta deployment
- Setting up Fabric.io Answers
- Defining and implementing the analytics model
- Defining interfaces for analytics
- Defining and implementing the analytics trackers
- Implementing the analytics client
- Setting up a Firebase console
- Testing Firebase authentication
- Implementing and verifying remote configuration
Skill Level Intermediate
Android App Development: Unit Testingwith James P White2h 58m Intermediate
Google Firebase for Android: First Lookwith Joe Marini1h 16m Intermediate
1. Crash Reporting
2. Crashlytics Beta for Beta Deployment
3. Use Analytics
4. Firebase Authentication
5. Firebase Remote Configuration
Next steps1m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.