If your latest Android app is going to find an audience, then you need to deliver an engaging user experience. In this article, I’ll show you how to deliver a richer, multimedia experience, by incorporating video content into your Android apps. We’ll be exploring the two major ways that you can add videos to your applications: Including one or more video files in your project’s “resources” directory. Embedding content from a video-sharing website. When you think about online videos, YouTube is probably the first thing that springs to mind – but YouTube isn’t the only video-sharing platform out there! To ensure you have as many options as possible, we’ll be covering three different ways that you can embed online videos, from three different video-sharing platforms. By the end of this article, you’ll know how to stream content from: YouTube, using the YouTube Android Player API. Dailymotion, using the Dailymotion Player SDK for … [Read more...] about Display YouTube, Vimeo, and Dailymotion videos in your Android apps
Fragments in android studio
During 2018’s I/O conference, Google announced a new approach for developing Android apps. Google’s official recommendation is to create a single Activity that serves as your app’s main entry point, then deliver the rest of your application’s content as fragments.While the thought of juggling all those different fragment transactions and life cycles may sound like a nightmare, at I/O 2018 Google also launched the Navigation Architecture Component which is designed to help you adopt this kind of single Activity structure. In this article, we’ll show you how to add the Navigation component to your project and how you can use it to quickly and easily create a single-Activity, multiple-fragment application, with a little help from Android Studio’s new Navigation Editor. Once you’ve created and connected your fragments, we’ll improve on Android’s standard fragment transitions by using the Navigation component and Editor to create a range … [Read more...] about Hassle-free fragments: Using Android’s Navigation Architecture Component
The Android SDK is composed of modular packages that you can download separately using the Android SDK Manager. For example, when the SDK Tools are updated or a new version of the Android platform is released, you can use the SDK Manager to quickly download them to your environment. Simply follow the procedures described in Adding Platforms and Packages. What's New: A command-line version of the Apk Analyzer has been added in tools/bin/apkanalyzer. It offers the same features as the Apk Analyzer in Android Studio and can be integrated into build/CI servers and scripts for tracking size regressions, generating reports, and so on. ProGuard rules files under tools/proguard are no longer used by the Android Plugin for Gradle. Added a comment to explain that. When creating an AVD with avdmanager, it is no longer necessary to specify --tag if the package specified by --package only contains a single image (as is the case for all images currently distributed by Google). There are several … [Read more...] about Android SDK
The official Android docs describe Android Jetpack as “a set of libraries, tools and architectural guidance.” This vague description has left many developers wondering what Android Jetpack really is. Taking a look at the list of Android Jetpack components just raises even more questions — there’s clearly a ton of crossover with existing Android libraries and projects. A good chunk of the components seem to be taken straight from the Support Library, such as AppCompat. So, is Android Jetpack just a rebranded Support Library? Is it a replacement? Can you use the two side by side, or should we all be migrating our apps to Jetpack?The Support Library components aren’t the only familiar features in the list of Jetpack components. All of the Architecture Components (Lifecycles, LiveData, Room and ViewModel) are now part of Jetpack, too. To add to the confusion, at Google I/O 2018 we learned future Support Library updates will be published to the … [Read more...] about Android Jetpack: What do the recent announcements mean for Android’s Support Library?
The Motorola XOOM: Ever since it was first teased at D: Dive Into Mobile, the Android community hasn't been able to take its eyes off the tablet's dual-core processor, gorgeous 10.1-inch display, and - last but certainly not least - Android 3.0 (Honeycomb) operating system. Well now the device has officially gone on sale, and I've been testing falling in love with a review unit for the last few days. Typically, I end up hating devices that I adore at first blush, but the XOOM is an entirely different story - the device is far from perfect (where are the tablet apps?), but I have yet to find anything truly upsetting about it. That said, I find it hard to recommend forking over $800 for a tablet which, despite being among the best in its class hardware- and software-wise, lacks the multimedia options of the competition. But don't let that stop you from reading on for our full review of the XOOM and - perhaps more importantly - Android 3.0!At a Glance They say specs aren't everything, but … [Read more...] about Motorola XOOM + Android 3.0 Review: Sweet As Honey