AT&T Developer
  • Products
  • Resources
  • Blog
  • Sign In

Technical Library

    Device Technologies
    • Biometrics
    • Device Detection
    • HTML5
    • Mobile Web Fundamentals
    • Mobile Web Standards
    • Multi Core Coding in Dalvik
    • Multi Thread Coding in Android
    • Near Field Communication
    • NFC Forum
    • NFC Use Cases
    • NFC Case Studies
    • NFC Tags
    • GlobalPlatform and NFC
    • User Identification
    • Native Code
    Security and Privacy
    • Application Privacy Guidelines
    • Downloading DRM Content in Android
    • IPv6
    • Likelihood of a Successful Attack
    • Messaging Privacy
    • Mobile Web Security
    • Network Security
    • Security Policy
    • Security at AT&T
    • Types of Security Threats
    • Wireless Application Security
    • Security Policy Enforcement
    UI Elements
    • Slider Controls for Android
    • Check Box for Android
    • Dropdown for Android
    • Image Button for Android
    • Toggle Button for Android
    • Radio Button for Android
    • Segmented Text Toggle Button for Android
    • Static Text Toggle Button for Android
    • Switch for Android
    • Text Fields for Android
    • Getting Started with AT&T UI
    • HTML5 UI Elements
    • HTML5 Checkboxes
    • HTML5 Dropdown
    • HTML5 Image Button
    • HTML5 Image Toggle Button
    • HTML5 Radio Button
    • HTML5 Segmented Toggle Button
    • HTML5 Slider
    • HTML5 Static Text Toggle Button
    • HTML5 Switch Control
    • HTML5 Text Fields
    Network Technologies
    • IP Addresses
    • Long Term Evolution (LTE)
    • Network Timers
    • Wi-Fi
  • Other AT&T Websites
  • Best Practices
    • Hackathon Best Practices
    • Mobile Best Practices
    • Seven Common Errors Around Creating Mobile User Experiences
toggle menu

Downloading DRM content in Android

 

Android has support for OMA DRM 1.0 (forward lock); however, DRM APIs are not available as part of the Android SDK. Therefore, one way to download DRM content on the handset programmatically is via browser application. The application can ask the browser (via Intent) to download the DRM content, as shown:

 

Downloading DRM Content in Android

 

The code snippet below demonstrates the download process using the browser:

// Assuming that object uri of type Uri points to
DRM resource.
try
{
Intent browserIntent = new Intent();
// Using explicit intent to avoid
activity selector
// in case of
multiple browsers on handset
ComponentName comp = new ComponentName(
"com.android.browser",
"com.android.browser.BrowserActivity");
browserIntent.setComponent(comp);
browserIntent.setAction(Intent.ACTION_VIEW);
browserIntent.addCategory(Intent.CATEGORY_BROWSABLE);
browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
browserIntent.setData(uri);
// Start the browser download activity.
startActivity(browserIntent);
} catch (Exception e) {
//Handle Exceptions
}

One of the limitations of this approach is that browser activity gets launched in the application task stack. If the user dismisses the current activity, the browser activity comes into the foreground and will need to be dismissed using the Back key.

Android Tech Tips from GlobalLogic

This Tech Tip for Android devices is provided courtesy of GlobalLogic. GlobalLogic has created a network of global innovation hubs throughout the US, India, Ukraine, China and Argentina that connects clients with 3,000 of the brightest and most innovative software minds through GlobalLogic Velocity, an award-winning platform for distributed Agile R&D.

Back To Top
  • APIS & TOOLS
    • AT&T Video Optimizer
  • APIS & TOOLS
    • Futurist Reports
    • Technical Library
  • SUPPORT
    • Contact Us
    • FAQs
    • Twitter
  • AT&T Developer Program on Github
  • AT&T Developer Program on Facebook
  • AT&T Developer Program on Twitter
AT&T Logo

Terms of Use   Privacy Policy   Your Privacy Choices California Consumer Privacy Act (CCPA) Opt-Out Icon
©2025 AT&T Intellectual Property. All rights reserved

AT&T, the AT&T logo and all other AT&T marks contained herein are trademark of AT&T Intellectual Property and/or AT&T affiliated companies.

14100000
Session Expiring

Your session is about to expire in !

Stay Signed In
Session Expired

Sorry! Your session has expired.

Skip to content