Add Bundle to Intent - Android android.os

Android examples for android.os:Bundle

Description

Add Bundle to Intent

Demo Code

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import java.io.Serializable;

public class Main{

    public static Intent getBundleIntent(Bundle bundle) {
        Intent intent = new Intent();
        intent.putExtras(bundle);/* w  ww  .ja v a  2  s.c o  m*/
        return intent;
    }

}

Related Tutorials