Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.app.ActivityOptions;

import android.os.Build;
import android.os.Bundle;

public class Main {

    public static Bundle toBundle(ActivityOptions options) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            return options.toBundle();
        } else {
            return null;
        }
    }
}