10306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell/* 20306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * Copyright (C) 2012 The Android Open Source Project 30306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * 40306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * Licensed under the Apache License, Version 2.0 (the "License"); 50306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * you may not use this file except in compliance with the License. 60306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * You may obtain a copy of the License at 70306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * 80306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * http://www.apache.org/licenses/LICENSE-2.0 90306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * 100306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * Unless required by applicable law or agreed to in writing, software 110306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * distributed under the License is distributed on an "AS IS" BASIS, 120306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * See the License for the specific language governing permissions and 140306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell * limitations under the License. 150306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell */ 160306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell 17575e098da5bc16ff8b95ca080284253fd206fe12Adam Powellpackage android.support.v4.content; 180306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell 19575e098da5bc16ff8b95ca080284253fd206fe12Adam Powellimport android.content.Context; 200306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powellimport android.content.Intent; 210306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell 22145d27f9dd22e953d05e01327c9c2dac68634ae8Jeff Sharkeyimport java.io.File; 23145d27f9dd22e953d05e01327c9c2dac68634ae8Jeff Sharkey 24575e098da5bc16ff8b95ca080284253fd206fe12Adam Powell/** 25575e098da5bc16ff8b95ca080284253fd206fe12Adam Powell * Implementation of context compatibility that can call Honeycomb APIs. 26575e098da5bc16ff8b95ca080284253fd206fe12Adam Powell */ 27575e098da5bc16ff8b95ca080284253fd206fe12Adam Powellclass ContextCompatHoneycomb { 280306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell 29575e098da5bc16ff8b95ca080284253fd206fe12Adam Powell static void startActivities(Context context, Intent[] intents) { 30575e098da5bc16ff8b95ca080284253fd206fe12Adam Powell context.startActivities(intents); 310306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell } 32145d27f9dd22e953d05e01327c9c2dac68634ae8Jeff Sharkey 33145d27f9dd22e953d05e01327c9c2dac68634ae8Jeff Sharkey public static File getObbDir(Context context) { 34145d27f9dd22e953d05e01327c9c2dac68634ae8Jeff Sharkey return context.getObbDir(); 35145d27f9dd22e953d05e01327c9c2dac68634ae8Jeff Sharkey } 360306ebc908d5dcf148aa319a9734b419eacb23b5Adam Powell} 37