Before packaging your app for distribution, it is a good idea to do a final sweep and clean up your code. You should remove or comment out any remaining LogCat calls, and other debugging code. Also, you can use Android Studio's code analysis tools to find and fix any problems with your Java code, unused resources, and other issues.
- [Instructor] Before you package your app…for deployment to the app store, you should go through…some basic code cleanup processes.…The first step is to remove debugging code,…such as the use of the Log class.…There are a few different ways of doing this.…You could add some complex code to wrap calls…to the Log class in conditional blocks.…But in most cases, it's better just to go through…and find those references and comment them out…or completely remove them.…The easiest way that I found to find these references…is to go to Edit, Find, Find in Path,…then under Options, make sure you've chosen…only your app module or whatever other scopes you have…that have your custom code.…
Then in text to find, type .Log with an uppercase L…and select the option for case sensitivity.…The preview will show any imports for android.util.log.…And wherever you find them, you can double-click…and you'll jump to those references.…In this application, I've left in one call to the Log class,…and that resulted in creating the import statement…
- Packaging apps in APK files
- Building a signed APK file
- Distributing through Google Play
- Adding app graphics
- Setting pricing
- Publishing the app
- Submitting an app to Amazon
- Tracking app use in Google Play and Amazon
Skill Level Intermediate
1. Know Your Distribution Options
2. Package and Test the App
3. Distribute through the Google Play Store
4. Distribute through Amazon
5. Track an App's Usage
Next steps1m 14s
- 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.