Android examples for android.os:Bundle
intercept Char Param from Bundle
import android.content.Intent; import android.os.Bundle; import android.os.Parcelable; public class Main{ public static char interceptCharParam(Bundle savedInstanceState, Intent intent, String paramName) { char ret = 0; if (savedInstanceState != null) { ret = savedInstanceState.getChar(paramName, (char) 0); } else {// w ww .j a va 2 s . c om if (intent != null) { Bundle incomming = intent.getExtras(); if (incomming != null) { ret = incomming.getChar(paramName, (char) 0); } } } return ret; } }