ActivityCompatJB.java revision 3a96487b54eca412f51ad00b8f8096055e94dcbb
13a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton/* 23a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * Copyright (C) 2012 The Android Open Source Project 33a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * 43a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * Licensed under the Apache License, Version 2.0 (the "License"); 53a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * you may not use this file except in compliance with the License. 63a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * You may obtain a copy of the License at 73a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * 83a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * http://www.apache.org/licenses/LICENSE-2.0 93a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * 103a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * Unless required by applicable law or agreed to in writing, software 113a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * distributed under the License is distributed on an "AS IS" BASIS, 123a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * See the License for the specific language governing permissions and 143a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton * limitations under the License. 153a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton */ 163a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton 173a96487b54eca412f51ad00b8f8096055e94dcbbJake Whartonpackage android.support.v4.app; 183a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton 193a96487b54eca412f51ad00b8f8096055e94dcbbJake Whartonimport android.app.Activity; 203a96487b54eca412f51ad00b8f8096055e94dcbbJake Whartonimport android.content.Context; 213a96487b54eca412f51ad00b8f8096055e94dcbbJake Whartonimport android.content.Intent; 223a96487b54eca412f51ad00b8f8096055e94dcbbJake Whartonimport android.os.Bundle; 233a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton 243a96487b54eca412f51ad00b8f8096055e94dcbbJake Whartonclass ActivityCompatJB { 253a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton public static void startActivity(Context context, Intent intent, Bundle options) { 263a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton context.startActivity(intent, options); 273a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton } 283a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton 293a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton public static void startActivityForResult(Activity activity, Intent intent, int requestCode, Bundle options) { 303a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton activity.startActivityForResult(intent, requestCode, options); 313a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton } 323a96487b54eca412f51ad00b8f8096055e94dcbbJake Wharton} 33