Java tutorial
//package com.java2s; //License from project: Apache License import android.app.Activity; import android.os.Bundle; public class Main { /** * Used to get the parameter values passed into Activity via a Bundle. * * @param context The current Context or Activity that this method is called from * @param key Extra key name. * @return param Parameter value */ public static Object getExtraObject(Activity context, String key) { Object param = null; Bundle bundle = context.getIntent().getExtras(); if (bundle != null) { param = bundle.get(key); } return param; } }